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 & 3
  • MNG-2382

relative path of webResources in parent pom not anchored correctly when run from parent

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 2.0.4
  • Fix Version/s: None
  • Component/s: Inheritance and Interpolation
  • Labels:
    None
  • Complexity:
    Expert

Description

In my parent POM, in pluginManagement, I have:

<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src/webapp</directory>
</resource>
</webResources>
</configuration>
</plugin>

If I run mvn package when at the child module with war packaging, this works fine. But when I run that at the parent module, the src/webapp path is not interpreted as relative to the child module being built, as it should (I think). By comparison, when I configure my source directory, test source directory, or resources in the parent pom using a relative path, they are correctly interpreted as relative to the module being built, regardless of wether I run it from the parent or child module.

As a work-around, I am forced to prefix the relative path with ${basedir}, which should not be necessary.

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MWAR-79 <webResources> copy fails in a multi-project 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 - 17/Jun/06 2:55 AM

I've moved this from MWAR to MNG, as it's a general issue for Maven. We can only align top level plugin configuration, not elements of subclasses (and besides that, I'm not sure if the alignment would be to the pluginManagement or where it is instantiated - that's also worth checking).

Show
Brett Porter added a comment - 17/Jun/06 2:55 AM I've moved this from MWAR to MNG, as it's a general issue for Maven. We can only align top level plugin configuration, not elements of subclasses (and besides that, I'm not sure if the alignment would be to the pluginManagement or where it is instantiated - that's also worth checking).
Hide
Permalink
Mark Jeffery added a comment - 22/May/07 12:49 AM

Isn't this a duplicate of MWAR-79 which has been resolved ?

Show
Mark Jeffery added a comment - 22/May/07 12:49 AM Isn't this a duplicate of MWAR-79 which has been resolved ?
Hide
Permalink
Brett Porter added a comment - 12/Jan/10 12:42 PM

yes, I think it is sufficient to solve these cases individually now

Show
Brett Porter added a comment - 12/Jan/10 12:42 PM yes, I think it is sufficient to solve these cases individually now

People

  • Assignee:
    Brett Porter
    Reporter:
    David Smiley
Vote (5)
Watch (4)

Dates

  • Created:
    19/May/06 9:24 AM
    Updated:
    12/Jan/10 12:42 PM
    Resolved:
    12/Jan/10 12:42 PM
  • 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.