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.
It seems that when running Ant on a module project from inside a 7.0+ IDE then the processor for @ServiceProvider is taken from the IDE's org-openide-util.jar rather than from the copy you are developing in a module project. This makes it more difficult to test changes to ServiceProviderProcessor. Presumably the same would apply to any other provider located in openide.util, openide.modules, or o.n.bootstrap. Might be best solvable by hacking the Ant module to specifically exclude NB platform JARs from the classpath it reports to Apache Ant. Calling setIncludeantruntime(false) and setIncludejavaruntime(false) in CustomJavac does not help.
Seems to be fixed by fix of issue #152620 (the "best solvable" part). *** This issue has been marked as a duplicate of 152620 ***