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: http://repo1.maven.org/maven2. 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 -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.1.0.2.0 -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