EdwinLi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

Builds fail under Maven 3 due to mismatched relativePath #283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Maven 3 release candidate.
2. mvn validate

What is the expected output? What do you see instead?
Validation should complete without error.  Instead, errors are reported, e.g.

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.powermock:powermock-modules-test:1.5-SNAPSHOT 
(/home/peterj/devel/powermock-trunk/modules/module-test/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact 
org.powermock:powermock:pom:1.5-SNAPSHOT in nexus 
(https://repository.sonatype.org/content/groups/sonatype-grid) and 
'parent.relativePath' points at wrong local POM @ line 2, column 11 -> [Help 2]

What version of the product are you using? On what operating system?
1.5-SNAPSHOT (also present in 1.4.x releases)

Please provide any additional information below.
Maven 3 is less forgiving of directory structures that don't match the project 
inheritance structure.

I have attached a patch that adds the necessary <relativePath> elements.

Original issue reported on code.google.com by pja...@gmail.com on 7 Oct 2010 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, that's good to know. Thanks a lot for the patch!

Original comment by johan.ha...@gmail.com on 8 Oct 2010 at 5:40

GoogleCodeExporter commented 9 years ago
Just applied to patch, thanks again for your help. Really appreciated.

Original comment by johan.ha...@gmail.com on 9 Oct 2010 at 2:55