[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Re: Issue with Maven WAR Plugin?
From:       Ron Wheeler <rwheeler () artifact-software ! com>
Date:       2015-01-25 21:32:09
Message-ID: 54C560D9.5070200 () artifact-software ! com
[Download RAW message or body]

Of you are using an IDE with Maven support, you should be able to see 
the source of each dependency(ECLIPSE/STS includes m2e which has a 
Dependency hierarchy display.

There is probably a command line option that lists all of the transitive 
dependencies that should tell you where the jars are coming from.

Ron

On 22/01/2015 4:36 PM, Rahul Mishra wrote:
> Hi,
> 
> I am an encountering an issue when trying to create a WAR. When i am using
> the Maven WAR plugin to create a WAR, different versions of the same JAR
> are being included. For example, if i put an explicit dependency on A.jar
> version 1.0.1
> 
> My WAR includes
> 
> A-1.0.1.jar
> A-1.0.2.jar
> A-1.0.2-SNAPSHOT-{buildTimeStamp}.jar
> 
> The extra inclusions don't make any sense. I checked through the dependency
> plugin on the WAR's pom (to investigate if something was being pulled in
> transitively) and the dependency tree is exactly as expected. . A similar
> problem is described @
> 
> http://stackoverflow.com/questions/8082488/maven-war-packaging-creating-multiple-version-of-the-same-snapshot-jars-in-web-i
>  
> The suggestions listed at the link above have not helped me. I have even
> tried excluding transitive dependencies explicitly and that has not helped
> either(weird huh?).
> 
> *My environment*
> Maven - 3.2.3 (Tried with 2,2,1 as well - same bug)
> Maven War Plugin - Tried from 2.0 to 2.6
> 
> Has anybody else encountered this kind of an issue? Any pointers?
> 
> Regards,
> Rahul
> 


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic