Encountered a problem,CodeSome non-. java files will be used in the file. When MVN clean isntall is executed, an error will be reported and the file cannot be found.
Performance: As long as I modify the resource file, clean it, modify it, and then run it again .....
Later, my colleague said that the resource file was not included during compilation.
After finding the configuration item online, add the configuration item to build in POM. xml.
Code
< Build >
< Resources >
< Resource >
< Directory > Src/test/Java </ Directory >
< Excludes >
< Exclude > **/*. Java </ Exclude >
< Exclude > **/. SVN /* </ Exclude >
</ Excludes >
</ Resource >
< Resource >
< Directory > Src/test/Resources </ Directory >
< Excludes >
< Exclude > **/*. Java </ Exclude >
< Exclude > **/. SVN /* </ Exclude >
</ Excludes >
</ Resource >
</ Resources >
</ Build >
All the files to be used are packed in. It seems OK. Some configurations may be incorrect, but some problems can be solved temporarily.