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 215131 - background scanning not when maven is running in console
Summary: background scanning not when maven is running in console
Status: RESOLVED DUPLICATE of bug 194147
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 14:07 UTC by janvo
Modified: 2012-11-06 12:06 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description janvo 2012-07-03 14:07:08 UTC
do not background scan while maven is running in a console.
I run maven on a linux command line.
During this netbeans keeps scanning and slows maven down (disk access)
Detect if maven (external) is running, suspend scanning until ready.
Comment 1 Milos Kleint 2012-11-06 11:21:31 UTC
appears to be a specific duplicate of a more generic issue 194147

*** This bug has been marked as a duplicate of bug 194147 ***
Comment 2 janvo 2012-11-06 11:57:46 UTC
i do not completely agree that this is a duplicate.
because if i run a build script with a long list of maven projects that needs building (> 10 minutes). In the meantime i want to use my Netbeans IDE to continue developing some of those projects.
During that time I don't want to trigger scanning of projects (Our projects have generated sources) 

To disable listeners in full misses the point. Be cause if I change the file with an other editor I do want Netbeans to pick up the change.

Further: that issue which this may be a duplicate of does not have the status "resolved" so why has this one "resolved" as status?
Comment 3 Milos Kleint 2012-11-06 12:06:33 UTC
(In reply to comment #2)
> i do not completely agree that this is a duplicate.
> because if i run a build script with a long list of maven projects that needs
> building (> 10 minutes). In the meantime i want to use my Netbeans IDE to
> continue developing some of those projects.
> During that time I don't want to trigger scanning of projects (Our projects
> have generated sources) 

For this to work the way you envision I don't see any other solution than manual filesystem refresh, like eclipse has. We don't do that, we will listen to any changes on the filesystem when then happen, in 7.x we use native fs listening. Issue 194147 is about these fs events not propagating to the IDE when the IDE is not focused.

I don't see a way for the IDE's code to KNOW that you are running a maven build on cmd line and only want to refresh when your cmd line build finishes.


> 
> To disable listeners in full misses the point. Be cause if I change the file
> with an other editor I do want Netbeans to pick up the change.

It's getting a bit complicated doesn't it? How can IDE make sense of these events and where they are coming from

> 
> Further: that issue which this may be a duplicate of does not have the status
> "resolved" so why has this one "resolved" as status?

that's how bugzilla works.