Filtering WEB-INF files in Maven webapp

<build>
  <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
      <webResources>
        <resource>
           <directory>${basedir}/src/main/webapp/WEB-INF</directory>
           <filtering>true</filtering>
           <targetPath>WEB-INF</targetPath>
        </resource>
      </webResources>
    </configuration>
   </plugin>
 </plugins>
</build>

Maven webapp on Eclipse with Tomcat

I finally did it !!!!!!!!!!!!

I manage to configure a Maven webapp to run on a Tomcat Server to test the JSPs on Eclipse.

.: To Complete :.

1. Create a library for Tomcat JARs
Window > Preferences > Java > Build Path > User Libraries

2. Add this library to classpath with maven-eclipse-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.3</version>
<configuration>
<classpathContainers>
<classpathContainer>org.eclipse.jdt.USER_LIBRARY/Tomcat-6.0.20</classpathContainer>
</classpathContainers>

</plugin>

A big thank to that site

http://www.devx.com/Java/Article/36785/1763/page/3

Let’s code then 😀