maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
Subject Re: adds same artifacts(different version)?
Date Thu, 30 Nov 2006 04:10:47 GMT
On 11/29/06, jiangshachina <jiangshachina@gmail.com> wrote:
> I have a Web project.
> I declare ehcache-1.2.3.jar as dependency.
> But ehcache-1.1.jar is transitive dependency of one of my directly
> dependency(acegi-security-1.0.2.jar).
> Then I run "mvn clean package", the two jar files are all in WEB-INF/lib.
> How to resolve the problem?

When you say you declare a dependency, we need to see the whole thing:
 groupId, artifactId, and version.

My guess is that your EHCache jars are coming from two different
groupIds, so Maven can't figure out that they are the same.

http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
http://repo1.maven.org/maven2/ehcache/ehcache/

The output of "mvn clean install -X" should help you figure out where
each one is coming from.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message