blob: e9fa90346d35bf927324db360cc9f35829d160ca [file] [log] [blame]
------
Guide to Configuring Archive Plugins
------
Brett Porter
------
21 June 2006
------
Guide to Configuring Archive Plugins
Many Java archive generating plugins accept the <<<archive>>> configuration element to customise the generation of the archive.
In the standard Maven Plugins, this includes the <<<jar>>>, <<<war>>>, <<<ejb>>>, <<<ear>>> and <<<assembly>>> plugins.
* Disabling Maven Meta Information
By default, Maven generated archives include the <<<META-INF/maven>>> directory, which contains the <<<pom.xml>>> file used to
build the archive, and a <<<pom.properties>>> file that includes some basic properties in a small, easier to read format.
To disable the generation of these files, include the following configuration for your plugin (in this example, the WAR plugin
is used):
+----+
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-alpha-1</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
+----+
~~ other things: index, compress
* Configuring the Manifest
The archive configuration also accepts manifest configuration. See {{{./guide-manifest.html}Guide to Working with Manifests}} for more information.