关于MyEclipse集成Maven,在Maven Dependencies 出现tools.jar miss错误解决办法
来源:互联网 发布:java list<> 编辑:程序博客网 时间:2024/04/27 19:03
在MyEclipse集成Maven项目时,在Maven Dependencies 会出现 tools.jar miss 的错误,显示在Maven的repository中没有这个tools.jar,Maven默认会到repository中找这个tools.jar ,但事实上tools.jar是在jdk中,所以在pom.xml中加入下面内容就可以了:
<profiles> <profile> <id>default-tools.jar</id> <activation> <property> <name>java.vendor</name> <value>Sun Microsystems Inc.</value> </property> </activation> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.7</version> <scope>system</scope> <systemPath>C:\Program Files\Java\jdk1.7.0_25\lib\tools.jar</systemPath> </dependency> </dependencies> </profile> </profiles>
<version>内写入是你jdk的版本。
如果还没好,clean一下就可以了。
maven官方解答:http://maven.apache.org/general.html#tools-jar-dependency
0 0
- 关于MyEclipse集成Maven,在Maven Dependencies 出现tools.jar miss错误解决办法
- Maven 构建时出现miss Tools.jar的比较好的解决方案
- maven项目在myeclipse中不出现Maven Dependencies 和maven标识的解决方法
- maven项目在myeclipse中不出现Maven Dependencies 和maven标识的解决方法
- 在maven的pom.xml中出现Missing:com.sun:tools:jar:1.5.0错误
- Maven Dependencies 的.jar路径错误
- eclipse myeclipse 导入maven项目 缺少 Maven Dependencies 解决办法
- myeclipse 创建maven项目不生成maven dependencies 的解决办法
- maven miss jar包解决方法
- 在MyEclipse中集成maven
- maven本地jar包在idea中dependencies总是有红线解决办法
- myeclipse中Maven Dependencies 中央库jar包引入
- 关于在使用maven构建项目候,jar包错误的解决办法
- Maven Missing artifact jdk.tools:jdk.tools:jar:1.7 解决办法
- Maven Dependencies missing jar 解决
- eclipse搭建maven项目 pom.xml出现红叉,提示Missing artifact jdk.tools:jdk.tools:jar:1.7,解决办法如下:
- Maven 引入 tools.jar
- eclipse在maven出现Missing artifact com.sun:tools:jar:1.5.0:system之完美解决
- hdu 5172 GTY's gay friends Hash随机算法
- 自定义ListView盘点-PullToZoomInListView(29)
- js中的逻辑或(||)操作
- iOS The file “XXX” couldn’t be opened because you don’t have permission to view it.
- Android基于XMPP Smack openfire 开发的聊天室
- 关于MyEclipse集成Maven,在Maven Dependencies 出现tools.jar miss错误解决办法
- [HdOJ]1800 Flying to the Mars
- (513B1)codeforce
- 百度Cafe原理--Android自动化测试学习历程
- 本命年展望
- Android消除Toast延迟显示
- PHP安全方面经常用到的
- Storage框架整理
- 欢迎使用CSDN-markdown编辑器