[ http://jira.codehaus.org/browse/MWAR-18?page=all ]
Frank Cornelis updated MWAR-18: ------------------------------- Attachment: maven-war-plugin-target-filename-path.patch I've created a quick-and-dirty patch that does the trick somehow. If you have a dependency named groupId:artifactId:version that you which to put somewhere else than WEB-INF/lib, you can add the following to the maven-war-plugin configuration: <configuration> <dependencies> <dependency> <groupId>groupId</groupId> <artifactId>artifactId</artifactId> <targetFilename>my-nice-applet-filename.jar</targetFilename> <targetPath>/</targetPath> </dependency> </dependencies> </configuration> Both targetFilename and targetPath are optional, but it makes sense to define at least one when using the dependency configuration. > Need to declare dependencies as resources outside of WEB-INF in WARs > -------------------------------------------------------------------- > > Key: MWAR-18 > URL: http://jira.codehaus.org/browse/MWAR-18 > Project: Maven 2.x War Plugin > Issue Type: Improvement > Reporter: Mark Hobson > Attachments: maven-war-plugin-target-filename-path.patch > > > Need to be able to declare maven dependencies as resources within WARs. > Currently all dependencies are placed within WEB-INF/lib. > Typical use-case is for a war project to pull in an applet from the repo to > be included in the package. Would need to specify the whereabouts of the > applet in the WAR. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira