Hi,
Since there is no functionality in the maven-war-plugin to support the use
of custom manifest files, I'm getting desperate and I'm going to try to
add it in. I've checked out the latest code and I built it. My POM has
the following:
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifest>
<manifestFile>${basedir}/WebContent/META-INF/MANIFEST.MF</manifestFile>
</manifest>
</archive>
<warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
<webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
</plugins>
</build>
This gives me this error when I run mvn clean package:
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-war-plugin:2.0-beta-3-SNAPSHOT
Cause: Cannot find setter nor field in
org.apache.maven.archiver.ManifestConfiguration for 'manifestFile'
The stack trace says "Error configuring:
org.apache.maven.plugins:maven-war-plugin. Reason: Unable to parse the
created DOM for plugin configuration". Where is this code? To add this
functionality would I have to modify the parser? Would I have to modify
Plexus WarArchiver code? If so, I can't find the source anywhere. Their
CVS and their SVN repos don't seem to work anymore. Could someone more
experienced with the code (e.g. a Maven developer) point me in the right
direction? Can it even be done? This is sort of a last ditch effort for
me since my attempts at a workaround have failed.
Please reply. I'm really desperate for this custom manifest file feature.
Thanks again.
_Mang Lau