Home > Back-end >  After the compile target exists in a certain, projects cannot refer to?
After the compile target exists in a certain, projects cannot refer to?

Time:05-20

Development tools: idea
Use of language: the Java
The project structure: maven
Problem description: the project can be normal compilation, the target package, and there is some kind of, also can be induced when the import in the project, but after reference is red, the class does not exist;
Try to solve: 1. The file in item Invalidate Caches/Restart, fruit; Corresponding maven 2. Remove the local lastUpDate and unknown in the warehouse at the end of the file, nothing; 3. Remove the local maven repository. M2 folder, let its reload, fruit;
Also ask god to help me, really didn't recruit,

CodePudding user response:

If the jar package are look at the size of the corresponding jar package is not right, if is a class, the class rename look to change back to try again

CodePudding user response:

The clean try

CodePudding user response:

refer to the second floor qq_45301005 response:
clean try
clean not in the package, have no effect

CodePudding user response:

The idea of the index File - & gt; Invalidate Caches/Restart
  • Related