You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "David Boden (JIRA)" <ji...@codehaus.org> on 2006/01/16 14:03:02 UTC

[jira] Commented: (MWAR-20) tag doesn't work during aggregated build.

    [ http://jira.codehaus.org/browse/MWAR-20?page=comments#action_55994 ] 

David Boden commented on MWAR-20:
---------------------------------

The problem is that the relative addressing doesn' t work. If you start the path with ${basedir}/ then it works fine. This is what I've used as a workaround.

> <webXML/> tag doesn't work during aggregated build.
> ---------------------------------------------------
>
>          Key: MWAR-20
>          URL: http://jira.codehaus.org/browse/MWAR-20
>      Project: Maven 2.x War Plugin
>         Type: Bug

>     Reporter: David Boden

>
>
> When building parent aggregator, subprojects <webXml/> tag uses the wrong base directory (perhaps the base directory of the parent?) to search for the specified web.xml.
>     <parent>
>         <groupId>SalesStation</groupId>
>         <artifactId>SSBuild</artifactId>
>         <version>SNAPSHOT</version>
>         <relativePath>../SSBuild/pom.xml</relativePath>
>     </parent>
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>SalesStation</groupId>
>     <artifactId>SS</artifactId>
>     <packaging>war</packaging>
>     <version>SNAPSHOT</version>
>     <name>SalesStation SS webapp</name>
>     
>     <build>
>         <sourceDirectory>WEB-INF/src</sourceDirectory>
>         <finalName>SS</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-war-plugin</artifactId>
>                 <configuration>
>                     <warSourceDirectory>.</warSourceDirectory>
>                     <excludes>target/**</excludes>
>                     <!-- The ../SS is in there to fix a Maven Bug :o( -->
>                     <webXml>../SS/WEB-INF/maven-web.xml</webXml>
>                 </configuration>
>             </plugin>

-- 
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