Hi,
Dmystery wrote:
>
> IS there a way to turn off transitive dependencies while packaging a war
> file?
> I want my ejb-client in the war-packaging but it brings along all the
> ejb-client dependencies. I've searched enough on this forum but cant find
> a solution.
>
> My webapp pom has a dependency as follows..
>
>
> <dependencies>
>
> <dependency>
> <groupId>com-server</groupId>
> <artifactId>com-server-ejb</artifactId>
> <version>1</version>
> <type>ejb-client</type>
> </dependency>
>
> </dependencies>
>
> Has anyone solved this isssue?
unfortunately the ejb-client has exactly the same dependencies as the ejb
itself, there's no mechanism in M2 to define only a subset for the
client-jar.
You can exclude unwanted deps though:
<dependency>
<groupId>com-server</groupId>
<artifactId>com-server-ejb</artifactId>
<version>1</version>
<type>ejb-client</type>
<exclusions>
<exclusion>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
</exclusion>
</exclusions>
</dependency>
but you have to repeat such an exclusion section everywhere you are using
the client jar (and you have to realize that this section is "global" i.e.
may exclude such a dep for the complete module even if it is referenced in
another transitive dep).
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]