|Is Maven supposed to work properly? [message #1791396]
||Thu, 28 June 2018 17:51
| Alexandros Karypidis
Registered: March 2010
With a lot of help from these forums I've finally gotten to a stage where my language is usable. So I just tried "mvn install" for the first time, to get it into my local repository (I want to use it in a separate project via Maven as per Integration in Standard Maven Builds).
However, I got a weird security-related error. Now, before doing anything I fired up Eclipse and created a new Xtext project as follows:
- Next on the first page of the wizard (org.xtext.example.mydsl)
- On second page ticked (enabled) feature/update site boxes
- On second page, changed preferred build system to Maven
- On second page, set language server to regulart
I then immediately tried "mvn install" on the brand new project (no changes from me) and I got the same error:
ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile (default) on project org.xtext.example.mydsl: Execution default of goal org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile failed: Unable to load the mojo 'compile' (or one of its required components) from the plugin 'org.eclipse.xtend:xtend-maven-plugin:2.14.0': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[ERROR] 1) Error injecting constructor, com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.SecurityException: class "org.eclipse.core.runtime.OperationCanceledException"'s signer information does not match signer information of other classes in the same package
[ERROR] at org.eclipse.xtend.maven.XtendCompile.<init>(Unknown Source)
[ERROR] while locating org.eclipse.xtend.maven.XtendCompile
[ERROR] at ClassRealm[plugin>org.eclipse.xtend:xtend-maven-plugin:2.14.0, parent: sun.misc.Launcher$AppClassLoader@3d4eac69] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile)
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: org.eclipse.xtend:xtend-maven-plugin:2.14.0:compile
Now, this is the default project that the wizard generates. I also tried without update/feature/language-server (so all defaults in the wizard bar the option to use Maven as the build system) and I still get the same.
Any pointers as to what may be wrong?
I am using xtext 2.14. The message "signer information does not match signer information of other classes in the same package" seems to indicate there is some dubious jar, so I deleted everyhing from ~/.m2/repository and retried (doing a fresh download for the world), but the problem persists. I am not using any maven mirros (everything comes from maven central).
I'd appreciate any pointers on what to look at next...
Powered by FUDForum
. Page generated in 0.02771 seconds