Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
来源:互联网 发布:iphone清除数据 编辑:程序博客网 时间:2024/04/29 14:48
在使用m2eclipse插件时,在pom.xml中添加struts2-core.jar包后,需要依赖java运行时的tools.jar进行依赖。但是,此时eclipse无法读取tools包,出现如下错误:
Missing artifact com.sun:tools:jar 1.5.0
解决办法一:
手动配置pom.xml,添加一个dependency如下:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<scope>system</scope>
<systemPath>${JAVA_HOME}/../lib/tools.jar</systemPath>
</dependency>
即可!
如果办法不能解决,试用第二种方法。
解决办法二:
首先,查看错误列表windows->Show View->Problems,在有以上问题的同时,还会出现该错误。
The container 'Maven Dependencies' references non existing library 'C:\Documents and Settings\DELL\.m2\repository\com\sun\tools\1.5.0\tools-1.5.0.jar'
大致说:找不到该tools-1.5.0.jar。
所以将C:\Program Files\Java\jdk1.6.0_10\lib\目录下的tools.jar拷贝到C:\Documents and Settings\DELL\.m2\repository\com\sun\tools\1.5.0\目录下,并将tools.jar改名为tools-1.5.0.jar,并在pom.xml中作如下配置:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
</dependency>
即可!
更多:http://www.javaxxz.com/thread-72464-1-1.html
- Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
- Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
- Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
- Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
- Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- Missing artifact com.sun:tools:jar:1.5.0:system 补充
- Missing artifact com.sun:tools:jar:1.5.0:system
- Missing artifact com.sun:tools:jar:1.5.0:system解决办法
- Missing artifact com.sun:tools:jar:1.5.0
- Missing artifact com.sun:tools:jar:1.5.0 问题解决
- 【Maven】Missing artifact com.sun:tools:jar:1.5.0
- Missing artifact com.sun:tools:jar:1.5.0:system 问题
- pom.xml Missing artifact com.sun:tools:jar:1.5.0
- maven Missing artifact com.sun:tools:jar:1.5.0
- Missing artifact com.sun:tools:jar 1.5.0
- Missing artifact com.sun:tools:jar:1.5.0解决办法
- Missing artifact com.sun:tools:jar:1.5.0
- DNN 7学习路径图
- 不用concat解决Javascript连接多个数组
- 使用字符串核函数进行文本分类
- Art of Multiprocessor Programming 答案 ch5
- C#中声明类/属性/方法已过时(Obsolete)
- Missing artifact com.sun:tools:jar 1.5.0 终极解决方法
- Mark Andreessen:我相信比特币,还会继续投资
- 第三周作业
- 黑马程序员_JAVA语言开发常遇陷阱集笔记
- android pdf解析
- Rotate List -- LeetCode
- 常用内部排序分析(全面分析)
- 基于RFC6265 (HTTP状态管理协议)实现简单的登录系统
- Delphi-x2d 网络游戏引擎