Home > Maven3 > How to add jars to your Maven project

How to add jars to your Maven project

If you want to physically add jar files to your maven project, so they don’t have to be downloaded from a repository, you can use the system dependency scope, and point to a location in your project:

<dependency>
  <groupId>com.missionmode</groupId>
  <artifactId>missionmode-api</artifactId>
  <version>3.6.51</version>
  <scope>system</scope>
  <systemPath>${project.basedir}/lib/MMAPI-3.6.51.jar</systemPath>
</dependency>
Advertisements
Categories: Maven3 Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: