'Adding Maven framework causes problems in project

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.

#1 enter image description here

#2 enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source