Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Anton Makeev 
Subsystem
Maven Integration 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7744
Fixed in build
8256
Severity
0
  • Submitted by   Ben Gidley
    23 months ago (05 Mar 2008 11:57)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43111
    (history, comments)

IDEA-43111

Parent POM properties are not working in child POM's

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 (1)
 
Links
 
Ben Gidley
  Ben Gidley
23 Mar 2008 15:03
(22 months ago)
#permalink
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
(22 months ago)
#permalink
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.