[ https://issues.apache.org/jira/browse/MNG-6986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198697#comment-17198697 ]
Sylwester Lachiewicz commented on MNG-6986: ------------------------------------------- Creating a minimum reproducible plugin project that can demonstrate the bug would be helpful. > Maven plugin doesn't load jdbc driver > ------------------------------------- > > Key: MNG-6986 > URL: https://issues.apache.org/jira/browse/MNG-6986 > Project: Maven > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 3.6.3 > Environment: windows 10 Enterprise > Oracle JDK 1.8.0_261 > Maven3.6.3 > Reporter: Simon Sheng > Priority: Major > > My customize maven plugin needs jdbc driver. I tried to config the dependency > of that plugin, additional classpath ... None of them works for me. > > in code, I enlarge dependency resolution by Mojo annotation: > > {code:java} > requiresDependencyResolution = ResolutionScopt.RUNTIME > {code} > then load the class I need manually > > > {code:java} > loop MavenProject.getRuntimeClasspathElements() to find the jar I need and > URLClassLoader to load it > {code} > > If it is a defeat, we need to fix it. > -- This message was sent by Atlassian Jira (v8.3.4#803005)