[ 
https://issues.apache.org/jira/browse/MNG-6986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MNG-6986.
-------------------------------
    Fix Version/s:     (was: wontfix-candidate)
                       (was: waiting-for-feedback)
       Resolution: Incomplete

No sample project provided.

> 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)

Reply via email to