This appears to have been fixed in maven-war-plugin-2.0.2 2.0.2 has not yet been released, but you can check out the trunk (2.0.2-SNAPSHOT) using "svn checkout http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin maven-war-plugin"
JIRA Issue: http://jira.codehaus.org/browse/MWAR-54 Note: I had to modify the maven-plugins parent pom version to be 2, instead of 2-SNAPSHOT. I then installed locally and updated the dependency version for maven-war-plugin in my project pom to 2.0.2-SNAPSHOT. Hope this helps, Brad Attila Mezei-Horvati wrote: > TargetPath is not taken into account. Resources are > copied in the webroot no matter what. > > Did anybody have the same issue? (see also mail > below). > thanks, > Attila > > --- Attila Mezei-Horvati <[EMAIL PROTECTED]> wrote: > > >>I am trying to include a jar into the war file. I >>found on the site a parameter named 'targetPath' >>that >>could help me. Unfortunately it is not working for >>me. >>Can anybody point out my mistake, please. >> >><plugin> >><groupId>org.apache.maven.plugins</groupId> >><artifactId>maven-war-plugin</artifactId> >><configuration> >><archiveClasses>true</archiveClasses> >> >><webResources> >><resource> >><directory>src</directory> >><includes> >><include>xmltypes.jar</include> >></includes> >><targetPath>WEB-INF/lib</targetPath> >></resource> >></webResources> >></configuration> >></plugin> >> >>No matter what I do, the jar always is copied into >>the >>webroot. I tried with xml files and only to the >>WEB-INF dir that didn't work either. Am I missing >>something? >> >>thanks, >>Attila --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
