[jboss-svn-commits] JBL Code SVN: r10948 - labs/jbossbuild/jboss-parent/trunk.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Apr 12 17:36:49 EDT 2007


Author: pgier
Date: 2007-04-12 17:36:49 -0400 (Thu, 12 Apr 2007)
New Revision: 10948

Modified:
   labs/jbossbuild/jboss-parent/trunk/pom.xml
Log:
JBBUILD-338; Made some changes to prevent the central maven repository being used during releases.

Modified: labs/jbossbuild/jboss-parent/trunk/pom.xml
===================================================================
--- labs/jbossbuild/jboss-parent/trunk/pom.xml	2007-04-12 21:28:56 UTC (rev 10947)
+++ labs/jbossbuild/jboss-parent/trunk/pom.xml	2007-04-12 21:36:49 UTC (rev 10948)
@@ -30,6 +30,10 @@
     <system>jira</system>
     <url>http://jira.jboss.com/</url>
   </issueManagement>
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/trunk/</connection>    
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/trunk/</developerConnection>   
+  </scm>
   <licenses>
     <license>
       <name>lgpl</name>
@@ -50,6 +54,14 @@
       </extension>
     </extensions>
     <plugins>
+      <plugin>
+        <artifactId>maven-release-plugin</artifactId>
+        <configuration>
+          <!-- The tagBase property is needed during the release process so that the maven release plugin
+            will create the release tag in the appropriate location. -->
+          <tagBase>https://svn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/tags/</tagBase>
+        </configuration>
+      </plugin>
       <!-- define how we want compilation to take place
       here, we accept most of the defaults but say that we want the
       optimization flag set, and define the source and target to be 1.5,
@@ -123,7 +135,7 @@
     </pluginManagement>
   </build>
   <profiles>
-    <!-- The default maven release-profile is redefined here. -->
+    <!-- This profile is activated when a project is released. -->
     <profile>
       <id>release</id>
       <build>
@@ -131,6 +143,19 @@
           <plugin>
             <inherited>true</inherited>
             <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>purge-local-repository</goal>
+                </goals>
+                <phase>validate</phase>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <inherited>true</inherited>
+            <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <configuration>
               <updateReleaseInfo>true</updateReleaseInfo>
@@ -141,6 +166,7 @@
       <repositories>
         <repository>
           <id>central</id>
+          <url>http://repo1.maven.org/maven2</url>
           <releases>
             <enabled>false</enabled>
           </releases>
@@ -149,24 +175,12 @@
           </snapshots>
         </repository>
       </repositories>
-      <pluginRepositories>
-        <pluginRepository>
-          <id>central</id>
-          <releases>
-            <enabled>false</enabled>
-          </releases>
-          <snapshots>
-            <enabled>false</enabled>
-          </snapshots>
-        </pluginRepository>
-      </pluginRepositories>
     </profile>
   </profiles>
   <repositories>
     <repository>
       <id>jboss</id>
       <name>JBoss Repository</name>
-      <layout>default</layout>
       <url>http://repository.jboss.org/maven2/</url>
       <snapshots>
         <enabled>false</enabled>
@@ -175,8 +189,10 @@
     <repository>
       <id>jboss-snapshots</id>
       <name>JBoss Snapshot Repository</name>
-      <layout>default</layout>
       <url>http://snapshots.jboss.org/maven2/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
       <snapshots>
         <enabled>true</enabled>
       </snapshots>
@@ -187,7 +203,6 @@
       <id>jboss</id>
       <name>JBoss Plugin Repository</name>
       <url>http://repository.jboss.org/maven2</url>
-      <layout>default</layout>
       <snapshots>
         <enabled>false</enabled>
       </snapshots>
@@ -196,7 +211,9 @@
       <id>jboss-snapshots</id>
       <name>JBoss Snapshot Plugin Repository</name>
       <url>http://snapshots.jboss.org/maven2</url>
-      <layout>default</layout>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
       <snapshots>
         <enabled>true</enabled>
       </snapshots>




More information about the jboss-svn-commits mailing list