You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sonar, Nishant" <ni...@wachovia.com> on 2007/10/31 11:30:24 UTC

jars always added to ear

Hi

I am building an ear from ear-plugin which composes of two moduels a.war
and b.jar .i only want ti add these 2 modules to ear , but the followinf
lisr of jars are always added. This is strange for me, I'[ve checked in
my parent poms for this module and other , nowhere I am using these as
dependencies .Here is the list

 

[INFO] Copying artifact[jar:javax.transaction:jta:1.0.1B]
to[jta-1.0.1B.jar]

[INFO] Copying artifact[jar:asm:asm:1.5.3] to[asm-1.5.3.jar]

[INFO] Copying
artifact[jar:commons-collections:commons-collections:2.1.1]
to[commons-collections-2.1.1.jar]

[INFO] Copying artifact[jar:net.sf.ehcache:ehcache:1.2]
to[ehcache-1.2.jar]

[INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4]
to[commons-logging-1.0.4.jar]

[INFO] Copying artifact[jar:dom4j:dom4j:1.6.1] to[dom4j-1.6.1.jar]

[INFO] Copying artifact[jar:org.hibernate:hibernate:3.2.0.cr5]
to[hibernate-3.2.0.cr5.jar]

[INFO] Copying artifact[jar:cglib:cglib:2.1_3] to[cglib-2.1_3.jar]

[INFO] Copying artifact[jar:asm:asm-attrs:1.5.3] to[asm-attrs-1.5.3.jar]

[INFO] Copying artifact[jar:antlr:antlr:2.7.6] to[antlr-2.7.6.jar]

 

Is this the default nature of ear-plugin or is there any alternate to
restrict these jars

 

Regards,

Nishant Sonar

 


Re: jars always added to ear

Posted by Wayne Fay <wa...@gmail.com>.
If you add a <dependency> node with scope "provided" for each of these
in the EAR, they should not be included in the EAR.

Are you sure you don't need these jars? Check the dependency report to be sure.

Wayne

On 10/31/07, Sonar, Nishant <ni...@wachovia.com> wrote:
> Hi
>
> I am building an ear from ear-plugin which composes of two moduels a.war
> and b.jar .i only want ti add these 2 modules to ear , but the followinf
> lisr of jars are always added. This is strange for me, I'[ve checked in
> my parent poms for this module and other , nowhere I am using these as
> dependencies .Here is the list
>
>
>
> [INFO] Copying artifact[jar:javax.transaction:jta:1.0.1B]
> to[jta-1.0.1B.jar]
>
> [INFO] Copying artifact[jar:asm:asm:1.5.3] to[asm-1.5.3.jar]
>
> [INFO] Copying
> artifact[jar:commons-collections:commons-collections:2.1.1]
> to[commons-collections-2.1.1.jar]
>
> [INFO] Copying artifact[jar:net.sf.ehcache:ehcache:1.2]
> to[ehcache-1.2.jar]
>
> [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4]
> to[commons-logging-1.0.4.jar]
>
> [INFO] Copying artifact[jar:dom4j:dom4j:1.6.1] to[dom4j-1.6.1.jar]
>
> [INFO] Copying artifact[jar:org.hibernate:hibernate:3.2.0.cr5]
> to[hibernate-3.2.0.cr5.jar]
>
> [INFO] Copying artifact[jar:cglib:cglib:2.1_3] to[cglib-2.1_3.jar]
>
> [INFO] Copying artifact[jar:asm:asm-attrs:1.5.3] to[asm-attrs-1.5.3.jar]
>
> [INFO] Copying artifact[jar:antlr:antlr:2.7.6] to[antlr-2.7.6.jar]
>
>
>
> Is this the default nature of ear-plugin or is there any alternate to
> restrict these jars
>
>
>
> Regards,
>
> Nishant Sonar
>
>
>
>

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