Re: Running a Maven project with arguments.

Michael Bien <[email protected]> Fri, 12 Sep 2025 03:40:32 +0200
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
On 9/12/25 03:21, Owen Thomas wrote:
> On Thu, 11 Sept 2025 at 23:50, Michael Bien <[email protected]> wrote:
>
>     [What] you probably want to do is to uncheck "reuse output tabs from finished processes" in the maven options.
>     The output window tabs will remember the configs they ran, you can re-run them individually.
>
>
> Although the option is buried away in an obscure part of the IDE config (it could also be better described), I believe this option might work for me. It appears to keep the output of terminated programs open - it doesn't close them when a new instance is started - so the programs can be re-run with arguments and VM options preserved.
>
> That is something that I can use. Still, it would be great if I could execute a program in a fresh tab with a set of arguments and VM options; I could then, with the option to close terminated programs disabled, more easily manage the instances that I need to run.
>
>     You can store configs (right click on project -> properties -> Actions) in the project too.
>
>     Take a look at the "Run Project" or "Run File" actions and copy them with customized properties. They will show up in the right click menus on project / files with main methods. You can also edit the nbactions.xml directly once NB generates one.
>
>
> I observe this is certainly doable; the main concern that I have is that the arguments I give to my programs change often. Hence, it would be excellent if I could select a menu item after right-clicking on a project that said "Run with arguments..." so I can disclose the arguments I need to start the instance.
>
> Thank you sincerely for the tip; I hope I might see the changes I have suggested to NB in a near future release.

I actually wrote https://github.com/apache/netbeans/pull/8818 yesterday since it always annoyed me that you couldn't copy a config easily. Not quite what you requested but it might help still.

-mbien


>
>   Owen. 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists