[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-119) ClasspathWorkspaceReader may return a wrong POM file when run inside Surefire

George Gastaldi (JIRA) jira-events at lists.jboss.org
Fri Mar 15 16:50:41 EDT 2013


George Gastaldi created SHRINKRES-119:
-----------------------------------------

             Summary: ClasspathWorkspaceReader may return a wrong POM file when run inside Surefire
                 Key: SHRINKRES-119
                 URL: https://issues.jboss.org/browse/SHRINKRES-119
             Project: ShrinkWrap Resolvers
          Issue Type: Bug
          Components: impl-maven
    Affects Versions: 2.0.0-beta-2
            Reporter: George Gastaldi
            Assignee: George Gastaldi


The ClasspathWorkspaceReader returns a wrong pom.xml file when the tests are run in Surefire as 'mvn package'.

This is the offending code: 

{code}
final File pomFile = new File(file.getParentFile().getParentFile(), "pom.xml");
{code}

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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list