maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r677723 - /maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt
Date Thu, 17 Jul 2008 20:59:52 GMT
Author: jvanzyl
Date: Thu Jul 17 13:59:51 2008
New Revision: 677723

URL: http://svn.apache.org/viewvc?rev=677723&view=rev
Log:
o an example of adding arbitrary properties

Modified:
    maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt

Modified: maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt?rev=677723&r1=677722&r2=677723&view=diff
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt (original)
+++ maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt Thu Jul 17 13:59:51 2008
@@ -353,3 +353,45 @@
   ...
 </project>
 +-----
+ 
+ * Shade Plugin with where a set of arbitrary attributes are added to the MANIFEST.MF
+
++-----
+<project>
+  ...
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>1.2</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <finalName>haven-1.0</finalName>
+                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                  <additionalAttributes>
+                    <property>
+                      <name>Main-Class</name>
+                      <value>org.sonatype.haven.ExodusCli</value>
+                    </property>
+                    <property>
+                      <name>Build-Number</name>
+                      <value>123</value>
+                    </property>
+                  </additionalAttributes>
+                </transformer>
+              </transformers>
+            </configuration>          
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  ...
+</project>
++-----



Mime
View raw message