You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Steinhauer, Frank" <f....@olympus-odl.com> on 2007/06/20 17:13:21 UTC

EAR: prevent including the transient dependencies

Hi,
 
how do I prevent the inclusion of transient dependencies during EAR
generation? Is there a (maven-ear-plugin) parameter like -notransient?
Or is it possible to list all JARs to be included not as dependency, but
as "to-be-included-in-ear"? We have A LOT dependencies, I don't wanna
<exclude> every transient dependency....

Thanks,

Frank

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


Re: EAR: prevent including the transient dependencies

Posted by Mick Knutson <mi...@gmail.com>.
I just had this issue.
What I did was look at the jars I did NOT want included, then add a
dependancy a declaration for each of them, and put them as provided like:



            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>1.0.b2</version>
                <scope>provided</scope>
                <type>jar</type>
            </dependency>


On 6/20/07, Stephane Nicoll <st...@gmail.com> wrote:
>
> No there's nothing to prevent that.
>
> If you have a lot of unwantend dependencies, you should have a look to
> your projects and fix the scope of the dependencies.
>
> Regards,
> Stéphane
>
> On 6/20/07, Steinhauer, Frank <f....@olympus-odl.com> wrote:
> > Hi,
> >
> > how do I prevent the inclusion of transient dependencies during EAR
> > generation? Is there a (maven-ear-plugin) parameter like -notransient?
> > Or is it possible to list all JARs to be included not as dependency, but
> > as "to-be-included-in-ear"? We have A LOT dependencies, I don't wanna
> > <exclude> every transient dependency....
> >
> > Thanks,
> >
> > Frank
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: EAR: prevent including the transient dependencies

Posted by Stephane Nicoll <st...@gmail.com>.
No there's nothing to prevent that.

If you have a lot of unwantend dependencies, you should have a look to
your projects and fix the scope of the dependencies.

Regards,
Stéphane

On 6/20/07, Steinhauer, Frank <f....@olympus-odl.com> wrote:
> Hi,
>
> how do I prevent the inclusion of transient dependencies during EAR
> generation? Is there a (maven-ear-plugin) parameter like -notransient?
> Or is it possible to list all JARs to be included not as dependency, but
> as "to-be-included-in-ear"? We have A LOT dependencies, I don't wanna
> <exclude> every transient dependency....
>
> Thanks,
>
> Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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