webappBuildDirectory ignored by war:war
---------------------------------------
Key: MWAR-232
URL: http://jira.codehaus.org/browse/MWAR-232
Project: Maven 2.x WAR Plugin
Issue Type: Bug
Affects Versions: 2.1-beta-1
Reporter: Benson Margulies
The POM fragment below attempts to end up with both a .war file an exploded
directory. It sets webappBuildDirectory to be non-default, so as not to
conflict with the output directory of the exploded goal.
However, as the log below shows, this option is not respected.
{code}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<!-- override default so that the exploded copy can be there -->
<webappBuildDirectory>rex-ws-build</webappBuildDirectory>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
<overlays>
<overlay>
<groupId>com.basistech.jug</groupId>
<artifactId>gate-home</artifactId>
<classifier>gate-home</classifier>
<type>zip</type>
<targetPath>WEB-INF</targetPath>
</overlay>
</overlays>
</configuration>
<executions>
<execution>
<id>exploded</id>
<goals><goal>exploded</goal></goals>
</execution>
</executions>
</plugin>
{code}
{noformat}
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[rex-ws] in
[/Users/benson/x/rap/ras/rex_ws/target/rex-ws]
[INFO] Processing war project
[INFO] Copying webapp resources[/Users/benson/x/rap/ras/rex_ws/src/main/webapp]
[INFO] Processing overlay[ id com.basistech.jug:gate-home:gate-home]
[INFO] Webapp assembled in [3409 msecs]
[INFO] Building war: /Users/benson/x/rap/ras/rex_ws/target/rex-ws.war
[INFO] [war:exploded {execution: exploded}]
[INFO] Exploding webapp
[INFO] Assembling webapp[rex-ws] in
[/Users/benson/x/rap/ras/rex_ws/target/rex-ws]
[INFO] Dependency[Dependency {groupId=org.apache.cxf,
artifactId=cxf-rt-frontend-jaxrs, version=2.2.9, type=jar}] has changed (was
Dependency {groupId=org.apache.cxf, artifactId=cxf-rt-frontend-jaxrs,
version=2.2.9, type=jar}).
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-log4j12,
version=1.5.6, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-log4j12, version=1.5.6, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp resources[/Users/benson/x/rap/ras/rex_ws/src/main/webapp]
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira