2019-08-07

How to tell maven to pick up my local jar/repositories



Convert old projects to Maven Nature with local JAR references not in Public / Private Maven Repository.

How to tell maven to pick up my local jar/repositories

Reference URL:



<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.4-SNAPSHOT-byMe</version>
<scope>system</scope>
<systemPath>${basedir}/lib/opencsv-2.4-SNAPSHOT-byMe.jar</systemPath>
</dependency>



or


<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.4-SNAPSHOT-byMe</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/opencsv-2.4-SNAPSHOT-byMe.jar</systemPath>
</dependency>












No comments:

Google Referrals