Support separate generation of WAR's manifest.mf
------------------------------------------------
Key: MNG-1467
URL: http://jira.codehaus.org/browse/MNG-1467
Project: Maven 2
Type: New Feature
Components: maven-war-plugin
Versions: 2.0
Reporter: mike perham
Attachments: WarManifestMojo.java
Attached is a "war:manifest" goal for programmatically generating the WAR's
manifest.mf. This is not useful for the WAR generation (since the war plugin
already supports generating the manifest at the time the war is created) but it
is useful for use with IDEs that require the MANIFEST.MF in the source tree
when working with a war project (in my case, IBM's Rational Software Architect).
We configure this for use as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
It generates it to ${warSourceDirectory}/META-INF/MANIFEST.MF which is where
RSA expects it to reside.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]