jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x WAR Plugin
  • MWAR-3

war:war launched from parent doesn't find module web.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0
  • Component/s: None
  • Labels:
    None

Description

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.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MWAR-20 <webXML/> tag doesn't work during aggregated build.

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 06/Aug/05 5:31 PM

simple fix - change warSourceDirectory to a java.io.File.

BTW, you should be running "package", not war:war

Show
Brett Porter added a comment - 06/Aug/05 5:31 PM simple fix - change warSourceDirectory to a java.io.File. BTW, you should be running "package", not war:war
Hide
Permalink
Stéphane Nicoll added a comment - 12/Aug/07 6:02 AM

This is the case (warSourceDirectory is a File).

Show
Stéphane Nicoll added a comment - 12/Aug/07 6:02 AM This is the case (warSourceDirectory is a File).

People

  • Assignee:
    Brett Porter
    Reporter:
    Yann Le Du
Vote (0)
Watch (1)

Dates

  • Created:
    03/Aug/05 6:46 AM
    Updated:
    12/Aug/07 6:02 AM
    Resolved:
    23/Dec/05 10:10 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.