It does not sound right.  Do you have a mini maven project to produce this?

Thanks

-D

On Thu, Jan 22, 2015 at 1:36 PM, Rahul Mishra <zealous.tec...@gmail.com>
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
>

Reply via email to