Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: plexus-compiler-1.8.2
-
Fix Version/s: plexus-compiler-1.8.6
-
Component/s: plexus-compiler
-
Labels:None
-
Environment:Plexus trunk
-
Number of attachments :
Description
In the current version of org.codehaus.plexus.compiler.javac.JavacCompiler, for each compilation task a new classloader is being created to load JavaC.
This slows down the build process.
With the attached patch JavacCompiler will cache the classloader. For me this reduces the build time to 1/3 when compiling multiple projects.
This also solves "OutOfPermSpace" problems when running huge builds via the Maven reactor.