It works. manifestFile is a var under MavenArchiveConfiguration so
it needs to be declared under
org.apache.maven.plugins
maven-jar-plugin
META-INF/MANIFEST.MF
MavenArchiveConfiguration
- sachin
On Mar 17, 2006, at 8:3
I've opened MNG-2156 on this.
- sachin
On Mar 16, 2006, at 8:02 PM, Sachin Patel wrote:
Yes, this is exactly what I have. I took a quick peak at the
plugin code and I didn't see any reference to specifying a
manifestFile either.
...
org.apache.maven.plugins
maven-jar-p
Yes, this is exactly what I have. I took a quick peak at the plugin
code and I didn't see any reference to specifying a manifestFile either.
...
org.apache.maven.plugins
maven-jar-plugin
META-INF/MANIFEST.MF
org.apache.maven.plugins
maven-jar-plugin
/path/to/MANIFEST.MF
According to the documentation, this should work. Is it what you have
in your pom.xml file?
On 3/16/06, Sachi
Adding the following manifestFile element failed to work for me as I
get the following error..
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT
Cause: Cannot find setter nor field in
org.apache.maven.archiver.ManifestConfiguration for
this is my pom, it works fine!
org.apache.maven.plugins
maven-jar-plugin
And I think to add custom entries, you need to write them in a base
manifest file wich you specify to be added to the generated manifest
file.
You just need to add this line to your plugin configuration :
/path/to/MANIFEST.MF
On 12/30/05, Alexandre Poitras
>From your example, I am guessing you are looking for a way to specify
the classpath.
If that the case, you work too hard. Maven is all about laziness and
of course it can generate the class path for you :
org.apache.maven.plugins
maven-jar-plugin
Hi,
how do I add manifest entries to the generated Jar file? I have tried
various things in the style of
maven-jar-plugin
Name
org/apache/xmlrpc/