When I use the command + shift + o command I get this popup:
The problem
Make sure that the target folder is excluded in the Project Structure | Modules:
target
Project Structure | Modules
It should have been excluded automatically since it is a maven project (I assume).