You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Dennis Lundberg <de...@apache.org> on 2008/07/17 23:10:18 UTC
Re: svn commit: r677723 - /maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt
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/
jvanzyl@apache.org 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: svn commit: r677723 - /maven/plugins/trunk/maven-shade-plugin/src/site/apt/examples.apt
Posted by Jason van Zyl <ja...@maven.org>.
Sure, I can do that. Just need to rewire the configurator.
On 17-Jul-08, at 5:10 PM, Dennis Lundberg wrote:
> 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/
>
> jvanzyl@apache.org 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
We know what we are, but know not what we may be.
-- Shakespeare
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org