Maven: includes external library into your project.

Maven dependency management environtment is the most relevant part in Maven Build Tools. Every developer who user maven as their build tool they should know about the maven depency management.

In this post I assume you know what is maven dependency management and I introuduce you about how in add external libray which you want to really reside in your project and how to include that dependency in your pom.

Normally you know all depencies are comes under the tags.

<dependencies>
            ....
            ....
</dependencies>

If you are add your dependency inside the pom. you have to mentioned the path like as follow in your dependency

Capture.PNG

Focuse on the dependency authapi.jar and how to include the external jar library into your project. You may include this jar like as follow

<dependency>
 <groupId>com.rsa.authagent.authapi</groupId>
 <artifactId>rsa-auth-api</artifactId>
 <version>1.0</version>
 <scope>system</scope>
 <systemPath>${project.basedir}/src/main/resources/authapi.jar</systemPath> </dependency>
Advertisements

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