is invalid, transitive dependencies (if any) will not be available"-6ren"> is invalid, transitive dependencies (if any) will not be available"-我最近升级到 JAXB 2.2.11 并在我的 Eclipse 控制台中注意到以下消息: 10/15/14, 11:42:46 PM GMT+2: [INFO] Creating new launch-6ren">
gpt4 book ai didi

eclipse - 仅在 Eclipse 中获取 "The POM for is invalid, transitive dependencies (if any) will not be available"

转载 作者:行者123 更新时间:2023-12-04 10:17:49 28 4
gpt4 key购买 nike

我最近升级到 JAXB 2.2.11 并在我的 Eclipse 控制台中注意到以下消息:

10/15/14, 11:42:46 PM GMT+2: [INFO] Creating new launch configuration
10/15/14, 11:42:58 PM GMT+2: [INFO] C:\Projects\workspaces\mj2p\maven-jaxb2-plugin-project\tests\JAXB-1044
10/15/14, 11:42:58 PM GMT+2: [INFO] mvn -B -X -e clean install
10/16/14, 12:09:07 AM GMT+2: [WARN] The POM for com.sun.xml.bind:jaxb-impl:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.sun.xml.bind:jaxb-impl:2.2.11
[ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @

10/16/14, 12:09:07 AM GMT+2: [WARN] The POM for com.sun.xml.bind:jaxb-xjc:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.sun.xml.bind:jaxb-xjc:2.2.11
[ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @

10/16/14, 12:09:07 AM GMT+2: [WARN] The POM for com.sun.xml.bind:jaxb-core:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.sun.xml.bind:jaxb-core:2.2.11
[ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @

让我感到困惑的是,我没有在控制台中收到此警告。 pom有问题的 s 似乎也是正确的。我确定我在控制台和 Eclipse ( m2e ) 中使用相同的 Maven 安装。存储库似乎也是正确的。

有没有人碰巧知道,这可能是什么原因造成的?

Please note that this is not a duplicate for (almost identically-named) question:

This question is about the differences between Maven execution in the console and from the Eclipse.

最佳答案

pomcom.sun.xml.bind.jaxb-implcom.sun.xml.bind:jaxb-parent有它的 parent 。
jaxb-parent pom有以下部分:

<profile>
<id>default-tools.jar</id>
<activation>
<file>
<exists>${java.home}/../lib/tools.jar</exists>
</file>
</activation>
<properties>
<tools.jar>${java.home}/../lib/tools.jar</tools.jar>
</properties>
</profile>
<profile>
<id>default-tools.jar-mac</id>
<activation>
<file>
<exists>${java.home}/../Classes/classes.jar</exists>
</file>
</activation>
<properties>
<tools.jar>${java.home}/../Classes/classes.jar</tools.jar>
</properties>
</profile>

在您的 Eclipse 中,由于 ${tools.jar},似乎没有一个配置文件被激活。没有值(value)。

一种可能是 JAVA_HOME值设置不正确。

关于eclipse - 仅在 Eclipse 中获取 "The POM for <name> is invalid, transitive dependencies (if any) will not be available",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26393332/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com