You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/10/09 20:21:00 UTC

[jira] [Updated] (MNG-6986) Maven plugin doesn't load jdbc driver

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

Michael Osipov updated MNG-6986:
--------------------------------
    Fix Version/s: wontfix-candidate
                   waiting-for-feedback

> 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
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>
> 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)