This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Include external jars during maven build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Include external jars during maven build" Watch "Include external jars during maven build" New topic
Author

Include external jars during maven build

Jhinuk Mitra
Greenhorn

Joined: Jul 22, 2012
Posts: 1

Hi,

http://www.tutorialspoint.com/maven/maven_external_dependencies.htm

I followed the step given in the above tutorial to include external jars during maven build.
But the jars are not getting included in the target jar.
Please provide a suitable solution for this.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

You need to use the Assembly plugin to create a JAR file that includes all of the dependencies needed to run. In your assembly descriptor, mention 'jar' as a desired output format.
http://maven.apache.org/plugins/maven-assembly-plugin/index.html


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Include external jars during maven build
 
Similar Threads
Compilation overahead in WSAD 5.1
Running a runnable jar File
Tomcat and Axis2
Maven build dependencies from .classpath
maven packaging is not including dependent jars