Skip to main content



      Home
Home » Newcomers » Newcomers » mvn install failing due to dependency com.sun:tools:jar:1.8.0(mvn clean install - failing Could not find artifact com.sun:tools:jar:1.8.0)
mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779774] Fri, 12 January 2018 07:20 Go to next message
Eclipse UserFriend
I followes instruction provided on https://www.eclipse.org/smarthome/documentation/development/ide.html to setup my IDE. All worked well except last step i.e.

command - mvn clean install

Getting following error -
[ERROR] Failed to execute goal org.openhab.tools:static-code-analysis:0.3.0:checkstyle (default) on project org.eclipse.smarthome.core: Execution default of goal org.openhab.tools:static-code-analysis:0.3.0:checkstyle failed: Plugin org.openhab.tools:static-code-analysis:0.3.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:\Program Files\Java\jre1.8.0_152/../lib/tools.jar -> [Help 1]

Appreciate any help to get this resolved.
Re: mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779818 is a reply to message #1779774] Sat, 13 January 2018 03:11 Go to previous messageGo to next message
Eclipse UserFriend
Their community page points at a https://www.eclipse.org/forums/index.php?t=thread&frm_id=271 as their discussion forum, so likely better to ask there.
Re: mvn install failing due to dependency com.sun:tools:jar:1.8.0 [message #1779823 is a reply to message #1779774] Sat, 13 January 2018 10:49 Go to previous message
Eclipse UserFriend
It looks like you are running Eclipse using a JRE. JREs don't include the tools.jar file. You have to install a full JDK in order to get the tools.jar file. You will also likely have to specify that Eclipse runs on the JDK not the JRE.
Previous Topic:NullPointerException when dragging tab to a new location with custom perspectives
Next Topic:How to run c++ in eclipse oxygen 2?
Goto Forum:
  


Current Time: Tue Jun 24 10:39:56 EDT 2025

Powered by FUDForum. Page generated in 0.06961 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top