[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:58:41 EDT 2013


     [ https://issues.jboss.org/browse/SHRINKRES-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi updated SHRINKRES-119:
--------------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/shrinkwrap/resolver/pull/43

    
> 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