hi,

i am facing following problem:
when building assembly there are two libraries (A.jar+B.jar) which contain
same classes (packageName + className). looking at this library A.jar
contains a class which offers different public methods as B.jar. assembly
plugin now overrides this A.jar class with B.jar classes. 

result of this, that application gives me a NotSuchMethodException.
unfortunately i cannot replace A with B or otherwise. both need to be
assembled into one jar. 

so how is it possible to configure following in assembly plugin:
-dependency X defined in pom.xml of  project P1 should be preferred over
dependency Y in pom.xml of project P2, when running assembly:assembly 

thanks in advance!

besides: i know i should change my architecture to avoid such a library
conflict (there should exist only one class version). but before refactoring
i need a quick solution to make a running release.




-- 
View this message in context: 
http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12289677
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to