Java JFrog Artifactory和Oracle存储库

Java JFrog Artifactory和Oracle存储库,java,oracle,maven,artifactory,Java,Oracle,Maven,Artifactory,我已经开始使用JFrog Artifactory 4.14,我的maven应用程序需要一个ojdbc jar,可以从oracle存储库下载,如果我使用maven本地设置,我会从 现在,使用JFrog Artifactory,我已经根据 测试按钮表示连接成功 我已将settings.xml文件替换为生成的一个JFrog工件 <?xml version="1.0" encoding="UTF-8"?> <settings xsi:schemaLocation="http:/

我已经开始使用JFrog Artifactory 4.14,我的maven应用程序需要一个ojdbc jar,可以从oracle存储库下载,如果我使用maven本地设置,我会从

现在,使用JFrog Artifactory,我已经根据

测试按钮表示连接成功

我已将settings.xml文件替换为生成的一个JFrog工件

<?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>

${security.getCurrentUsername()}
${security.getEscapedEncryptedPassword()!“***在此处插入加密密码***”}
中心的
${security.getCurrentUsername()}
${security.getEscapedEncryptedPassword()!“***在此处插入加密密码***”}
快照
*
远程回购
http://docker.k***.l**:8081/人工/远程回购
远程回购
假的
中心的
libs发布
http://docker.k***.l**:8081/artifactory/libs发布
快照
libs快照
http://docker.k***.l**:8081/artifactory/libs快照
假的
中心的
插件发布
http://docker.k***.l**:8081/artifactory/plugins发行版
快照
插件快照
http://docker.k***.l**:8081/artifactory/plugins快照
人工制品
人工制品
我已经添加到我的POM中

<distributionManagement>
    <repository>
        <id>central</id>
        <name>e44b4c0db643-releases</name>
        <url>http://docker.k***.l**:8081/artifactory/ext-release-local</url>
    </repository>
</distributionManagement>

中心的
e44b4c0db643版本
http://docker.k***.l**:8081/artifactory/ext-release-local
但是当我尝试运行maven命令时

清洁安装

我明白了


无法解析以下工件:com.oracle.jdbc:ojdbc7:jar:12.1.0.2,com.oracle.jdbc:ucp:jar:12.1.0.2:无法在远程repos中找到工件com.oracle.jdbc:ojdbc7:jar:12.1.0.2。这将是其他存储库的组合,这是您将在settings.xml中指向的存储库

我猜想您还需要settings.xml中的代理元素


请参见

因为您已经创建了新的远程存储库,所以必须将其添加到虚拟存储库中

选择新建(或编辑现有)

并选择存储库


应该是这样的

你永远不会在公共存储库中找到这些工件。我不明白你的评论???这些工件不在公共存储库中,它们在oracles Repsitory中。我想这是个问题,我刚刚将oracle存储库添加到虚拟存储库中,现在似乎一切都正常。我在settings.xml中没有任何内容,也没有任何代理内容。@ArvisM请您详细说明如何解决此问题。我尝试了与您所述相同的步骤,包括将maven oracle远程存储库添加到发行版和快照虚拟存储库中,但我仍然无法解析oracle库。我也不能像使用central那样使用Artifactory浏览maven oracle repo。我已经三次检查了远程回购设置,使用了来自的建议设置,但仍然不起作用。有什么建议吗?