Stephen Connolly created MNG-6251: ------------------------------------- Summary: 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 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)