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: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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

Reply via email to