I am using Maven 3 and I am trying to add META-INF folder under webapp folder. So I am trying to do the following:
src
main
webapp
META-INF
context.xml
Use the tag instead. Above answer using copies everything in src/main/resources to the root of your web application, which is probably not what you want to do nor an example you want to follow.
Put your META-INF folder within src/main/resources.
Put this on your pom.xml... sorry i missed it before;
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>${project.basedir}/src/main/resources
</directory>
</resource>
</webResources>
<warName>mywar</warName>
</configuration>
</plugin>
</plugins>
</build>
the web resources tag is what is important... Hope this helps