Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
3.0.2
-
None
-
None
Description
Following code use ${parent.name} for war name and values in web.xml
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<warName>${parent.name}</warName>
<outputDirectory>deploy</outputDirectory>
<webResources>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<filtering>true</filtering>
<includes>
<include>web.xml</include>
</includes>
<targetPath>WEB-INF</targetPath>
</resource>
</webResources>
</configuration>
The "issue" is the expanded value is not same for <warName> and <filtering>
The POM parent has name = "coworks.new"
In web.xml ${parent.name} is replaced by "coworks.new" but war name is coworks-1.0-SNAPSHOT.war