IntelliJ idea cannot resolve symbol XXX solution Rollup _intellij

Source: Internet
Author: User

The MAVEN project encounters this type of problem for two reasons, the dependency of the class is not loaded, the compiler itself is set up, and the problem is cached.

Solve the first Category: 1, check the project Pom file, whether the necessary dependence are written clearly;

2, whether to use their own private library,<repositories>
<repository>
<id>release</id>
<name>private repository</name>
<url>http://xxxxxx</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>release</id>
<name>PrivateRepository</name>
<url>http://xxxxxxx</url>
</pluginRepository>
</pluginRepositories>

The pom file has this is the use of its own private library, the library's username password is not written clearly, generally in the MAVEN program directory settings.xml file set, under the <servers> tab settings, similar to this:

<servers>
<server>
<id>nexus</id>
<username>admin</username>
<password>aaaaaaaaaa</password>
</server>

<servers>

3, rely on adding correct, check the local class has not downloaded down, is generally looking for "C:\Users\Administrator\.m2\repository" this path has no corresponding jar package, if not, in the compiler open "Maven Projects "label, first clean, in the execution of install, this is the same as on the command line execution is the same effect.


If you do have this package, it should be the second type of problem.


Solve the second category:

1, File-project Structure-project SDK, to see if the SDK is selected, re-select a local installation of their own JDK.

2, the compiler in the MAVEN has not been set to succeed, File-settings-Search Maven,maven home directory, set to install the MAVEN path



3, if the error is not found, try the right maven Projects-report, refresh the style of the button, clear the compiler's cache is good

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.