java – Pom. XML project build error

I imported the Maven project into my eclipse, but I did it in POM The following errors were encountered in XML –

I have something new about Maven. Any help will be appreciated

Solution

You have specified a path to the JDK using < SystemPath > tools:jdk. Tools: dependency of jar$ {JAVA_HOME} /lib/tools. jar. $ {java_home} is not a valid Maven property Read environment variable Java_ The syntax of home is ${env. Java_home} However, the same information is called Java The system property of home is public, so ${Java. Home} is the best solution

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>