Maven error after importing last code from github

I get the following after I pulled the latest code from the githud repository.

The problem occurs when creating an effective model for org.codehaus.mo

Full error description below.

1 there was a problem in constructing an effective model for

org.codehaus.mojo:aspectj-maven-plugin:1.8 [ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${toolsjarSystemPath} @ 

I am using java1.8 and sts 3.6.4

+5
source share
1 answer

Most likely, the JAVA_HOME environment variable points to the JDK instead of the JRE. Change the environment variable and restart Eclipse.

aspectj-maven-plugin contains the following:

 <profile> <id>standardToolsJar-profile</id> <activation> <activeByDefault>true</activeByDefault> <file> <exists>${java.home}/../lib/tools.jar</exists> </file> </activation> <properties> <toolsjarSystemPath>${java.home}/../lib/tools.jar</toolsjarSystemPath> </properties> </profile> <profile> <id>appleJdkToolsJar-profile</id> <activation> <activeByDefault>false</activeByDefault> <file> <exists>${java.home}/../Classes/classes.jar</exists> </file> </activation> <properties> <toolsjarSystemPath>${java.home}/../Classes/classes.jar</toolsjarSystemPath> </properties> </profile> <profile> <id>java8</id> <activation> <jdk>1.8</jdk> </activation> <properties> <additionalparam>-Xdoclint:none</additionalparam> </properties> </profile> 

I think the reason for this is not because activeByDefault does not start, because the activation of the java8 profile is activated. file-> exists condition will not be called due to incorrect $ {java.home}. $ {toolsjarSystemPath} will not be installed, and trying to use it will throw an exception.

0
source

Source: https://habr.com/ru/post/1234006/


All Articles