2007/9/11, Martin Gilday <[EMAIL PROTECTED]>: > > Is there a dependency scope which makes an artifact available for > compilation of src/main/java and also on the test classpath, but not > included in the resulting WAR? I have tried provided which makes sense > in excluding it from the WAR but then it is not available to my tests. > The only solution I have found is to make another profile to use when > testing which overwrites the provided scope to default scope. This > means duplicating all of the dependency blocks, so is far from ideal.
I think that you need to exclude it manually, in the WAR plugin configuration: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#dependentWarExcludes HTH Antonio
