Issue
Our team has a Netbeans 11.0 project that (at the root level) contains both a pom.xml file and a build.gradle file. When opening the project within Netbeans it assumes it is a Gradle project and treats it as such. However the default should be to open as a Maven project, allowing the pom.xml to take precedence.
Is there any configuration within Netbeans that will tell it that this is a Maven project (to use the pom.xml file) and treat it as such?
(note, if we close the project, temporarily delete the build.gradle file, then re-open in Netbeans, it does open as expected as a Maven project)
Solution
Now on newer versions (using 12 here), in Tools/Options/Java/Gradle exists a checkbox "Prefer Maven Projects over Gradle (needs restart)", check that and you have the solution.
Answered By - cwichoski
Answer Checked By - Cary Denson (JavaFixing Admin)