Hi all:

I am migrating the following 2 Java applications and 1 "shared" library from 
NetBeans Ant-based projects to Maven:

https://sourceforge.net/p/filereadtest/code/ci/master/tree/

I have noticed that Maven is rather slow, which bugs me (I am very impatient 
for a part-time
Java developer). I suspect the start-up costs are a big factor, and GraalVM is 
probably not
quite ready yet to replace the standard JVM.

When I am writing code, I want to press a key in order to immediately start the 
application
under the debugger. All modified code, whether in the application or in the 
common library,
should be recompiled (if necessary). This is standard in most development 
environments for
most computer languages.

So, after starting NetBeans, I went to the project settings, "Actions", "Debug project" 
and ticked "Build With Dependencies".

I then noticed in the output window that Maven actually runs twice:

1) [...] mvn -DskipTests=true --also-make --projects QuickDiskTest install

2) [...] mvn [...] process-classes 
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

Is there a way to run Maven just once? Or does Maven not support building and 
running (under a debugger) in a single invocation?

Inside NetBeans, I could experiment with a new custom 
BuildWithDependenciesAndDebug action,
but there does not seem to be a way to fully control the command-line arguments for an action. There are fields for goals, profiles and properties, but that is probably not enough. Or am I mistaken here?

I am hoping that someone here could help me. I already posted this question in 
the NetBeans mailing list, but nobody answered:

http://mail-archives.apache.org/mod_mbox/netbeans-users/202009.mbox/%3C1652543010.678234.1601497297309%40mail.yahoo.com%3E

I cannot migrate this project away from NetBeans yet, because I am using the NetBeans GUI builder (Matisse) for the forms (see the .form files), which I guess is only available inside NetBeans.

Thanks in advance,
  rdiez

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

Reply via email to