Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.5.2
-
None
-
None
Description
It'd be nice to be able to use the ServiceLoader mechanism in maven plugins when using JDK9:
import org.apache.maven.plugin.AbstractMojo; public class MyMojo extends AbstractMojo { public void execute() throws MojoExecutionException { // this is empty Iterator<Tool> iterator = ServiceLoader.load(javax.tools.Tool.class).iterator(); } }
Work around is to use a different classloader.
Attachments
Issue Links
- is related to
-
MNG-6275 ServiceLoaderFactory can't find implementations via ClassRealm
-
- Reopened
-