Developers are hitting a problem due to tools.jar when using Checkstyle
2019独角兽企业重金招聘Python工程师标准>>>
See https://lists.opendaylight.org/pipermail/odlparent-dev/2016-May/000321.html .. in a project using Checkstyle, we're seeing developers on Macs hitting a problem due to tools.jar:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (check-license) on project root: Execution check-license of goal
org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.16 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.7.0 at specified path /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/../lib/tools.jar -> [Help 1]
To me this seems a fairly major problem, do you agree? Note that appears simply when using Checkstyle as a normal dependency (of maven-checkstyle-plugin, but that's not the main point), and NOT just when developing on/contributing to Checkstyle's own code base (which would be minor, if none of you use Macs; I don't either!).
I'll just have a look at the checkstyle pom.xml and see if something could be done about this.
@romani would you potentially consider releasing a 6.16.x maintenance release with a fix, if I contribute one for master? The FLOSS project I'm involved in cannot easily upgrade to 6.19-SNAPSHOT just yet (we're held back because of eCS); and perhaps this fix would be useful for other users as well?
Could not get configured mojo for org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check {execution: check-license}
Plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.17 or one of its dependencies could not be resolved:
Could not find artifact com.sun:tools:jar:1.7.0 at specified path C:\Program Files\Java\jre1.8.0_25/../lib/tools.jar
解决方案:在Eclipse中将JRE替换成JDK即可.
转载于:https://my.oschina.net/leblancs/blog/798775
Developers are hitting a problem due to tools.jar when using Checkstyle相关推荐
- linux unable to locate tools.jar,Unable to locate tools.jar
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am building a project in Java. I have this er ...
- 8.9 HITTING SET problem
题目: In the HITTING SET problem, we are given a family of sets S1,S2,...,Sn{S_1, S_2, . . . , S_n} an ...
- tools.jar的位置
1 个警告 /SysRoleMapper.java:1: 警告: Can't initialize javac processor due to (most likely) a class loade ...
- 为什么jdk的CLASSPATH环境变量需要设置rt.jar 和 tools.jar
How Classes are Found 中有说明:(java启动类文件在 rt.jar中, 而 工具类文件在 tools.jar 中) How the Java Launcher Finds C ...
- linux下tools.jar,Linux android studio :'tools.jar' seems to be not in Android Studio classpath.
问题: 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK r ...
- 解决Ubuntu或其他发行版本安装IDEA提示'tools.jar' is not in IDEA classpath
Now those of you who work with Intellij Idea on Linux know what a pain it can be to get it installed ...
- Missing artifact com.sun:tools:jar:1.5.0
1. eclipse 突然爆出这种错误,来看看解决方案 原因:这是由于eclipse会默认使用自己的JAVA_HOME.因此才会包Missing artifact com.sun:tools:jar: ...
- Missing artifact jdk.tools:jdk.tools:jar:1.6
Maven提供了一种只要在pom.xml中添加maven仓库的依赖,就可以方便的执行自动下载的方便项目管理方法.今天在用Eclipse打开Maven工程时报pom.xml文件丢失tools.jar文件 ...
- 解决Missing artifact com.sun:tools:jar:1.5.0方法
今天在pom文件里加了,然后项目就报Missing artifact com.sun:tools:jar:1.5.0错误了. 解决方法如下,在pom文件里加入 然后在加入tools依赖: 完美解决! ...
最新文章
- 从首页问答标题到问答详情页
- linux命令下怎么保存python_Linux 环境下安装 Python3 的操作方法
- getservbyname和getservbyport
- java的属性只能在类里面 方法外面定义
- css未生效,css不生效是什么原因
- Atitit数据库层次架构表与知识点 attilax 总结
- 利用腾讯云独立IP使用windows用CCProxy搭建Socks5多IP代理服务器图文教程实现单窗口单IP
- Java基本语法-Scanner类的应用_计算两个整数和
- 阿里某程序员吐槽:绩效375同事离职被批准,绩效325同事离职却被卡
- 村路安防工程建设展开 未来投入将进一步加大
- html标记是否都包含开始和结束,所有HTML标记符都包括开始标记符和结束标记符()...
- Facebook、Twitter网页分享
- uni-app 图片懒加载
- java script的小基础
- 换手机号都有哪些绑定信息需要更换?
- 会PHP如何拥有一个自己的QQ机器人?(三)
- 经过2022年这大环境,我学会了如何管理我的领导
- 【工具】阿里云网盘内测申请,更新网盘(云存储)功能需求,免费网盘需求,手机数据备份...
- mysql数据库建站教程视频,Mysql数据库基础入门(附视频教程)
- Ubuntu 13.10 安装龙井QQ2013