You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benson Margulies (JIRA)" <ji...@codehaus.org> on 2010/08/15 14:26:32 UTC
[jira] Created: (MWAR-232) webappBuildDirectory ignored by war:war
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
[jira] Closed: (MWAR-232) webappBuildDirectory ignored by war:war
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies closed MWAR-232.
---------------------------------
Resolution: Not A Bug
> 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
[jira] Commented: (MWAR-232) webappBuildDirectory ignored by
war:war
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232059#action_232059 ]
Dennis Lundberg commented on MWAR-232:
--------------------------------------
Where did you find the webappBuildDirectory parameter? I cannot find one, either in the docs or the sources.
I do however find the parameter webappDirectory, which is what I think you want to use.
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webappDirectory
> 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
[jira] Commented: (MWAR-232) webappBuildDirectory ignored by
war:war
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MWAR-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232061#action_232061 ]
Benson Margulies commented on MWAR-232:
---------------------------------------
Yes, you seem to have identified the neuronal malfunction at work here.
> 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