The maven version has nothing to do with it.

It's broken in maven-war-plugin 2.0 and fixed in 2.0.1. 

-----Original Message-----
From: Lukasz Szelag [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 14, 2006 9:44 AM
To: users@maven.apache.org
Subject: Re: WEB-INF/lib excludes once more


WAR plugin is broken in 2.0.4 so excludes don't work. As a workaround
I'm
using the following:

                        <plugin>
        
<groupId>org.apache.maven.plugins</groupId>
        
<artifactId>maven-antrun-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>package</id>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <configuration>
                                                        <tasks>
                                                                <!--
                                                                 |
Repackages the generated WAR file to exclude
                                                                 | JARs
from the WEB-INF/lib directory. This is
                                                                 | a
workaround until the WAR plugin is fixed to
                                                                 | allow
to exclude these files.
                                                                 |-->
                                                                 
        
<property
        
name="war.dir"
        
value="${project.build.directory}/${project.build.finalName}"
                                                                />
                                                                
                                                                <unjar
src="${war.dir}.war" dest="${war.dir}"/>

                                                                <jar
        
destfile="${war.dir}.war"
        
basedir="${war.dir}"
        
excludes="WEB-INF/lib/*.jar"
        
manifest="${war.dir}/META-INF/MANIFEST.MF"
                                                                />
                                                        </tasks>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>

-- 
View this message in context:
http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a532
7843
Sent from the Maven - Users forum at Nabble.com.


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


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

Reply via email to