Plugin Dependency not loaded to classpath Intellij IDEA 2018.2.2 Ultimate

Hi,

I've created an intellij plugin. I am able to build it, import some dependencies, load it to an intellij instance and use the plugin. Basically, I mean to say that I have the plugin setup fundamentally correct, including the general use of dependencies. 

I've added one more dependency though, and this one particularly appears to have some trouble:

dependencies {
  implementation(group: 'com.something.example', name: 'a-jar', version: '1.0.71') {
    exclude group: 'org.yaml', module: 'snakeyaml'
    exclude group: 'org.springframework.xyz', module: 'spring-something'
  }
  implementation (group: 'com.abc.example', name: 'some-jar', version: '1.0.76') {
    exclude group: 'some-group', module: 'commons'
  }
  implementation(group: 'com.oracle', name: 'ucp', version: '11.2.0.3')
  implementation(group: 'com.oracle', name: 'ojdbc6', version: '11.2.0.3') // <-- this is the only thing which is new!!
  testImplementation group: 'junit', name: 'junit', version: '4.12'
}

I build the plugin, and I can see the ojdbc6 jar in the zip. I install it to intellij, and restart. There do not appear to be any errors. However, when I run the action, I'm getting a ClassNotFoundException on oracle.jdbc.pool.OracleDataSource, which is in the ojdbc6 jar. 

java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Error during pool creation in Universal Connection Pool Manager MBean: oracle.ucp.UniversalConnectionPoolException: Error during pool creation in Universal Connection Pool Manager: java.sql.SQLException: Invalid Universal Connection Pool configuration: java.sql.SQLException: Unable to create factory class instance with provided factory class name: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource

Any ideas? I've remote debugged intellij and can confirm the class is not loaded. Is there any way to see the individual jar as they are loaded? Is this any known bug? It is hard to believe at this point that the issue is project or environment setup on my side.

Thanks

 

1

Please sign in to leave a comment.