• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include external jars during maven build

 
Jhinuk Mitra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic