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: [email protected]
For additional commands, e-mail: [email protected]