Julien CARSIQUE
2008-01-24 17:40:15 UTC
Hello,
I would like the plugin to use the given manifest, if present, and add
some properties; and to generate the manifest if it doesn't exist.
Is it possible ?
Here is my common configuration in the parent pom :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Bundle-Version>${pom.version}</Bundle-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
For now, if there's no manifest in the specified place, I got this error :
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling JAR
Embedded error: Manifest file:
.../src/main/resources/META-INF/MANIFEST.MF does not exist.
Of course, the aim is to have a generic configuration, in order not
having to specify for each artifact if there's a manifest, or none.
Thanks,
Julien
I would like the plugin to use the given manifest, if present, and add
some properties; and to generate the manifest if it doesn't exist.
Is it possible ?
Here is my common configuration in the parent pom :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Bundle-Version>${pom.version}</Bundle-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>
For now, if there's no manifest in the specified place, I got this error :
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling JAR
Embedded error: Manifest file:
.../src/main/resources/META-INF/MANIFEST.MF does not exist.
Of course, the aim is to have a generic configuration, in order not
having to specify for each artifact if there's a manifest, or none.
Thanks,
Julien
--
Julien CARSIQUE, Nuxeo (Paris, France)
Open Source Enterprise Content Management - http://www.nuxeo.org/
Nuxeo EP 5: extensible, Java EE and standards based ECM Platform
http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87
Julien CARSIQUE, Nuxeo (Paris, France)
Open Source Enterprise Content Management - http://www.nuxeo.org/
Nuxeo EP 5: extensible, Java EE and standards based ECM Platform
http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87