On Sun, 16 Mar 2025, 20:57 Kenneth Fogel, <kfo...@dawsoncollege.qc.ca.invalid> wrote:
> If this is so, then I implore you to please provide a way to override this > and use the <defaultGoal> from the pom file for the simple Run commands. > This is important, in my opinion, to ensure that a Maven project behaves > the same in NetBeans as it would from the command line or in other IDEs. > This has always been possible. All the goals for each action are editable in the project properties, as was already stated. Set it to whatever you need, or none. The UI does treat goalless actions as disabled in a few places though, probably for the better! Using defaultGoal for this purpose is a terrible idea in my opinion. Its usage is rare, and a code search across GH shows it most usually seems tied to install, and sometimes deploy. Teach your students to be explicit about what they want Maven to do, on the CLI or in their IDE. Best wishes, Neil