Resource filtering breaks when run from parent POM. 
----------------------------------------------------

                 Key: MWAR-153
                 URL: http://jira.codehaus.org/browse/MWAR-153
             Project: Maven 2.x War Plugin
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: maven 2.08 
Windows and solaris
            Reporter: Keith Ganger
         Attachments: test.zip

<webResources><resource><directory>  breaks when run from a parent pom. 

When you define a resource directory for filtering, you must define it relative 
to the POM.  When run from the war project's pom eveything works.  When run 
from the  parent you get an error 
{quote}
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] basedir src\main\webapp\WEB-INF does not exist
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
{quote}

This is of course because the directory is relative to the child pom, where the 
plugin configuration was defined, not relative to the parent pom.    

I have attached an example project that demonstrates the bug. 
To repoduce 
*  Run mvn package from the child my-app project everything works.  
* run mvn pacakge from the parent directory you will get the error. 

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

        

Reply via email to