diff --git a/war/plugin.jelly b/war/plugin.jelly index c5168b2a..664488d3 100644 --- a/war/plugin.jelly +++ b/war/plugin.jelly @@ -56,6 +56,9 @@ Building WAR ${pom.artifactId} + + + + + + diff --git a/war/plugin.properties b/war/plugin.properties index d7c10041..d7fb1eae 100644 --- a/war/plugin.properties +++ b/war/plugin.properties @@ -40,3 +40,5 @@ maven.war.build.dir = ${maven.build.dir} # ${maven.war.build.dir}/${pom.artifactId} maven.war.webapp.dir = ${maven.war.build.dir}/${pom.artifactId} maven.war.tld.dir=WEB-INF/tld + +maven.jar.manifest=${pom.build.sourceDirectory}/META-INF/MANIFEST.MF \ No newline at end of file diff --git a/war/project.xml b/war/project.xml index 0dec92e8..ebd7621f 100644 --- a/war/project.xml +++ b/war/project.xml @@ -23,7 +23,7 @@ 3 maven-war-plugin Maven WAR Plugin - 1.5 + 1.6-SNAPSHOT War Plugin for Maven War Plugin for Maven http://maven.apache.org/reference/plugins/war/ diff --git a/war/src/plugin-test/maven.xml b/war/src/plugin-test/maven.xml index 8d8ee85f..36e90589 100644 --- a/war/src/plugin-test/maven.xml +++ b/war/src/plugin-test/maven.xml @@ -15,7 +15,9 @@ * limitations under the License. */ --> - + @@ -23,20 +25,19 @@ + + + + - - - - ${expectedFile} not generated + + + + + + + + Manifest not merged - - - - - ${expectedFile} not generated - - \ No newline at end of file diff --git a/war/src/plugin-test/project.properties b/war/src/plugin-test/project.properties new file mode 100644 index 00000000..2ad131c7 --- /dev/null +++ b/war/src/plugin-test/project.properties @@ -0,0 +1 @@ +maven.war.manifest=${basedir}/src/MANIFEST.MF \ No newline at end of file diff --git a/war/src/plugin-test/src/MANIFEST.MF b/war/src/plugin-test/src/MANIFEST.MF new file mode 100644 index 00000000..926781b9 --- /dev/null +++ b/war/src/plugin-test/src/MANIFEST.MF @@ -0,0 +1 @@ +Bogus: value \ No newline at end of file diff --git a/war/xdocs/changes.xml b/war/xdocs/changes.xml index baeedcae..fb7e1a3d 100644 --- a/war/xdocs/changes.xml +++ b/war/xdocs/changes.xml @@ -24,6 +24,10 @@ Vincent Massol + + Allow customizing of MANIFEST.MF + + Fix for MAVEN-986. Allow resources to be copied when no sources present Use the new diff --git a/war/xdocs/properties.xml b/war/xdocs/properties.xml index 6610332d..eb29b4a1 100644 --- a/war/xdocs/properties.xml +++ b/war/xdocs/properties.xml @@ -112,6 +112,14 @@ ${maven.war.build.dir}/${pom.artifactId}. + + maven.war.manifest + Yes + + Location of the MANIFEST.MF file in the source tree. It defaults to + ${pom.build.sourceDirectory}/META-INF/MANIFEST.MF. + + maven.war.index Yes