如何安装ojdbc6-12.1.0.1与je-5.0.58的mvn构建依赖jar包?
如何安装ojdbc6-12.1.0.1与je-5.0.58的mvn构建依赖jar包?
1. 安装ojdbc6-12.1.0.1的mvn构建依赖jar包
Failed to read artifact descriptor for com.oracle:ojdbc6:jar:12.1.0.1-atlassian-hosted: The following artifacts could not be resolved: com.oracle:ojdbc6:pom:12.1.0.1-atlassian-hosted (absent): Could not transfer artifact com.oracle:ojdbc6:pom:12.1.0.1-atlassian-hosted from/to SPRING-LIBS-snapshot (https://repo.spring.io/libs-milestone): status code: 401, reason phrase: (401)解决方案
# 链接1,下载ojdbc6-12.1.0.1-atlassian-hosted.jar
wget https://maven.artifacts.atlassian.com/com/oracle/ojdbc6/12.1.0.1-atlassian-hosted/ojdbc6-12.1.0.1-atlassian-hosted.jar# 链接2,链接1访问异常,可以基于下载jar包
wget https://github.com/hcc391/jar/blob/main/ojdbc6-12.1.0.1-atlassian-hosted.jar# 安装ojdbc6-12.1.0.1-atlassian-hosted.jar到mvn本地仓库
mvn install:install-file -Dfile=ojdbc6-12.1.0.1-atlassian-hosted.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=12.1.0.1-atlassian-hosted -Dpackaging=jar
2. 安装je-5.0.58的mvn构建依赖jar包
Failed to collect dependencies at com.sleepycat:je:jar:5.0.58: Failed to read artifact descriptor for com.sleepycat:je:jar:5.0.58: The following artifacts could not be resolved: com.sleepycat:je:pom:5.0.58 (absent): Could not transfer artifact com.sleepycat:je:pom:5.0.58 from/to SPRING-LIBS-snapshot (https://repo.spring.io/libs-milestone): status code: 401, reason phrase: (401) -> [Help 1]解决方案
wget https://github.com/hcc391/jar/blob/main/je-5.0.58.jarmvn install:install-file -Dfile=je-5.0.58.jar -DgroupId=com.sleepycat -DartifactId=je -Dversion=5.0.58 -Dpackaging=jar