The Maven team is pleased to announce the release of the Maven WAR
Plugin, version 2.1-beta-1
The war plugin is responsible for collecting all artifact dependencies,
classes and resources of the web application and packaging them into a
web application archive.
http://maven.apache.org/plugins/maven-war-plugin/You should specify the version in your project's plugin configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
</plugin>
Release Notes - Maven 2.x WAR Plugin - Version 2.1-beta-1
** Bug
* [MWAR-80] - Classifier in jar file name is removed once assembled
into war file
* [MWAR-133] - Filtering issue: wrong replacement of properties by
values from MavenProject object
* [MWAR-160] - Strange behaviour of
org.apache.maven.plugin.war.util.WarUtils.dependencyEquals(Dependency,
Dependency)
* [MWAR-163] - The outputFilenameMapping does not apply to the
artifact of the current project
* [MWAR-169] - NPE during packaging.
* [MWAR-170] - NPE in WebappStructure, Line 109
* [MWAR-171] - External Web Resources are not properly filtered
* [MWAR-182] - warSourceIncludes no longer works
* [MWAR-183] - filteringDeploymentDescriptors should honor the
encoding specified in web.xml
** New Feature
* [MWAR-172] - Allow specification of escape character to escape
filter interpolation in WAR resources
** Task
* [MWAR-185] - Upgrade to Maven Archiver 2.4
* [MWAR-186] - Upgrade to XStream 1.3.1
Please note that it might take a little while before the artifacts are
synced to the central repository.
Enjoy,
-The Maven team