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 269273

Summary: Concurrency between "regular Maven build" and "background scanning of projects"
Product: java Reporter: mzav
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description mzav 2016-12-08 17:09:27 UTC
Initial condition: have a big Maven project. Even set of dependent big Maven projects.

It looks like "background scanning of projects" has a side effect - it modifies corresponded class files.

On the other hand, regular Build procedure that runs Maven - modifies them too.
As a result I observe periodically unpredictable build errors when background scanning is active (and it looks like regular build triggers it). And there are no ever any problems when build is execiuted directly by Maven out of NetBeans.

Proposed solution - "background scanning of projects" has to be turned off when "regular" build occurs.
Comment 1 mzav 2016-12-08 17:12:32 UTC
Eclipse compiler is used for the build.