Invocation exception for p2.asmaven plugin
I am trying to give the p2.asmaven Plugin a spin.
- Gradle
7.2 - Java
1.8(in env + gradle.properties) - My build.gradle is:
plugins { id "com.diffplug.p2.asmaven" version "3.33.1" id 'java-library' } apply plugin: 'com.diffplug.p2.asmaven' p2AsMaven { // the maven group they shall have group 'eclipse-deps', { // the repositories and artifacts to download repoEclipse '4.17.0' iu 'org.eclipse.jdt.core' } } dependencies { implementation 'eclipse-deps:org.eclipse.jdt.core:+' } java { toolchain { languageVersion = JavaLanguageVersion.of(8) } } version = '1.2.1'
I am getting this stack trace
with this being the interesting part I imagine:
Caused by: java.lang.SecurityException: Signers of 'org.osgi.service.log.LogLevel' do not match signers of other classes in package
at org.eclipse.osgi.internal.log.EquinoxLogServices.<init>(EquinoxLogServices.java:94)
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:78)
at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:34)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:315)
at com.diffplug.gradle.eclipserunner.EquinoxLauncher$Running.<init>(EquinoxLauncher.java:196)
at com.diffplug.gradle.eclipserunner.EquinoxLauncher$Running.<init>(EquinoxLauncher.java:189)
at com.diffplug.gradle.eclipserunner.EquinoxLauncher.open(EquinoxLauncher.java:174)
at com.diffplug.gradle.eclipserunner.EquinoxLauncher.run(EquinoxLauncher.java:179)
Am I on the right track?
My goal is to use this plugin to package locally-built RCP product p2 artifacts into a local .m2 repo, so that other, purely maven-configured projects can resolve them and compile against them without fuzz.