error upgrading aspectj-maven-plugin v1.8

妖精的绣舞 提交于 2019-11-26 20:12:19

问题


Upgrading the maven plugin from 1.7 to 1.8 results in the following error message:

[ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${toolsjarSystemPath} @ pom.xml /ash-domain line 1


回答1:


I had the same problem and I've just added in eclipse.ini the path to the JDK8.
In my case:

-vm
C:\Program Files (x86)\Java\jdk1.8.0_60\bin\javaw.exe

(must be before -vmargs)




回答2:


I found a problem in AspectJ Maven plugin and fixed it. My pull request was finally merged and is contained in the new plugin version 1.9. Just upgrade your POM and enjoy.

P.S.: The real problem is in Eclipse, but it was easier to put a workaround into the Maven plugin than to get it fixed upstream.




回答3:


I solved the problem in eclipse by adding toolsjarSystemPath as a default vm argument

Windows-->Preferences-->Java-->InstalledJREs-->EditJRE Add default vm argument: -DtoolsjarSystemPath=%JAVA_HOME%\lib\tools.jar




回答4:


I’m ashamed to admit that in my case this error was caused by wrong JAVA_HOME path: I point it out to jre, not jdk folder



来源:https://stackoverflow.com/questions/32997222/error-upgrading-aspectj-maven-plugin-v1-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!