maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trygve Laugstøl <tryg...@apache.org>
Subject Re: cvs commit: maven-components/maven-artifact/src/main/java/org/apache/maven/artifact AbstractMavenArtifact.java
Date Sun, 20 Jun 2004 02:05:43 GMT
On Sun, Jun 20, 2004 at 11:45:52AM +1000, Dion Gillard wrote:
> On Sat, 19 Jun 2004 21:40:09 -0400, Trygve Laugstøl <trygvis@apache.org> wrote:
> > 
> > The id of a artifact/dependency is
> > 
> >  <groupId>:<artifactId>:<type>
> > 
> > so I guess the version should be removed from the hashCode() then?
> 
> I think version should be part of the uniqeness of an artifact. If I
> have two artifacts, e.g.
> 
> apache:struts:jar:1.0 and apache:struts:jar:2.0, they're definitely
> not 'equal', right?

You are right, the version will be added to Dependency.getId() in the
model.

I'll let the hashCode() be as it is for now and we'll add version to the
id ASAP

Mime
View raw message