Creating a custom META-INF/MANIFEST.MF file in the maven-assembly-plugin

Problem

I want to add some special parameter to my MANIFEST.MF, but I’m using the maven-assembly-plugin to build my project.

Solution

Change the POM to look something like this:

  		<plugin>
  			<artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <archive>
            		<manifestFile>src/main/resources/MANIFEST.MF</manifestFile>
          		</archive>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
  		</plugin>
  		<plugin>

Java

41 Words

2011-02-02 13:21 +0000