Hello, It's works with "maven-dependency-plugin".
http://www.developpez.net/forums/d645553/java/edi-outils-java/maven/include-fichiers-war/#post3795257 <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.0</version> <executions> <execution> <id>copy</id> <phase>prepare-package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>fr.xxx</groupId> <artifactId>actiClient</artifactId> <version>2.1.1.1</version> <type>jar</type> <overWrite>true</overWrite> <destFileName>actiClient.jar</destFileName> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/${name}-${version}/lib</outputDirectory> </configuration> </execution> </executions> </plugin> Rémy. Walid "jo" Gedeon wrote: > > Hello Rémy, > Take a look at this link from the maven-war-plugin site examples section: > > http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html > > HTH --w > > On Tue, Nov 18, 2008 at 2:54 PM, Rémy <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I generate war files with Maven. I want to include jar files (applets) in >> a >> lib folder in the base repository. I don't know how doing that. >> >> I've got this project structure : >> >> |-- pom.xml >> |-- lib >> | `-- I want to put here the applets >> `-- WEB-INF >> |-- web.xml >> `-- lib >> >> I try with the antrun plugin, but I dont know how to acces the artefact >> (applets) in the Maven repository. >> >> I think it's possible doing that with war overlays, but isn't a shame to >> generate a war with the applets. >> >> Thanks. >> >> Rémy. >> >> >> -- >> View this message in context: >> http://www.nabble.com/Includes-files-in-a-war-tp20560039p20560039.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Includes-files-in-a-war-tp20560039p20577430.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
