Issue Details (XML | Word | Printable)

Key: MNG-3479
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: Ben Gidley
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Maven 2 & 3

Maven Embedder incorrectly resolves properties in multiprojects and incorrectly resolves dependency management for POM dependencies

Created: 23/Mar/08 07:02 AM   Updated: 29/Dec/09 08:40 PM   Resolved: 29/Dec/09 08:40 PM
Return to search
Component/s: Embedding
Affects Version/s: 3.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File MultiprojectTestCase.patch (33 kB)


Patch Submitted: Yes


 Description  « Hide

Maven Embedder incorrectly resolves properties in multiprojects and incorrectly resolves dependency management for POM dependencies

This was first noticed using IntelliJ embedder - see JIRA's are

The first issue prevents maven embedder from parsing a child POM that uses a parent POM to set the version of an artifact, if the parent POM using properties to set the version.

The second issue shows even if you set the version explicitly the parent POM's dependency management section does not cascade in embedder (but it does in maven) correctly for POM type dependencies.

I have written a unit test (attached) to embedder to test for this. But am unsure how to fix.



Ben Gidley added a comment - 23/Mar/08 07:13 AM

Further experimentation has shown the properties issue only effect items whose type is NOT jar.


Milos Kleint added a comment - 23/Mar/08 11:09 AM

which version of maven-embedder is IDEA using? I doubt it's 2.0.8, as the embedder code in 2.0.x branch is rather unusable. It's more likely a 2.1-SNAPSHOT of sorts.


Anton Makeev added a comment - 24/Mar/08 04:30 AM

Yes, we use 2.1-SNAPSHOT. Currently, the bundled version is of 2008-02-12.


Jason van Zyl added a comment - 29/Dec/09 08:40 PM

I believe this has been fixed. Reopen if you find the issue still persists.