You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "xerno (via GitHub)" <gi...@apache.org> on 2026/04/14 07:32:31 UTC
[I] Compact Maven parallel flag -T in Goals not recognized as parallel build [netbeans]
xerno opened a new issue, #9337:
URL: https://github.com/apache/netbeans/issues/9337
### Apache NetBeans version
Apache NetBeans 29
### What happened
Maven accepts both -T 2 (two tokens) and -T2 (single token) as equivalent parallel build syntax. In the NetBeans Goals field, these naturally produce different nbactions.xml structures:
- -T 2 -> ```<goal>-T</goal><goal>2</goal>``` - works correctly, parallel build detected, output displays fine
- -T2 -> ```<goal>-T2</goal>``` - build runs fine, but Output window throws NPE:
```
java.lang.NullPointerException: Cannot read field "type" because "start" is null
at o.n.m.maven.execute.CommandLineOutputHandler.trimTree(CommandLineOutputHandler.java:588)
at o.n.m.maven.execute.CommandLineOutputHandler.processExecEvent(CommandLineOutputHandler.java:475)
at o.n.m.maven.execute.CommandLineOutputHandler$Output.run(CommandLineOutputHandler.java:293)
```
It appears that the compact form is not recognized as a parallel build, so the output tree-folding stays active and crashes on interleaved events from concurrent modules.
Workaround: Use -T 2 (with space) instead of -T2 in the Goals field.
### Language / Project Type / NetBeans Component
Java Maven multi-module project
### How to reproduce
1. Open any Maven multi-module project with at least 2 independent modules
2. In the Goals field (or directly in nbactions.xml), configure a build action with -T2 as a single goal:
```
<goals>
<goal>-T2</goal>
<goal>clean</goal>
<goal>install</goal>
</goals>
```
3. Run the action
4. Observe the Output window — build succeeds but the output tree is corrupted and the NPE appears
For comparison, change to -T 2 (two separate goals):
```
<goals>
<goal>-T</goal>
<goal>2</goal>
<goal>clean</goal>
<goal>install</goal>
</goals>
```
This works correctly.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Mac OS X version 26.5 / aarch64
### JDK
OpenJDK 64-Bit Server VM 25.0.2+10-LTS
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
Related:
- #5479
- #3675
### Are you willing to submit a pull request?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Compact Maven parallel flag -T in Goals not recognized as parallel build [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #9337: Compact Maven parallel flag -T<N> in Goals not recognized as parallel build
URL: https://github.com/apache/netbeans/issues/9337
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists