- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello,
After looking for a while, I saw that there has been many modifications on the maven Jar plugin.
Here is my last version:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<compress>false</compress>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<mode>development</mode>
<url>${pom.url}</url>
<key>value</key>
</manifestEntries>
</archive>
</configuration>
</plugin>
>> No jar compression with Maven2
>> The manifest must be generated at least for the classpath (In fact, my component includes 3 jar directly under the root directory)
>> I do not add the 3 jar files with Maven2 because it corrupts the JAR files, and then I get some ClassNotFoundException.
>> I use 7-Zip instead of Winzip, for the reasons already mentionned on this forum.
I hope it will be usefull to many of you.
Views
Replies
Total Likes