Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-119

ClasspathWorkspaceReader may return a wrong POM file when run inside Surefire

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0-beta-3
    • 2.0.0-beta-2
    • maven
    • None

    Description

      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.

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: