Failure to find com.oracle.state-management:state-management



我不记得我做了什么导致这个问题。当我尝试运行mvn clean install时,我得到以下输出:

mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building search Maven Webapp 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.slf4j:slf4j-api:jar:12.1.2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.895 s
[INFO] Finished at: 2014-05-29T21:55:34+02:00
[INFO] Final Memory: 6M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project search: Could not resolve dependencies for project com.ws:search:war:1.0: Failed to collect dependencies at com.oracle.weblogic:weblogic-server-pom:pom:12.1.2-0-0 -> com.oracle.weblogic:com.oracle.state-management.e
xecutor-internal-api_12.1.2:jar:12.1.2: Failed to read artifact descriptor for com.oracle.weblogic:com.oracle.state-management.executor-internal-api_12.1.2:jar:12.1.2: Failure to find com.oracle.state-management:state-management-parent:pom:1.0.0-SNAPSHOT in http://10.68
.20.32:8081/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

尝试查找com.oracle.state-management.executor-internal-api_12.1.2:jar:12.1.2(注意版本:12.1.2)失败,因为它来自依赖项com.oracle.state-management.executor-internal-api_12.1.2(版本:12.1.2),而该依赖项的pom有以下部分:

<parent>
    <artifactId>state-management-parent</artifactId>
    <groupId>com.oracle.state-management</groupId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../../parent/pom.xml</relativePath>
</parent>

令我惊讶的是,这个依赖项(com.oracle.state-management.executor-internal-api_12.1.2)还有另一个版本,它是12.1.2-0-0,我相信这是正确的版本,而不是12.1.2

我认为支持我的假设的是输出提到它未能找到sfl4j依赖于版本12.1.2 !!

[WARNING] The POM for org.slf4j:slf4j-api:jar:12.1.2 is missing, no dependency information available

我这样引用weblogic的依赖

<dependency>
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>weblogic-server-pom</artifactId>
    <version>12.1.2-0-0</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>

由于一些不可思议的原因,weblogic的依赖

<dependency>
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>weblogic-server-pom</artifactId>
    <version>12.1.2-0-0</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>

的依赖项版本如下

<dependency>
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>weblogic</artifactId>
    <version>[12.1.2,12.1.3)</version>
</dependency>

为了解决这个问题,我用12.1.2-0-0替换了所有[12.1.2,12.1.3)的出现,现在我可以再次install我的项目。

如果有人告诉我为什么POM以这种方式生成,我将非常感激。

最新更新