티스토리 뷰

반응형

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>
반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함