Skip to content

Commit

Permalink
allow parallel execution of AbstractOsgiCompilerMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianJho authored and mickaelistria committed Apr 9, 2021
1 parent f0bd426 commit 6895ce4
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -104,11 +104,6 @@ public abstract class AbstractOsgiCompilerMojo extends AbstractCompilerMojo
*/
public static final String RULE_EXCLUDE_ALL = "?**/*";

/**
* Lock object to ensure thread-safety
*/
private static final Object LOCK = new Object();

private static final Set<String> MATCH_ALL = Collections.singleton("**/*");

private static final String PREFS_FILE_PATH = ".settings" + File.separator + "org.eclipse.jdt.core.prefs";
Expand Down Expand Up @@ -333,9 +328,7 @@ public final void execute() throws MojoExecutionException, MojoFailureException

checkTargetLevelCompatibleWithManifestBREEs(effectiveTargetLevel, manifestBREEs);

synchronized (LOCK) {
doCompile();
}
doCompile();
doFinish();
}

Expand Down

0 comments on commit 6895ce4

Please sign in to comment.