maven install can not find find symbol

As shown below, sent by others to compile a maven project, install can not find the symbol, look for the next, there is clearly a project, probably next looked, could not find the basic class of his own projects

 

Think hard, and then found the project directory is the case, the project, there are two code directory:

 

 The maven compiler is such that there is only one directory, compiled when he ignored a second, so I can not find the symbol

 

After know the reason, we have to solve this problem, the inquiry has found a plug-in build-helper-maven-plugin. Found that the plug-in can specify multiple source code directory, multiple resource directories, this plug-in can fulfill my needs. Usage is as follows:

https://blog.csdn.net/qq_36838191/article/details/82964522

Guess you like

Origin www.cnblogs.com/XiaoMaBlog/p/12127419.html