Put the META-INF folder structure in src/main/webapp. Not in src/main/resources. You should then be able to remove all your special configuration, which is a clear sign of being on the right track.
/Anders On Fri, May 20, 2011 at 02:02, dpaily <dpa...@sonypictures.com> wrote: > I'm using maven-war-plugin in my pom. Here is my code > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.1-beta-1</version> > <configuration> > <webappDirectory>target/${webapp.name > }</webappDirectory> > <webResources> > <resource> > > <directory>src/main/resources/META-INF/</directory> > <targetPath>META-INF</targetPath> > </resource> > </webResources> > > <packagingExcludes>src/main/resources/META-INF/</packagingExcludes> > > </configuration> > </plugin> > > My questions is, I need the files under META-INF to show up under > target/<project-name>/META-INF/, which the above code accomplishes. But > since the plugin constructs its own folder structure, it puts those files > under target/<project-name>/WEB-INF/classes/META-INF/ as well. How can I > get > the files to be excluded from classes/META-INF/ folder and only make them > show up under target/<project-name>/META-INF? > > -- > View this message in context: > http://maven.40175.n5.nabble.com/A-maven-war-plugin-question-tp4411244p4411244.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >