[ https://jira.codehaus.org/browse/MASSEMBLY-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296546#comment-296546 ]
Björn Streicher commented on MASSEMBLY-599: ------------------------------------------- In addition, I think the description for all include and exclude-directives at https://maven.apache.org/plugins/maven-assembly-plugin/assembly.html is also wrong. Please correct! > Mistake in javadoc for dependencySet/includes > --------------------------------------------- > > Key: MASSEMBLY-599 > URL: https://jira.codehaus.org/browse/MASSEMBLY-599 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2.2, 2.3 > Reporter: Alexander Kormushin > Priority: Minor > > [Here|http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet] > it's stated that fully qualified artifact coordinates in > dependencySet/includes/include* should be in form > *groupId:artifactId:type:version[:classifier]* > But actually accepted following form > *groupId:artifactId:type[:classifier]:version* > Fragment of source calculating artifact.id for filtering: > {code:title=.m2/repository/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1-sources.jar!/org/apache/maven/artifact/DefaultArtifact.java} > public String getId() > { > return getDependencyConflictId() + ":" + getBaseVersion(); > } > public String getDependencyConflictId() > { > StringBuffer sb = new StringBuffer(); > sb.append( getGroupId() ); > sb.append( ":" ); > appendArtifactTypeClassifierString( sb ); > return sb.toString(); > } > private void appendArtifactTypeClassifierString( StringBuffer sb ) > { > sb.append( getArtifactId() ); > sb.append( ":" ); > sb.append( getType() ); > if ( hasClassifier() ) > { > sb.append( ":" ); > sb.append( getClassifier() ); > } > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira