Hello,

the exclude paramater of the war plugin is only meant for the webapp
sources,
the parameter name is a little bit vague. =)

if you want to exclude certain dependencies from the war, just specify
the scope
as compile. only dependencies with runtime scope will be included in the
war.          

pete marvin


Markus Wolf wrote:
> Hi,
>
> I have a problem creating my EAR file containing a WAR and a EJB.
> First I setup my WAR-pom to have the EAR as provided dependency, but
> then it is not possible to add it to the manifests classpath.
> Then I read through the mailinglist and found an exclude configuration
> should help. But no matter how I configure my excludes they are ignored...
>
> I've checked the version of the war plugin as well and I'm using 2.0.1.
> Is there anything I've overlooked in my pom.xml?
>
> ...
> <dependencies>
>   <dependency>
>     <groupId>de.esw.services</groupId>
>     <artifactId>emediaservices-core</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <scope>runtime</scope>
>   </dependency>
>   <dependency>
>     <groupId>junit</groupId>
>     <artifactId>junit</artifactId>
>     <version>3.8.1</version>
>     <scope>test</scope>
>   </dependency>
> </dependencies>
> <build>
>   <finalName>emediaservices-web</finalName>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-war-plugin</artifactId>
>       <configuration>
>         <excludes>
>           <exclude>WEB-INF/lib/*.jar</exclude>
>         </excludes>
>         <archive>
>           <manifest>
>             <addClasspath>true</addClasspath>
>           </manifest>
>         </archive>
>       </configuration>
>     </plugin>
>   </plugins>
> </build>
> ...
>
> Any ideas?
> Thanks
> Markus Wolf
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to