This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194090

Summary: Use EventSpy for more reliable build progress tracking
Product: projects Reporter: Jesse Glick <jglick>
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal CC: theanuradha
Priority: P2 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
URL: http://jira.codehaus.org/browse/MNG-4936
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 206791    
Bug Blocks: 198650, 206925, 227541    
Attachments: Sources of demo

Description Jesse Glick 2011-01-06 14:57:00 UTC
For Maven 3.0.2+ it may be possible to run a forked CLI build yet get detailed execution events without having to parse text output. Needs investigation.
Comment 1 Jesse Glick 2011-06-01 00:02:35 UTC
Created attachment 108640 [details]
Sources of demo

See bug #198650 comment #4.
Comment 2 Jesse Glick 2011-11-28 22:06:10 UTC
Replacing MavenCommandLineExecutor.FindByName is a key driver; this is way too slow on big reactors. (Also cancellation does not seem to work reliably.)
Comment 3 Jesse Glick 2012-03-06 14:18:40 UTC
Not in 7.2.
Comment 4 Jesse Glick 2012-07-31 15:07:35 UTC
(In reply to comment #2)
> Replacing MavenCommandLineExecutor.FindByName is a key driver

Just realized that this can be done more easily and efficiently by just scanning Maven output for the error line after "After correcting the problems, you can resume the build with the command":

  mvn <goals> -rf :$artifactId
Comment 5 Milos Kleint 2013-04-08 20:08:33 UTC
http://hg.netbeans.org/core-main/rev/bd3fb75c97fd and a few previous commits.
for maven 3.x we now collect events from the EventSpy and create at Session->project->mojo tree that we use to find out where to resume from. For the future we could even show the entire node tree with links back to the output printed.
Comment 6 Jesse Glick 2013-04-08 20:28:46 UTC
Cool. You saw the blocked issues, right?