[ https://issues.apache.org/jira/browse/MNG-6251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Connolly closed MNG-6251. --------------------------------- Resolution: Invalid Assignee: Stephen Connolly Aha! I found and fixed the bug in my non-maven-jar plugin: https://github.com/stephenc/non-maven-jar-maven-plugin/commit/5ff6cdbb274fd1633df2177d4dfb20696b631dff#diff-3a193706aad02c328691a2ac618634c4R131 I was close in the description but it had a typo > Custom ArtifactHandler with role-hint disjoint from type are not resolved > from the reactor > ------------------------------------------------------------------------------------------ > > Key: MNG-6251 > URL: https://issues.apache.org/jira/browse/MNG-6251 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.5.0 > Reporter: Stephen Connolly > Assignee: Stephen Connolly > Attachments: custom-artifact-handler.tar.gz > > > The attached project will not build using just {{mvn verify}} > If I fix non-maven-jar to use: > {code:java} > for (Map.Entry<String, File> entry : selection.entrySet()) { > if (StringUtils.isEmpty(entry.getKey())) { > if (projectHasAlreadySetAnArtifact()) { > throw new MojoExecutionException("You have to use a > classifier " > + "to attach supplemental artifacts to the project > instead of replacing them."); > } > project.getArtifact().setFile(jarFile); > } else { > projectHelper.attachArtifact(project, "jar", entry.getKey(), > entry.getValue()); > } > } > {code} > instead of > {code:java} > for (Map.Entry<String, File> entry : selection.entrySet()) { > if (StringUtils.isEmpty(entry.getKey())) { > projectHelper.attachArtifact(project, "jar", > entry.getValue()); > } else { > projectHelper.attachArtifact(project, "jar", entry.getKey(), > entry.getValue()); > } > } > {code} > Then the test project will also fail but for a different module. > Building with {{mvn install}} works as the fall-through resolution from the > local repository cache succeeds -- This message was sent by Atlassian JIRA (v6.4.14#64029)