我已經開始使用JFrog Artifactory的4.14,我的Maven的應用程序需要ojdbc罐子可以從Oracle存儲庫,而如果我用maven本地設置,我會從 http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010JFrog Artifactory的和Oracle庫
設置好的下載現在,使用JFrog Artifactory的,我已經根據 http://buttso.blogspot.lt/2015/02/fronting-oracle-maven-repository-with.htmlhttps://www.jfrog.com/blog/fronting-oracle-maven-repository-artifactory/
設置好的遠程回購測試按鈕,說連接成功
我已經更換了settings.xml文件與生成給我一個JFrog Artifactory的
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>central</id>
</server>
<server>
<username>${security.getCurrentUsername()}</username>
<password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"}</password>
<id>snapshots</id>
</server>
</servers>
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>remote-repos</name>
<url>http://docker.k***.l**:8081/artifactory/remote-repos</url>
<id>remote-repos</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://docker.k***.l**:8081/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://docker.k***.l**:8081/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://docker.k***.l**:8081/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://docker.k***.l**:8081/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
我已經添加到我的POM
<distributionManagement>
<repository>
<id>central</id>
<name>e44b4c0db643-releases</name>
<url>http://docker.k***.l**:8081/artifactory/ext-release-local</url>
</repository>
</distributionManagement>
但當我嘗試運行maven命令時
clean install
我得到
以下工件無法解析:com.oracle.jdbc:ojdbc7:罐子:12.1.0.2,com.oracle.jdbc:UCP中:jar:12.1.0.2:無法找到工件com.oracle.jdbc:ojdbc7:jar:12.1.0.2 in remote-repos
你永遠也找不到文物茨艾倫公共庫。 – khmarbaise
我不明白你的意見???這些工件不在公共存儲庫中,它們處於神諭故事中 –