Getting quot;The POM for lt;namegt; is invalid, transitive dependencies (if any) will not be availablequot; only in Eclipse(获取 lt;namegt; 的 POM无效,传递依赖(如果有)将不可用仅在 Eclipse 中)
问题描述
我最近升级到 JAXB 2.2.11,并在我的 Eclipse 控制台中注意到以下消息:
I have recently upgraded to JAXB 2.2.11 and noticed in my Eclipse console the following message:
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:Projectsworkspacesmj2pmaven-jaxb2-plugin-project estsJAXB-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
似乎也是正确的.我确定我在控制台和 Eclipse (m2e
) 中使用相同的 Maven 安装.存储库似乎也是正确的.
What puzzles me is that I am not getting this warning in console. The pom
s in question also seems to be correct. I am sure I am using the same Maven installation in the console and in Eclipse (m2e
). The repository also seems to be correct.
有谁知道,这可能是什么原因造成的?
Does anyone happen to know, what could be causing this?
请注意,这不是重复的(几乎同名)问题:
Please note that this is not a duplicate for (almost identically-named) question:
- 该<name> 的 POM无效,传递依赖(如果有)将不可用
这个问题是关于在控制台和 Eclipse 中执行 Maven 之间的区别.
This question is about the differences between Maven execution in the console and from the Eclipse.
推荐答案
经过进一步调查,我似乎遇到了和这个问题一样的问题:
After further investigation it appears that I have the same problem as in this question:
Maven 没有正确选择 JAVA_HOME
感谢@rustyx的解决方案(请支持该答案):
The solution thanks to @rustyx (please upvote that answer):
要解决这个问题,您需要使用 JDK 中的 JRE 启动 Eclipse,方法是在 eclipse.ini
(在 -vmargs
之前!)添加类似这样的内容:
To fix the issue you need to start Eclipse using the JRE from the JDK by adding something like this to
eclipse.ini
(before-vmargs
!):
-vm
C:<your_path_to_jdk170>jreinjavaw.exe
这篇关于获取 <name> 的 POM无效,传递依赖(如果有)将不可用"仅在 Eclipse 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:获取 <name> 的 POM无效,传递依赖(如果有)将不可用"仅在 Eclipse 中


- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01