You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Costin Caraivan <cc...@axway.com> on 2008/12/18 14:45:05 UTC
Different configuration sections in different executions sections
don't work as advertised :)
Hello,
Is this a bug in Maven or the jar plugin?
<!-- Make the jar out of the compiled classes. Must be done BEFORE
packaging, so it can be included in the greater jar. -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>jar-classes</id>
<!-- The jaring must be done at the compile
phase, so we can have the jar ready for packaging in the greater jar. -->
<phase>compile</phase>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<finalName>external</finalName>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>jar-all</id>
<!-- This is the greater jar: classes jar +
resources. -->
<phase>package</phase>
<!-- This configuration section is ignored
(bug? my error?) -->
<configuration>
<archive>
<manifestFile>${basedir}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
<goals>
<goal>jar</goal>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
The second jar does not have the manifest inside. I needed to launch the
plugin 2 times (i.e. <plugin></plugin>,<plugin></plugin>) to make it work.
Sounds like a bug, IMHO.
Regards,
Costin.
--
View this message in context: http://www.nabble.com/Different-configuration-sections-in-different-executions-sections-don%27t-work-as-advertised-%3A%29-tp21073075p21073075.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org