The following comment has been added to this issue: Author: Eric Bottard Created: Thu, 2 Sep 2004 7:29 AM Body: Regarding your comment Carlos : I have always felt there was something odd about artifacts and dependencies in the POM (maven1) : an artifact is something 'physical', in the sense that it is a concrete file in the FS. An artifact has a 'type' which is indeed rather its file extension. However, the 'type' is sometimes misunderstood as the 'role' of the artifact : is it a plain library, a tag-library, a maven plugin, etc...
The jar 'type' (rather file extension) is the best example of this : a jar file can be used for many purposes. In the repository, the <group>/<type>s/<file>-<version>.<type> naming convension should in my opinion be <group>/<role>s/<file>-<version>.<type> So my question is, regarding maven2, will this notion be introduced (i guess from your comment that you may be rather conservative on the POM in maven2 ;-) and if not, how do you address the practical issue this jira-issue relates to (the fact that you have to workaround this by using a different name for, let's say, a plain library and a tag-library). --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/MAVEN-1087?page=comments#action_23721 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MAVEN-1087 Here is an overview of the issue: --------------------------------------------------------------------- Key: MAVEN-1087 Summary: Dependency type should participate in equals() and hashcode() Type: Bug Status: Unassigned Priority: Major Original Estimate: 1 hour Time Spent: Unknown Remaining: 1 hour Project: maven Components: model Fix Fors: 1.1 Versions: 1.0 Assignee: Reporter: Eric Bottard Created: Mon, 22 Dec 2003 3:48 PM Updated: Thu, 2 Sep 2004 7:29 AM Description: I was trying to bundle taglibs in a war project when i stumbled into this unexpected behavior : for each and every taglib in my web-app, either the jar file or the tld got copied to the target web-app, but I could not get them to be copied together. After a moment I realized that the dependency for a given taglib (one jar and one tld) had the same artifactId but different types (jar and tld). A quick hack in the war plugin shows that the forEach loop only sees one of the two. So I guess that the dependency type should participate in equals() and hashcode() for a dependency (or modify the getId() of Dependency, but I don't know the other impacts). --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]