maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <baerr...@gmail.com>
Subject Re: Maven copies 3 jars in lib folder (skinny war) for no reason
Date Mon, 03 Mar 2014 21:44:28 GMT
On 28 February 2014 20:33, poroto20 <poroto20@gmail.com> wrote:
> I have one EAR project and I am trying to have a skinny war. It seems to be
> working ok but for some reason it keeps copying 3 dependencies into war/lib
> folder, which are commons-logging-1.0.4.jar, commons-codec-1.4.jar and
> jboss-seam-2.2.1.Final.jar.
>
> I the EAR's pom I added `<skinnyWars>true</skinnyWars>`. I made sure I added
> exclusions for those three jars, or they are `scope=provided`. I also added
> `<packagingExcludes>**/*.jar</packagingExcludes>` in the WAR's pom file.
>
> I really can't understand maven's logic to create the war (or to copy those
> jars).

Run with -X
You get oodles of feedback.
Make sure you redirect this output to a file for investigation.

Maven should tell you what gets included and where from and you can
investigate from there.
You will probably need to add an exclusion to the offending artifact.

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


Mime
View raw message