The problem is pretty much the same as listed here: JDK tools.jar as maven dependency
But I have tried all of the solutions, none of them works for me. All of them says
ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.0.0.RC4:run (default-cli) on project gs-rest-service: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:1.0.0.RC4:run failed: Plugin org.springframework.boot:spring-boot-maven-plugin:1.0.0.RC4 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.6 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
Through my early googling, it seems in mac it is replaced by classes.jar. I tried to change java_home to "..../Contents/", error remains as ".../Contents/Home/../lib/tools.jar"
I am new to Maven and am following this tutorial to build a simple REST WS with Spring: http://spring.io/guides/gs/rest-service/