IT/Spring

[Spring] maven oracle 연동시 오류 해결

DongChul 2016. 9. 3. 22:53

ojdbc14 missing 이란 에러를 만날시 해결하는 방법


1.


<repository>

        <id>oracle</id>

        <name>ORACLE JDBC Repository</name>

        <url>http://mesir.googlecode.com/svn/trunk/mavenrepo</url>

</repository>

 <dependency>

   <groupId>com.oracle</groupId>

   <artifactId>ojdbc14</artifactId>

   <version>10.2.0.4.0</version>

</dependency>


이라는 코드 추가


2.

ojdbc14-10.2.0.4.0.jar 파일을 직접 연결해주는방법


/src/main/webapp/WEB-INF/lib/폴더에 파일을 넣고

 <dependency>

    <groupId>ojdbc</groupId>

   <artifactId>ojdbc</artifactId>

   <version>14</version>

   <scope>system</scope>

   <systemPath> ${basedir}/src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.4.0.jar</systemPath>

</dependency>

코드 추가