hello, the src/main/resources is handled by the resource plugin, by default the resource plugin copies the contents to target/classes. =) you need to explicitly invoke the compile phase before using the war goals.
check the war plugin documentation for the details : http://maven.apache.org/plugins/maven-war-plugin/usage.html pete marvin Charles Harvey III wrote: > Hello. > I am trying to build a war with: > > > mvn war:exploded > > mvn war:inplace > > mvn war:war > > And, no matter how I configure it, only .properties files get copied from > my src/main/resources directory into the webapp/WEB-INF/classes/. > > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.0.1</version> > <configuration> > <webResources> > <resource> > <directory>src/main/resources</directory> > <targetPath>WEB-INF/classes</targetPath> > <filtering>true</filtering> > <includes> > <include>**/*</include> > </includes> > </resource> > </webResources> > </configuration> > </plugin> > </plugins> > > When I set it up this way, it copes all the files from src/main/resources > into the root directory of the webapp. If I don't have this <plugin> > declaration > (which I should not need because everything is in the default > location), only > .properties files are copied over. > > Is there something I am doing wrong? When I put this config in, it says: > "Copy webapp webResources to > workspace\projectname\target\projectname-1.0" TWICE. > If I leave it out, I only see it once. It doesn't say it is copying > it to the > WEB-INF/classes directory. > > Any help is much appreciated. > > > Charlie > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]