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了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章