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了

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