Backend/Errors

[스프링/메이븐/오라클] Missing artifacts com.oracle:ojdbc.jar 에러

마로그래머 2021. 8. 7. 19:18
반응형

Missing artifacts com.oracle:ojdbc.jar

Maven에 Oracle을 연동시킬 때 나타나는 에러를 해결해보자!

증상

Spring 프로젝트에 Oracle을 연동하려고 Maven에 설정을 했는데

Missing artifacts com.oracle:ojdbc6:jar:11.2.0.3 이라고 떠버렸다.

원인

Maven 중앙저장소에서는 ojdbc를 직접 제공해주지 않는다고한다.

그래서 <dependencies>에 아무리 넣어도 불러와주질 않았다.

해결




<repository>

<repositories>
    <repository>
        <id>oracle</id>
        <url>https://repo.spring.io/plugins-release/</url>
    </repository>
</repositories>



<dependency>

<dependencies>
    <dependency>
        <groupId>com.oracle</groupId>
        <artifactId>ojdbc6</artifactId>
        <version>11.2.0.3</version>
    </dependency>
</dependencies>
반응형