File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MAVEN2: Same dependency - other version on classpath

 
Kim Lauwers
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I have a maven2 question:

I have this pom file:


Now I want to have mule version 1.4.4 AND mule version 2.1.2 on my classpath. But because of the fact that the groupid and artifactid are the same. Maven only puts the the first one on my classpath.
Can this be fixed?

Thanks,
Greetings Kim.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17621
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It wouldn't matter if Maven could or not. The Java runtime won't stand for it. One and only one version of a class in a given classpath. No mix-and-match. Mostly because when you mix, they won't match, but also because it's part of the Java security model.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic