After adding Maven framework to my project everything turns red. A new package named “main” appears between packages “src” and the first package that I created “java.hr.production” (by hierarchy) as can be seen in the 1st picture. It also changes the import address. The 2nd picture shows maven code. Appreciate it if you could help. Some words are not in english so ignore those.
Advertisement
Answer
Try to fix this in IDEA project settings:
Navigate
File-> Project Structure-> Project Settings-> Modules
and edit this manually
Source Folders
srcmainjava
Test Source Folders
srctestjava
Resources
srcmainresources
Test
srctestresources
see example (it’s groovy, but same for java maven)