[ https://issues.apache.org/jira/browse/MNGSITE-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946073#comment-17946073 ]
Matthias Bünger commented on MNGSITE-443: ----------------------------------------- Sorry for late response, I'm quite busy at the moment. For my further understanding: You have a project with (at least) two subprojects, where the first (a library?) of them is a dependency of the second (the plugin) - correct? What do you mean with "output"? Do you mean the built artifact, e.g. the JAR of the subproject, which you then want to pull in as a dependency? Or what is this "output"? > Add setFile to Mojo Cookbook (website) > -------------------------------------- > > Key: MNGSITE-443 > URL: https://issues.apache.org/jira/browse/MNGSITE-443 > Project: Maven Project Web Site (Moved to GitHub Issues) > Issue Type: Improvement > Reporter: Casper Roubos > Assignee: Matthias Bünger > Priority: Major > Labels: waiting-for-feedback > > 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 (v8.20.10#820010)