I finally found a way to add attribute to the manifest. You should use the following syntax :
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <myCustomAttributeName>myValue</myCustomAttributeName> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> regards, Alexis On 7/26/06, Alexis Midon <[EMAIL PROTECTED]> wrote:
Hi all, I'd like to add dynamically some attributes to a manifest. I've searched into the maven-jar-plugin and found a way to set the manifest file itself but nothing about attributes. I'd like something like the Maven 1 jar plugin configuration : http://maven.apache.org/maven-1.x/plugins/jar/properties.html#Jar_Settings thanks for your help, Alexis