[Created] (MNG-7105) Add setFile to Mojo Cookbook (website)

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Created] (MNG-7105) Add setFile to Mojo Cookbook (website)

Tibor Digana (Jira)
Casper Roubos created MNG-7105:

             Summary: Add setFile to Mojo Cookbook (website)
                 Key: MNG-7105
                 URL: https://issues.apache.org/jira/browse/MNG-7105
             Project: Maven
          Issue Type: Improvement
          Components: Documentation: Guides
    Affects Versions: 3.6.3
            Reporter: Casper Roubos

Is it possible to add in the 'my first mojo', that you need to register the output-directory in the artifact with project.getArtifact().setFile(..).

We are using a Jenkins muti-branch pipeline, and we found out that if you not build to install (e.q. process-test-classes) that the build will give an error because the dependency resolution can't find the artifact in the repo (because the first time it is not deployed yet).


Hope that this addition will also others.

This message was sent by Atlassian Jira