로컬 maven 저장소에 oracle jdbc 드라이버 인스톨

아래의 명령으로 local maven repository에 오라클 jdbc 드라이버를 설치할 수있다.

C:>mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4 -Dpackaging=jar -Dfile=다운받은 ojdbc14.jar 파일의 절대경로

실행 예 : C드라이브 루트에 10.2.0.4 버젼의 ojdbc14.jar 파일이 있을 때의 예이다.

C:>mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4 -Dpackaging=jar -Dfile=C:\ojdbc14.jar

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'install'.

[INFO] org.apache.maven.plugins: checking for updates from central

[INFO] org.codehaus.mojo: checking for updates from central

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom


Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom


Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar


[INFO] ------------------------------------------------------------------------

[INFO] Building Maven Default Project

[INFO]    task-segment: [install:install-file] (aggregator-style)

[INFO] ------------------------------------------------------------------------

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom


Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom


Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.8/plexus-1.0.8.pom


Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar


[INFO] [install:install-file {execution: default-cli}]

[INFO] Installing C:\ojdbc14.jar to C:\Documents and Settings\Admini

strator\.m2\repository\com\oracle\ojdbc14\10.2.0.4\ojdbc14-10.2.0.4.jar

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 7 seconds

[INFO] Finished at: Sun Aug 08 18:23:41 KST 2010

[INFO] Final Memory: 3M/6M

[INFO] ------------------------------------------------------------------------

C:>



신고