Kapil Gupta(CT) wrote: > > Is there any way so that I can specify in my pom.xml to copy my module > jars, resources and their dependencies from the local repository to a > folder to run the application? >
Sure, this is the work of the maven assembly plugin. You can have a look at this plugin here: http://maven.apache.org/plugins/maven-assembly-plugin/ And here is the assembly descriptor I'm using (which basically does what you're trying to do): <?xml version="1.0" encoding="ISO-8859-1"?> <assembly> <id>bin</id> <formats> <format>tar.gz</format> <format>zip</format> </formats> <fileSets> <fileSet> <includes> <include>README*</include> <include>LICENSE*</include> <include>NOTICE*</include> </includes> </fileSet> <fileSet> <directory>src/main/include</directory> <outputDirectory>/</outputDirectory> <excludes> <exclude>bin/**</exclude> </excludes> </fileSet> <fileSet> <directory>target</directory> <outputDirectory>/lib</outputDirectory> <includes> <include>*.jar</include> </includes> </fileSet> </fileSets> <files> <file> <source>src/main/include/bin/siasp-statis.bat</source> <outputDirectory>/bin</outputDirectory> <filtered>true</filtered> </file> <file> <source>src/main/include/bin/siasp-defense.bat</source> <outputDirectory>/bin</outputDirectory> <filtered>true</filtered> </file> </files> <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> <scope>runtime</scope> </dependencySet> </dependencySets> </assembly> -- View this message in context: http://www.nabble.com/How-to-copy-jars-from-local-repository--tf1990580.html#a5462903 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]