Hi guys, is there a way to load lib/plugin-classloader-6.2.0.jar
from maven?
For my day to day ES plugin development I have a regular Gradle project that depends on
compile 'org.elasticsearch:elasticsearch:' + esVersion
compile 'org.elasticsearch.plugin:transport-netty4-client:' + esVersion
Until 6.1.x I had no compilation issues, until (after pull request #27881). Which is responsible for creating a new jar in the ES zip distribution (lib/plugin-classloader-6.2.0.jar) which is NOT available as a maven dependency.
As a result, I keep on getting this RUNTIME fatal error:
java.lang.NoClassDefFoundError: org/elasticsearch/plugins/ExtendedPluginsClassLoader
As a proof of concept, I manually added plugin-classloader-6.2.0.jar as a local dependency to my project and everything worked.
Any suggestions?
For reference: my plugin's gradle file for 6.2.0 is here
And my java options in the IntelliJ launcher are:
-Djava.security.policy=/me/elasticsearch-readonlyrest-plugin-5.x/integration-tests/src/test/eshome/plugins/readonlyrest/plugin-security.policy
-Djava.awt.headless=true
-Des.insecure.allow.root=true
-Dfile.encoding=UTF-8
-Djna.nosys=true
-Des.path.home=/me/elasticsearch-readonlyrest-plugin-5.x/integration-tests/src/test/eshome
-Dlog4j2.disable.jmx=true
-Xms1g
-Xmx1g
-Djdk.io.permissionsUseCanonicalPath=true
-Dio.netty.noUnsafe=true
-Dio.netty.noKeySetOptimization=true
-Dio.netty.recycler.maxCapacityPerThread=0
-Dlog4j.shutdownHookEnabled=false
-Dlog4j.skipJansi=true
-Des.path.conf=config
-Djava.security.manager