JFrog Artifactory 和 Oracle 存储库
JFrog Artifactory and Oracle repository
我已经开始使用 JFrog Artifactory 4.14,我的 maven 应用程序需要一个可以从 oracle 存储库下载的 ojdbc jar,如果我使用 maven 本地设置,我会从
http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010
现在,使用JFrog Artifactory,我已经根据
http://buttso.blogspot.lt/2015/02/fronting-oracle-maven-repository-with.html https://www.jfrog.com/blog/fronting-oracle-maven-repository-artifactory/
TEST 按钮显示连接成功
我已经用 JFrog Artifactory 为我生成的文件替换了 settings.xml 文件
<?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:jar:12.1.0.2,com.oracle.jdbc:ucp:jar:12.1.0.2:找不到工件com.oracle.jdbc远程仓库中的 :ojdbc7:jar:12.1.0.2
您需要在 JFrog 中定义一个虚拟存储库。这将是其他存储库的组合,这是您将在 settings.xml.
中指向的存储库
见https://www.jfrog.com/confluence/display/RTF/Virtual+Repositories
我怀疑您的 settings.xml.
中还需要一个代理元素
因为你已经创建了你新的远程存储库你必须将它添加到虚拟存储库
选择新建(或编辑现有的)
和 select 个存储库
应该是这样
我已经开始使用 JFrog Artifactory 4.14,我的 maven 应用程序需要一个可以从 oracle 存储库下载的 ojdbc jar,如果我使用 maven 本地设置,我会从 http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9010
现在,使用JFrog Artifactory,我已经根据 http://buttso.blogspot.lt/2015/02/fronting-oracle-maven-repository-with.html https://www.jfrog.com/blog/fronting-oracle-maven-repository-artifactory/
TEST 按钮显示连接成功
我已经用 JFrog Artifactory 为我生成的文件替换了 settings.xml 文件
<?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:jar:12.1.0.2,com.oracle.jdbc:ucp:jar:12.1.0.2:找不到工件com.oracle.jdbc远程仓库中的 :ojdbc7:jar:12.1.0.2
您需要在 JFrog 中定义一个虚拟存储库。这将是其他存储库的组合,这是您将在 settings.xml.
中指向的存储库见https://www.jfrog.com/confluence/display/RTF/Virtual+Repositories
我怀疑您的 settings.xml.
中还需要一个代理元素因为你已经创建了你新的远程存储库你必须将它添加到虚拟存储库
选择新建(或编辑现有的)
和 select 个存储库
应该是这样