Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:HideApache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
Maven home: /java/apache/maven-3.0.4
Java version: 1.7.0_05, vendor: Oracle Corporation
Java home: /java/jdk1.7.0_05/jre
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux", version: "2.6.36.2", arch: "amd64", family: "unix"
ShowApache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200) Maven home: /java/apache/maven-3.0.4 Java version: 1.7.0_05, vendor: Oracle Corporation Java home: /java/jdk1.7.0_05/jre Default locale: en_US, platform encoding: ISO-8859-1 OS name: "linux", version: "2.6.36.2", arch: "amd64", family: "unix"
-
Number of attachments :
Description
I have the following setup:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1</version>
<configuration>
<webappDirectory>${basedir}/src/main/webapp</webappDirectory>
<warSourceExcludes>assets</warSourceExcludes>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>${project.build.directory}/minified</directory>
</resource>
</webResources>
</configuration>
</plugin>
The contents of the $
{project.build.directory}/minified is being copied over to $
{basedir}/src/main/webapp which is unexpected. The <webResources/> should not be copied, but – rather – simply be added to the final war.
I have also tried it with the 2.2 version of the plugin and it also fails.