maven2: excluding directory from WAR

Both of your solutions wouldn’t help, as they would add an additional resource that is then deactivated. The webapp source folder is copied by default, without the resource mechanism. The mechanism to deactivate a part of that is through the <warSourceExcludes> parameter, like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1</version> <configuration> <warSourceExcludes>webscripts/**</warSourceExcludes> </configuration> </plugin>

In Maven, how output the classpath being used?

To get the classpath all by itself in a file, you can: mvn dependency:build-classpath -Dmdep.outputFile=cp.txt Or add this to the POM.XML: <project> […] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.9</version> <executions> <execution> <id>build-classpath</id> <phase>generate-sources</phase> <goals> <goal>build-classpath</goal> </goals> <configuration> <!– configure the plugin here –> </configuration> </execution> </executions> </plugin> </plugins> </build> […] </project> From: http://maven.apache.org/plugins/maven-dependency-plugin/usage.html This command … Read more