maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pg...@apache.org
Subject svn commit: r1073545 - /maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt
Date Tue, 22 Feb 2011 23:22:20 GMT
Author: pgier
Date: Tue Feb 22 23:22:19 2011
New Revision: 1073545

URL: http://svn.apache.org/viewvc?rev=1073545&view=rev
Log:
o Minor site doc improvement to install/deploy task example

Modified:
    maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt

Modified: maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt
URL: http://svn.apache.org/viewvc/maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt?rev=1073545&r1=1073544&r2=1073545&view=diff
==============================================================================
--- maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt (original)
+++ maven/ant-tasks/trunk/src/site/apt/examples/install-deploy.apt Tue Feb 22 23:22:19 2011
@@ -49,12 +49,29 @@ Install and Deploy
   </artifact:install>
 
   <artifact:deploy file="target/my-project-1.0.jar">
-    <remoteRepository url="file://localhost/www/repository"/>
+    <remoteRepository url="file:///www/repository"/>
     <pom refid="mypom"/>
   </artifact:deploy>
 ...
 -----
 
+Attaching Multiple Artifacts
+
+  The install and deploy tasks allow you to attach multiple artifact to a single deployment.
 For example, 
+  the sources and javadoc jars can be attached using the nested <<attach>> element.
+  
+-----
+  <artifact:deploy file="target/my-project-1.0.jar">
+    <remoteRepository url="http://localhost/www/repository"/>
+    <pom refid="mypom"/>
+    <attach file="${basedir}/target/my-project-1.0-sources.jar" type="jar" classifier="sources"/>
+    <attach file="${basedir}/target/my-project-1.0-javadoc.jar" type="jar" classifier="javadoc"/>
+    <attach file="${basedir}/target/my-project-1.0-junk.zip" type="zip" classifier="junk"/>
+  </artifact:deploy>
+-----
+
+Deployment Protocols
+
   For deploying using a protocol other than local file system, you need to register a provider
to make the other
   protocols available. For example:
 



Mime
View raw message