Thanks! I was not aware of the <warSourceExcludes>
But, wont it be great to just turn-off the t-dependency by a
<transitive></transitive> element.
<dependency>
<groupId>com-server</groupId>
<artifactId>com-server-ejb</artifactId>
<version>1</version>
<type>ejb-client</type>
<transitive>false</transitive>
</dependency>
????
Zarar Siddiqi wrote:
>
> If you are using the maven-war-plugin, you can use the
> <warSourceExcludes> elements to exclude jars from your war. They will
> still appear in the work directory (where the war is assembled) but once
> your war is bundled up, they won't be there. You should also look at
> <dependentWarExcludes>.
>
> http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
>
> Here's some usage:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0.1</version>
> <configuration>
> <warSourceExcludes>
>
> WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*</warSourceExcludes>
> <warName>${app.name}</warName>
> <containerConfigXML>${war.dir}/context.xml</containerConfigXML>
> <webXml>${war.dir}/WEB-INF/web.xml</webXml>
> </configuration>
> </plugin>
>
> Zarar
>
>
>
>
>
>
> 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?
>>
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6848538
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]