Re: old version of dependencies getting included into project

2018-03-15 Thread Stephen Coy
I’ve seen this happen when you have WAR overlays. All dependency management seems to go out the window when using overlays. Steve C > On 15 Mar 2018, at 6:39 am, Jonathan Yom-Tov > wrote: > > hi, > > I have a fairly large project which compiles to a war file.

Re: old version of dependencies getting included into project

2018-03-15 Thread Anders Hammar
It's close to impossible to tell what the problem is without a test project showing the issue. /Anders On Thu, Mar 15, 2018 at 8:44 AM, Jonathan Yom-Tov < jon.yom...@huha-analytics.com> wrote: > I'm running `mvn clean package` every time (plus I deleted the old version > of the jar form my

Re: old version of dependencies getting included into project

2018-03-15 Thread Jonathan Yom-Tov
I'm running `mvn clean package` every time (plus I deleted the old version of the jar form my local repo), so I don't think that's it. On Thu, Mar 15, 2018 at 9:14 AM, Martin Hoeller wrote: > Hi! > > On 14 Mar 2018, Jonathan Yom-Tov wrote: > > > I have a fairly large project

Re: old version of dependencies getting included into project

2018-03-15 Thread Jonathan Yom-Tov
One of the jars is jackson core, I'm trying to upgrade from 2.4.3 to 2.7.3. It looks like the coordinates are identical. I tried upgrading the war plugin to 3.2.0, but that didn't help. On Thu, Mar 15, 2018 at 9:07 AM, Anders Hammar wrote: > Could it be that it's a different

Re: old version of dependencies getting included into project

2018-03-15 Thread Martin Hoeller
Hi! On 14 Mar 2018, Jonathan Yom-Tov wrote: > I have a fairly large project which compiles to a war file. I've upgraded > the jackson dependency to 2.7.3 but for some reason 2.4.3 and 2.4.0 jar > files are included into the war file in addition to the 2.7.3 version. I > ran mvn dependency:tree

Re: old version of dependencies getting included into project

2018-03-15 Thread Anders Hammar
Could it be that it's a different groupId for all these jackson artifacts? That what explain why there are several different version for the same library as Maven sees it as different coordinates. I would check the jars and see if there's pom in them which would anser this. Also, I would make

RE: old version of dependencies getting included into project

2018-03-15 Thread Jonathan Yom-Tov
100%, grep does not lie :-) There's also something else that's strange: as a workaround I tried to add a packagingExcludes section to the pom.xml but the unwanted jars were still included. On Mar 15, 2018 08:37, "Golan, Yaron" wrote: > Hi Jon, > This scenario is very

RE: old version of dependencies getting included into project

2018-03-15 Thread Golan, Yaron
Hi Jon, This scenario is very strange. Are you absolutely sure that the mvn dependency:tree didn't print it out? -Original Message- From: Jonathan Yom-Tov [mailto:jon.yom...@huha-analytics.com] Sent: Wednesday, March 14, 2018 21:40 To: users@maven.apache.org Subject: old version of