I run into the same issue... any idea when version 2.0.2 will be released?
Or better yet... how do I compile and dist (locally) this plugin myself? I downloaded and tried to build it, but there is a unresolved dependency: [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT So where do I get this plugin from? Thanks, Christoph. Brad Szabo wrote: > > 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] > > > -- View this message in context: http://www.nabble.com/Re%3A-mvn2%3A-war-targetPath-tf2259384.html#a6428446 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
