You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/09/15 05:25:04 UTC
[jira] Updated: (MNG-694) war:war launched from parent doesn't find module web.xml
[ http://jira.codehaus.org/browse/MNG-694?page=all ]
Brett Porter updated MNG-694:
-----------------------------
Component: (was: maven-plugins)
maven-war-plugin
> war:war launched from parent doesn't find module web.xml
> --------------------------------------------------------
>
> Key: MNG-694
> URL: http://jira.codehaus.org/browse/MNG-694
> Project: Maven 2
> Type: Bug
> Components: maven-war-plugin
> Versions: 2.0-alpha-3
> Reporter: Yann Le Du
> Fix For: 2.0-beta-2
>
>
> foo
> +-- pom.xml
> +-- foo-contact
> +-- pom.xml
> +-- contact
> +-- WebContent
> +-- WEB-INF
> +-- web.xml
> In foo-contact pom.xml :
> <build> <plugins> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <warSourceDirectory>contact/WebContent</warSourceDirectory>
> </configuration>
> </plugin> </plugins></build>
> war:war launched from foo-contact is OK.
> war:war launched from foo produces :
> org.apache.maven.plugin.MojoExecutionException: Error assembling WAR
> at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:224)
> ...
> Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment descriptor: /devel/maven/src/RIC/trunk/ric-contact/target/contact/WEB-INF/web.xml does not exist.
> at org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:70)
> ...
> Adding <webXml>contact/WebContent/WEB-INF/web.xml</webXml> produces the same message.
> Adding <webXml>${basedir}/contact/WebContent/WEB-INF/web.xml</webXml> solves the issue.
> I guess out two things here :
> * when you launch war:war from parent, webXml does not default to ${warSourceDirectory}/WEB-INF/web.xml
> * webXml isn't implicitly prefixed with ${basedir}/
> See also http://marc.theaimsgroup.com/?l=turbine-maven-user&m=111623705811553&w=2 for a previous report of this issue.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org