【Maven】Missing artifact com.sun:tools:jar:1.5.0
来源:互联网 发布:新网互联域名证书下载 编辑:程序博客网 时间:2024/06/09 22:53
Eclipse maven has following error:
Missing artifact com.sun:tools:jar:1.5.0
Solution:
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <java.home>D:\Soft\Java\jdk1.6.0_29</java.home>
- </properties>
- <profiles>
- <profile>
- <id>default-tools.jar</id>
- <activation>
- <property>
- <name>java.vendor</name>
- <values>Sun.Microsystems Inc.</values>
- </property>
- </activation>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- <version>1.5.0</version>
- <scope>system</scope>
- <systemPath>${java.home}/lib/tools.jar</systemPath>
- </dependency>
- </dependencies>
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.home>D:\Soft\Java\jdk1.6.0_29</java.home> </properties> <profiles> <profile><id>default-tools.jar</id> <activation> <property> <name>java.vendor</name> <values>Sun.Microsystems Inc.</values> </property></activation> </profile> </profiles> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0</version> <scope>system</scope> <systemPath>${java.home}/lib/tools.jar</systemPath> </dependency> </dependencies>
PS: here, <profiles> and <dependencies> must be sepreated, or it cant solve the problem.
Missing artifact com.sun:tools:jar:1.5.0
Solution:
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <java.home>D:\Soft\Java\jdk1.6.0_29</java.home>
- </properties>
- <profiles>
- <profile>
- <id>default-tools.jar</id>
- <activation>
- <property>
- <name>java.vendor</name>
- <values>Sun.Microsystems Inc.</values>
- </property>
- </activation>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- <version>1.5.0</version>
- <scope>system</scope>
- <systemPath>${java.home}/lib/tools.jar</systemPath>
- </dependency>
- </dependencies>
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.home>D:\Soft\Java\jdk1.6.0_29</java.home> </properties> <profiles> <profile><id>default-tools.jar</id> <activation> <property> <name>java.vendor</name> <values>Sun.Microsystems Inc.</values> </property></activation> </profile> </profiles> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0</version> <scope>system</scope> <systemPath>${java.home}/lib/tools.jar</systemPath> </dependency> </dependencies>
PS: here, <profiles> and <dependencies> must be sepreated, or it cant solve the problem.
- 【Maven】Missing artifact com.sun:tools:jar:1.5.0
- maven Missing artifact com.sun:tools:jar:1.5.0
- maven Missing artifact com.sun:tools:jar:1.5.0
- 为Maven指定tools.jar ,解决Missing artifact com.sun:tools:jar:1.5.0错误
- 为Maven指定tools.jar ,解决Missing artifact com.sun:tools:jar:1.5.0错误
- 为Maven指定tools.jar ,解决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
- 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 问题
- pom.xml 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 终极解决方法
- Missing artifact com.sun:tools:jar 1.5.0
- Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- 聊聊并发(四)深入分析ConcurrentHashMap
- javaIO学习之File
- 高质量C++编程指南学习笔记第10章---thanks to林锐
- java设计模式——组合模式
- java并发编程
- 【Maven】Missing artifact com.sun:tools:jar:1.5.0
- linker command failed with exit code 1 解决
- 免安装版tomcat 开机自启动设置
- iOS内存管理编程指南
- 不识青天高,人亦如伤
- Java根据文件头获取文件类型
- 命令备忘
- java io基础知识
- Apache commons简介