找不到com.oracle.state-management:state-management-parent:pom:1.0.0-SNAPSHOT

时间:2014-05-29 20:38:26

标签: oracle maven weblogic

我不记得我做了什么导致这个问题。当我尝试运行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具有以下部分:< / p>

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

我该如何解决?

1 个答案:

答案 0 :(得分:1)

出于某种神秘的原因,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,12.1.3)个匹配项替换为12.1.2-0-0,现在我可以再次install我的项目。

如果有人告诉我为什么 POM 以这种方式生成,我真的很感激?!