You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Owen Thomas <ow...@gmail.com> on 2025/09/11 10:04:57 UTC

Running a Maven project with arguments.

Some context: Having become frustrated with Gradle's "compatibility
matrix", its lack of documentation, its general complexity and apparent
fragility, and its seeming gentle want for me to recode my entire project
in Kotlin, I'm attempting to do what perhaps I should have done first: used
Maven as my build tool.

Although it seems that I can enter command line arguments in the Run
category Project Property's dialogue (I haven't actually done this, but
this looks about right), I'm just wondering if there's any easier way to do
this. Something like choosing an option from the project menu like "Run
with arguments...".

Thanks. :)

  Owen.

Re: Running a Maven project with arguments.

Posted by Owen Thomas <ow...@gmail.com>.
Hello once more.

I have created a feature request
<https://github.com/apache/netbeans/issues/8819> which details my concerns.
I hope it is informative and contributes positively to the evolution of
Netbeans.

On Fri, 12 Sept 2025 at 11:45, Ernie Rael <er...@raelity.com> wrote:

> On 25/09/11 6:21 PM, Owen Thomas wrote:
>
>
> Thank you sincerely for the tip; I hope I might see the changes I have
> suggested to NB in a near future release.
>
>   Owen.
>
> Notice that at https://github.com/apache/netbeans/issues click the button *New
> issue* and see *Apache NetBeans feature request*.
>
> In your feature request you can reference this thread with a link into the
> mailing list archive. (I'd probably also post a link to the issue in this
> thread)
>
> -ernie
>

Re: Running a Maven project with arguments.

Posted by Ernie Rael <er...@raelity.com>.
On 25/09/11 6:21 PM, Owen Thomas wrote:
>
> Thank you sincerely for the tip; I hope I might see the changes I have 
> suggested to NB in a near future release.
>
>   Owen.

Notice that at https://github.com/apache/netbeans/issues click the 
button *New issue* and see *Apache NetBeans feature request*.

In your feature request you can reference this thread with a link into 
the mailing list archive. (I'd probably also post a link to the issue in 
this thread)

-ernie

Re: Running a Maven project with arguments.

Posted by Michael Bien <mb...@gmail.com>.
On 9/12/25 03:21, Owen Thomas wrote:
> On Thu, 11 Sept 2025 at 23:50, Michael Bien <mb...@gmail.com> 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: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Re: Running a Maven project with arguments.

Posted by Owen Thomas <ow...@gmail.com>.
On Thu, 11 Sept 2025 at 23:50, Michael Bien <mb...@gmail.com> 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.

  Owen.

Re: Running a Maven project with arguments.

Posted by Michael Bien <mb...@gmail.com>.
should work too. But 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.

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.

-mbien

On 9/11/25 13:28, Owen Thomas wrote:
> Hmmm... interesting. I believe that would work for me if I were running only one instance. (?) I'm running multiple instances of the same program simultaneously; each with slightly different arguments.
>
> Maybe if there's nothing available yet, I'd like to appeal to the fairies to put something that would do this in a subsequent release of NB.
>
> On Thu, 11 Sept 2025 at 20:28, Michael Bien <mb...@gmail.com> wrote:
>
>     a quick way would be to use the "re-run with different parameters" button on the output window. You have to run it first for the tab to appear.
>
>     -mbien
>
>     On 9/11/25 12:04, Owen Thomas wrote:
>     > Some context: Having become frustrated with Gradle's "compatibility matrix", its lack of documentation, its general complexity and apparent fragility, and its seeming gentle want for me to recode my entire project in Kotlin, I'm attempting to do what perhaps I should have done first: used Maven as my build tool.
>     >
>     > Although it seems that I can enter command line arguments in the Run category Project Property's dialogue (I haven't actually done this, but this looks about right), I'm just wondering if there's any easier way to do this. Something like choosing an option from the project menu like "Run with arguments...".
>     >
>     > Thanks. :)
>     >
>     >   Owen.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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


Re: Running a Maven project with arguments.

Posted by Owen Thomas <ow...@gmail.com>.
Hmmm... interesting. I believe that would work for me if I were running
only one instance. (?) I'm running multiple instances of the same program
simultaneously; each with slightly different arguments.

Maybe if there's nothing available yet, I'd like to appeal to the fairies
to put something that would do this in a subsequent release of NB.

On Thu, 11 Sept 2025 at 20:28, Michael Bien <mb...@gmail.com> wrote:

> a quick way would be to use the "re-run with different parameters" button
> on the output window. You have to run it first for the tab to appear.
>
> -mbien
>
> On 9/11/25 12:04, Owen Thomas wrote:
> > Some context: Having become frustrated with Gradle's "compatibility
> matrix", its lack of documentation, its general complexity and apparent
> fragility, and its seeming gentle want for me to recode my entire project
> in Kotlin, I'm attempting to do what perhaps I should have done first: used
> Maven as my build tool.
> >
> > Although it seems that I can enter command line arguments in the Run
> category Project Property's dialogue (I haven't actually done this, but
> this looks about right), I'm just wondering if there's any easier way to do
> this. Something like choosing an option from the project menu like "Run
> with arguments...".
> >
> > Thanks. :)
> >
> >   Owen.
>
>

Re: Running a Maven project with arguments.

Posted by Michael Bien <mb...@gmail.com>.
a quick way would be to use the "re-run with different parameters" button on the output window. You have to run it first for the tab to appear.

-mbien

On 9/11/25 12:04, Owen Thomas wrote:
> Some context: Having become frustrated with Gradle's "compatibility matrix", its lack of documentation, its general complexity and apparent fragility, and its seeming gentle want for me to recode my entire project in Kotlin, I'm attempting to do what perhaps I should have done first: used Maven as my build tool.
>
> Although it seems that I can enter command line arguments in the Run category Project Property's dialogue (I haven't actually done this, but this looks about right), I'm just wondering if there's any easier way to do this. Something like choosing an option from the project menu like "Run with arguments...".
>
> Thanks. :)
>
>   Owen.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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