[jboss-svn-commits] JBL Code SVN: r31439 - labs/jbosslabs/labs-3.0-build.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Feb 5 05:08:57 EST 2010


Author: lkrzyzanek
Date: 2010-02-05 05:08:57 -0500 (Fri, 05 Feb 2010)
New Revision: 31439

Added:
   labs/jbosslabs/labs-3.0-build/deploy.pom
Modified:
   labs/jbosslabs/labs-3.0-build/README.txt
Log:
added instruction about release/deploy to the maven repo

Modified: labs/jbosslabs/labs-3.0-build/README.txt
===================================================================
--- labs/jbosslabs/labs-3.0-build/README.txt	2010-02-05 09:40:56 UTC (rev 31438)
+++ labs/jbosslabs/labs-3.0-build/README.txt	2010-02-05 10:08:57 UTC (rev 31439)
@@ -14,17 +14,24 @@
 To recompile(build) and deploy
 mvn install OR mvn
 
-2.1 How to deploy to private maven repo
-Labs private repo is located here: https://svn.jboss.org/repos/cms/prod/repo/maven2/
+2.1 How to release module and deploy to the maven repository
+ * Check that you have in your pom.xml right version (not SNAPSHOT) like <version>1.0.0</version>
+ * Go to trunk directory and run: mvn clean package
+ * Make sure that you have your creditials in .m2/settings.xml like this:
+<servers>
+  <server>
+      <id>labs-repo</id>
+      <username>lkrzyzanek</username>
+      <password>XXXX</password>
+  </server>
+</servers>
+ * Copy deploy.pom file (next to this README.txt) to your trunk directory
+ * Deploy to private maven repo (change name of jar file to deployed file) - more info in step 2.2:
+mvn deploy:deploy-file -Dfile=target/nukes-forums-migration-1.0.0.jar -DpomFile=pom.xml -Durl=svn:https://svn.jboss.org/repos/cms/prod/repo/maven2 -DrepositoryId=labs-repo -f deploy.pom
+mvn deploy:deploy-file -Dfile=target/nukes-forums-migration-1.0.0-sources.jar -Dclassifier=sources -DpomFile=pom.xml -Durl=svn:https://svn.jboss.org/repos/cms/prod/repo/maven2 -DrepositoryId=labs-repo -f deploy.pom
+ * Create a tag for artifact
 
-For deploying to SVN repo is needed wagon extension: https://wagon-svn.dev.java.net/
 
-example (run in artifact's root directory during release):
-mvn deploy:deploy-file -Dfile=target/human-friendly-urls-links-1.0.0.jar -DpomFile=pom.xml -Durl=svn:https://svn.jboss.org/repos/cms/prod/repo/maven2 -DrepositoryId=labs-repo -f deploy.pom
-mvn deploy:deploy-file -Dfile=target/human-friendly-urls-1.0.0-sources.jar -Dclassifier=sources -DpomFile=pom.xml -Durl=svn:https://svn.jboss.org/repos/cms/prod/repo/maven2 -DrepositoryId=labs-repo -f deploy.pom
-
-
-
 3. New modules
  *NOTE Please execute below commands after executing build system at least once.*
 

Added: labs/jbosslabs/labs-3.0-build/deploy.pom
===================================================================
--- labs/jbosslabs/labs-3.0-build/deploy.pom	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/deploy.pom	2010-02-05 10:08:57 UTC (rev 31439)
@@ -0,0 +1,29 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>dummy</groupId>
+  <artifactId>wagn-svn-deploy-pom</artifactId>
+  <packaging>pom</packaging>
+  <version>1</version>
+
+  <build>
+    <extensions>
+      <extension>
+        <groupId>org.jvnet.wagon-svn</groupId>
+        <artifactId>wagon-svn</artifactId>
+        <version>1.8</version>
+      </extension>
+    </extensions>
+  </build>
+
+
+  <repositories>
+    <repository>
+      <id>maven2-repository.dev.java.net</id>
+      <name>Java.net Repository for Maven</name>
+      <url>http://download.java.net/maven/2/</url>
+    </repository>
+  </repositories>
+
+
+
+</project>



More information about the jboss-svn-commits mailing list