[英]Am trying to maven install the apache-storm repo i cloned. And am getting the following error. How to resolve this?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (validate) on project maven-shade-clojure-transformer: Execution validate of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.8.0 at specified path C:\\Java\\jre1.8.0_201/../lib/tools.jar -> [Help 1] [错误]无法在项目maven-shade-clojure-transformer上执行目标org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check(验证):目标org.apache.maven.plugins的执行验证:maven-checkstyle-plugin:3.0.0:check失败:插件org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0或其依赖项之一无法解析:找不到工件com.sun:在指定路径C:\\ Java \\ jre1.8.0_201 /../ lib / tools.jar中的tools:jar:1.8.0-> [帮助1]
Here is the link to the pom.xml https://github.com/apache/storm/blob/master/pom.xml 这是pom.xml的链接https://github.com/apache/storm/blob/master/pom.xml
You most likely have the JAVA_HOME environment variable set to point to a JRE instead of a JDK. 您很可能已将JAVA_HOME环境变量设置为指向JRE而不是JDK。 Install a JDK instead, and update JAVA_HOME to point to it (eg "C:\\Java\\jdk1.8.0_201" instead of "C:\\Java\\jre1.8.0_201")
而是安装JDK,并更新JAVA_HOME使其指向它(例如,“ C:\\ Java \\ jdk1.8.0_201”而不是“ C:\\ Java \\ jre1.8.0_201”)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.