在maven pom.xml中添加Oracle远程Intradoc客户端依赖项

问题描述 投票:1回答:2

我无法使用maven下载Oracle RIDC客户端依赖项。我在pom.xml中添加了以下代码

<dependency>
<groupId>com.oracle.ucm</groupId>
<artifactId>ridc</artifactId>
<version>11.1.1</version>
</dependency>

我的问题是我需要添加任何插件,否则无法使用maven下载ridc依赖项

maven oracle-ucm
2个回答
2
投票

从我的Maven repo

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
          xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-jhult-maven</id>
                    <name>bintray</name>
                    <url>https://dl.bintray.com/jhult/maven</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-jhult-maven</id>
                    <name>bintray-plugins</name>
                    <url>https://dl.bintray.com/jhult/maven</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>

1
投票

Oracle依赖项通常在公共maven仓库中不可用。要做到这一点,你可以做一些事情。

  • 在您的仓库中本地安装该项目。使用这个mvn install:install-file -Dfile=<path> -DgroupId=<group> -DartifactId=<id> -Dversion=<version> -Dpackaging=jar
  • 如果你有像nexus,artifactory这样的本地仓库,你可以在那里安装它。
  • 或者您可以将该依赖项标记为已提供,并确保您的运行时已将其置于适当的位置。
© www.soinside.com 2019 - 2024. All rights reserved.