Monday, March 29, 2010

Installing 'not found' jars to local maven repo

At times, some of the jar files won't be found or inconsistent version (with vendor's) of the jar might be found in maven central repo at: So, we need to go and deploy into our local repo.
Below are 2 ways of doing it.

1. If no source of jar available:-
       mvn install:install-file -DartifactId=ojdbc14 -Dversion= -Dpackaging=jar -Dfile=path/to/file

2. If jar available in repo other than repo1.maven... :-

With respect to Sun related jars, Refer: Coping with sun-jars

No comments:

Post a Comment