Could not find artifact com.sun:tools:jar:1.4.2 问题解决 .

【maven install】,则依然报错,但报的是另外一个错误:
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project lus-infrastructure: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.4.2 at specified path

解决方法:把【Windows】-【Preferences】-【Java】-【Install JREs】中的JRE给remove掉,然后Add JDK,再次【maven install】就OK了

你可能感兴趣的:(maven,maven,Install,install错误)