maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hrotkó Gábor <r...@al.pmmf.hu>
Subject maven-war-plugin dependentWarExcludes not working when build/outputDirectory specified
Date Tue, 05 Oct 2010 10:56:29 GMT
 Hi list!

  I use build/outputDirectory to have compile on save work with netbeans.
I also want the overlay war to exclude WEB-INF/classes.
My problem is that it only works when not specifying build/outputDirectory.
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_21

...
    <build>
        <finalName>myProject</finalName>
         <plugins>
           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1-beta-1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>war</goal>
                        </goals>
                        <configuration>
                           
<packagingExcludes>WEB-INF/lib/commons-logging-*.jar</packagingExcludes>
                           
<dependentWarExcludes>WEB-INF/classes/**</dependentWarExcludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
       
<!--outputDirectory>target/myProject/WEB-INF/classes</outputDirectory-->
    </build>
</project>

running 'mvn -X ...' gives these relevant lines:

working (without outputDirectory):
[DEBUG]  - WEB-INF/classes/webservice.properties wasn't copied because
it has already been packaged for overlay[currentBuild].

not working (with outputDirectory):
[DEBUG]  + WEB-INF/classes/webservice.properties has been copied. (!and
overwrites the original!)

Is it a config prolem, or a bug?

Thanx


Roti

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


Mime
View raw message