Would it require a lot changes to make this more in line with the syntax[1] used by Maven Archiver?

  <manifestEntries>
    <key>value</key>
  </manifestEntries>


[1] http://maven.apache.org/shared/maven-archiver/

[EMAIL PROTECTED] wrote:
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>
++-----





--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to