Re: maven-ear-plugin silently overrides libraries

2014-02-13 Thread Stephane Nicoll
I confirm that the use case you mention is supposed to work transparently. This most likely looks like a bug. Thanks for reporting this. S. On Fri, Feb 7, 2014 at 3:21 PM, Reto Hablützel wrote: > Hi there, > > I built an ear using the maven-ear-plugin (version 2.6). > > The ear is configured

Re: maven-ear-plugin silently overrides libraries

2014-02-13 Thread Reto Hablützel
Thank you, Anders. I reported the issue: http://jira.codehaus.org/browse/MEAR-180 - Reto On Fri, Feb 14, 2014 at 7:52 AM, Anders Hammar wrote: > You need to create an account at Codehaus Xircles. Go to > http://jira.codehaus.org and there is more info in the top left hand > gadget/box. > > /A

Re: maven-ear-plugin silently overrides libraries

2014-02-13 Thread Anders Hammar
You need to create an account at Codehaus Xircles. Go to http://jira.codehaus.org and there is more info in the top left hand gadget/box. /Anders On Fri, Feb 14, 2014 at 7:46 AM, Reto Hablützel wrote: > Is JIRA open for public registration / issue creation? I could not find a > link to sign up

Re: maven-ear-plugin silently overrides libraries

2014-02-13 Thread Baptiste Mathus
That's the way to go. Even more if you're able to attach a test project. One report without report is far less likely to be worked on. Cheers Le 13 févr. 2014 14:06, "Reto Hablützel" a écrit : > So what's the status on this? Shall I create a ticket? > > > On Fri, Feb 7, 2014 at 5:04 PM, Ron Wheel

Re: maven-ear-plugin silently overrides libraries

2014-02-13 Thread Reto Hablützel
So what's the status on this? Shall I create a ticket? On Fri, Feb 7, 2014 at 5:04 PM, Ron Wheeler wrote: > Exclusions will not help in this case. > Looking through the dependency hierarchy will at least get you to see the > problem earlier which I think was the nature of your question. > > It a

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Ron Wheeler
Exclusions will not help in this case. Looking through the dependency hierarchy will at least get you to see the problem earlier which I think was the nature of your question. It appears from my brief reading and fun with making servlets run in production that classloaders merge classes by nam

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Jörg Schaible
Robert Scholte wrote: > Hi, > > See > http://maven.apache.org/plugins/maven-ear-plugin/examples/customize-file-name-mapping.html > for custom filename mapping. Hmmm, IIRC the war plugin will automatically prepend the groupId for all jars with clashing name. - Jörg ---

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Reto Hablützel
Hi Robert, this sure is an option but only once you know where all those ClassNotFoundExceptions are coming from. I would like to avoid them in the first place ;) - Reto On Fri, Feb 7, 2014 at 3:43 PM, Robert Scholte wrote: > Hi, > > See http://maven.apache.org/plugins/maven-ear-plugin/ > exa

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Reto Hablützel
Sure, but exclusions don't do the trick if you need both of them, do they? I am talking about completely independent libraries that happen to have the same artifactId. Those were actually both libraries of mine and I could obviously fix this issue rather simply, but I was just thinking that it wou

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Robert Scholte
Hi, See http://maven.apache.org/plugins/maven-ear-plugin/examples/customize-file-name-mapping.html for custom filename mapping. Robert Op Fri, 07 Feb 2014 15:21:54 +0100 schreef Reto Hablützel : Hi there, I built an ear using the maven-ear-plugin (version 2.6). The ear is configured

Re: maven-ear-plugin silently overrides libraries

2014-02-07 Thread Ron Wheeler
If your IDE supports Maven (Eclipse/STS for example), you will see the conflict in the dependency hierarchy view and you can fix it with the right exclusions. It is almost always worth a quick look through the dependency hierarchy view if you use a lot of third party libraries. Not everyone u

maven-ear-plugin silently overrides libraries

2014-02-07 Thread Reto Hablützel
Hi there, I built an ear using the maven-ear-plugin (version 2.6). The ear is configured such that it includes two libraries into the lib folder, both with the same artifactId as well as the same version, but a different groupId. Now if I simply call 'mvn package' only the first one is included,