-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
> 1) When I left the eclipse output directory as target MyEclipse got very
> confused and I had a lot of issues, especially switching between eclipse and
> maven builds.
Just for curiosity: What kind of errors?
For testing purposes on one of our company's projects I let Eclipse
compile the project stuff into the standard Maven output directory
(target/classes), but never encountered any problems with that...
> 3) Yes, I have tried to get the exclude to work for the web resources, but
> with no success. All examples are for additional web resource folder, so I
> wonder if that's got anything to do with it. (??) Has anyone had any
> experience excluding files / directories from src/main/webapp?
>
> Here are some of the things that I have tried, none of which work. :-(
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <!--
> <excludes>
> <exclude>**/WEB-INF/classes/**</exclude>
> </excludes>
> -->
> <!--
> <webResources>
> <resource>
> <directory>src/main/webapp/</directory>
> <excludes>
> <exclude>**/WEB-INF/classes/**</exclude>
> </excludes>
> </resource>
> </webResources>
> -->
> <webResources>
> <resource>
> <directory>
> src/main/webapp/WEB-INF/classes/
> </directory>
> <excludes>
> <exclude>**</exclude>
> </excludes>
> </resource>
> </webResources>
> </configuration>
> </plugin>
According to the examples in [1] this looks correct. Can you try the
following snippet and see whether that works?
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp</directory>
<excludes>
<exclude>WEB-INF/classes/**</exclude>
</excludes>
</resource>
</webResources>
</configuration>
[1]
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
HTH
Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkbltjEACgkQQvObkgCcDe1PAgCg9sZNyQ3mCyTgEkTAjc0L9V3d
sKMAoIjIOH8ca9I/bsXQVl35BCIfGWaP
=XigS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]