If you have any subprojects within the main project, one of the reasons this can happen is because one or more subprojects have a “ Deployment Goal ” above the main project.
For example, if your main project has an 8.0 deployment goal, set deployment goals for all subprojects prior to 8.0. I think this will fix your problem. Let me know if this happens. Greetings.
source
share