withMaven thinks that "mvn test" generates a jar file causing a FileNotFoundException trying to archive it

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The "withMaven()' wrapper sees the "generated artifact" of "mvn test" as a file that can be archived and fingerprinted when it is just the folder "${project.build.output}.

      XML fragment of the MAven Event Spy report that is causing confusion

        <ExecutionEvent type="ProjectSucceeded" class="org.apache.maven.lifecycle.internal.DefaultExecutionEvent" _time="2017-04-19 23:39:04.293">
          <project baseDir="/path/to/workspace" file="/path/to/workspace/pom.xml" groupId="jenkins.mvn.test" name="mono-module-maven-app" artifactId="mono-module-maven-app" version="0.1-SNAPSHOT">
            <build sourceDirectory="/path/to/workspace/src/main/java" directory="/path/to/workspace/target"/>
          </project>
          <no-execution-found/>
          <artifact extension="jar" groupId="jenkins.mvn.test" artifactId="mono-module-maven-app" id="jenkins.mvn.test:mono-module-maven-app:jar:0.1-SNAPSHOT" type="jar" version="0.1-SNAPSHOT">
            <file>/path/to/workspace/target/classes</file>
          </artifact>
          <attachedArtifacts/>
        </ExecutionEvent>
      

            Assignee:
            Cyrille Le Clerc
            Reporter:
            Cyrille Le Clerc
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: