-
Bug
-
Resolution: Done
-
Major
-
2.0.0-beta-2
-
None
The ClasspathWorkspaceReader returns a wrong pom.xml file when the tests are run in Surefire as 'mvn package'.
This is the offending code:
final File pomFile = new File(file.getParentFile().getParentFile(), "pom.xml");
A check against the requested artifact must be done before assuming that this pom.xml is the correct file to be returned in method findArtifact.