maven---com.sun:tools:jar:1.5.0
来源:互联网 发布:打棒球的好处 知乎 编辑:程序博客网 时间:2024/04/28 09:24
关于Maven构建Appfues时出com.sun:tools:jar:1.5.0错的解决方法
在使用Maven构建Appfues时通常都会出现
- Missing:
- ----------
- 1) com.sun:tools:jar:1.5.0
- Try downloading the file manually from the project website.
出现以上原因是因为jdk没有配好。我们只需要修改一个pom.xml就ok了
<!--jdk-->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.6.0_05/lib/tools.jar</systemPath>
</dependency>
注意<systemPath>${java.home}/../lib/tools.jar</systemPath>我们通常是使用系统的环境变量取得java.home的路径的
Jquery通过Json取得数据处理 | 如何使用Jmeter
- 22:03
- 浏览 (828)
- 评论 (2)
- 分类: 其他
- 相关推荐
- maven---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 missing 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错误
- maven missing com.sun:tools:jar:1.6.0
- 在maven的pom.xml中出现Missing:com.sun:tools:jar:1.5.0错误
- eclipse的maven:出现Missing indirectly referenced artifact com.sun:tools:jar:1.5.0
- eclipse在maven出现Missing artifact com.sun:tools:jar:1.5.0:system之完美解决
- maven: Could not find artifact com.sun:tools:jar:1.5.0
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- Eclipse maven工程 Missing artifact com.sun:tools:jar:1.5.0:system 解决方法
- maven project pom.xml 报Missing artifact com.sun:tools:jar:1.5.0:system
- 关于Maven构建Appfues时出com.sun:tools:jar:1.5.0错的解决方法
- 升职,萝卜也要换好“坑”
- php验证码代码实例
- 空间性质的哲学内涵及作用量规律表述
- c# oracle 存储过程分页查询
- 菜鸟的定义就是一知半解
- maven---com.sun:tools:jar:1.5.0
- 登录时记录密码
- Navicat for MySQL与MySQL GUI Tools比较
- C# 路经问题
- 受力的物体内部到底发生了什么情况—解释惯性力学三定律
- 正则表达式中的逆向引用和子模式
- CoreJava --基本语法--[Java]
- 通过xmanager远程连接redhat linux as 5
- 删除字符串空格
评论
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.6.0_05/lib/tools.jar</systemPath>
</dependency>
How do I include tools.jar in my dependencies?
The following code includes tools.jar for JDKs on Windows, Linux and Solaris (it is already included in the runtime for Mac OS X and some free JDKs).
...
<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.4.2</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>