Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Anton Makeev 
Subsystem
Maven Integration 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Ben Gidley
    2 years ago (05 Mar 2008 11:57)
  • Updated by   root
    6 months ago (17 Jan 2010 19:58)
  • Jira: IDEA-43111
    (history, comments)
IDEA-43111 Parent POM properties are not working in child POM's
3

Attachments

PomProblemSample.zip   (11 KB)
If you have a project (very simple example attached) that uses properties in the parent POM to set the version in dependency management and then use these dependencies in child POMs (this is a common pattern used by Spring, Tapestry, Jetty and many other projects) it can't resolve the property.

This worked in 7.0.2.

To reproduce open attached project POM into IntelliJ

Issue was resolved
Comments (2)
 
History
 
Linked Issues (0)
 
Ben Gidley
  Ben Gidley
23 Mar 2008 15:03
(2 years ago)
I have created a test case and logged this with the maven embedder project - http://jira.codehaus.org/browse/MNG-3479
Ben Gidley
  Ben Gidley
23 Mar 2008 15:53
(2 years ago)
While doing the test case I have proven this works correctly with JAR type dependencies but not POM type dependencies. So a hack to fix is to copy the offending pom, change it to type jar and it will work.