build error on ubuntu 16.04
007herelsp opened this issue ยท 5 comments
log
[INFO] --- xtend-maven-plugin:2.7.3:compile (default) @ org.genivi.commonapi.releng ---
[WARNING] Error injecting: org.eclipse.xtend.maven.XtendCompile
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: 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
at org.eclipse.xtend.maven.XtendCompile.<init>(XtendCompile.java:28)
while locating org.eclipse.xtend.maven.XtendCompile
[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.7.3:compile (default) on project org.genivi.commonapi.releng: Execution default of goal org.eclipse.xtend:xtend-maven-plugin:2.7.3:compile failed: Unable to load the mojo 'compile' (or one of its required components) from the plugin 'org.eclipse.xtend:xtend-maven-plugin:2.7.3': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[ERROR]
[ERROR] 1) Error injecting constructor, com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: 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>(XtendCompile.java:28)
[ERROR] while locating org.eclipse.xtend.maven.XtendCompile
[ERROR] at ClassRealm[plugin>org.eclipse.xtend:xtend-maven-plugin:2.7.3, parent: sun.misc.Launcher$AppClassLoader@1b6d3586] (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.7.3:compile)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint: org.eclipse.xtend:xtend-maven-plugin:2.7.3:compile
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
In order to temporarily fix this I replaced the xtend version with a newer one:
...
<xtend-version>2.15.0</xtend-version>
...
in the capicxx-core-tools/org.genivi.commonapi.releng/pom.xml
file and ran the build again from the org.genivi.commonapi.core.releng folder.
@razvan-ciochina
Thank you! works as well :-) ๐
Same problem here, however, @razvan-ciochina 's fix isn't working for me...
I was able to build after additionally adding <xtext-version>2.15.0</xtext-version>
and implementing this fix.
Also, this issue arises on Ubuntu 18.04_64 as well.
However, I didn't appear to have this issue earlier this month. My assumption is the yocto GDP build I did, or the upgrade of the Boost Libs to 1.73.0 might have had something to do with it.
Potential Patch:
diff --git a/org.genivi.commonapi.releng/pom.xml b/org.genivi.commonapi.releng/pom.xml
index 53e762b..d356af7 100644
--- a/org.genivi.commonapi.releng/pom.xml
+++ b/org.genivi.commonapi.releng/pom.xml
@@ -10,7 +10,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<forceContextQualifier>v${maven.build.timestamp}</forceContextQualifier>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
- <xtend-version>2.7.3</xtend-version>
+ <xtend-version>2.15.0</xtend-version>
+ <xtext-version>2.15.0</xtext-version>
</properties>
<pluginRepositories>
@@ -85,28 +86,49 @@
<artifactId>tycho-versions-plugin</artifactId>
<version>${tycho-version}</version>
</plugin>
- <plugin>
- <groupId>org.eclipse.xtend</groupId>
- <artifactId>xtend-maven-plugin</artifactId>
- <version>${xtend-version}</version>
- <dependencies>
- <dependency>
- <groupId>org.eclipse.platform</groupId>
- <artifactId>org.eclipse.equinox.common</artifactId>
- <version>3.10.0</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/xtend-gen</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
+<plugin>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>xtend-maven-plugin</artifactId>
+ <version>${xtext-version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>xtend-install-debug-info</goal>
+ <goal>testCompile</goal>
+ <goal>xtend-test-install-debug-info</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <outputDirectory>${basedir}/xtend-gen</outputDirectory>
+ <testOutputDirectory>${basedir}/xtend-gen</testOutputDirectory>
+ </configuration>
+ <!-- Workaround for https://github.com/eclipse/xtext/issues/1231 -->
+ <!-- Remove with upgrade to Xtext 2.15 -->
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.core</artifactId>
+ <version>3.13.102</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
+ <version>1.3.110</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>org.eclipse.jdt.compiler.tool</artifactId>
+ <version>1.2.101</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.emf</groupId>
+ <artifactId>org.eclipse.emf.codegen</artifactId>
+ <version>2.11.0</version>
+ </dependency>
+ </dependencies>
+</plugin>
</plugins>
</build>
</project>
Hello,
I have been having the same problem on Ubuntu 20.04 (64 bit System) with Eclipse version 4.16. I changed the Xtend version to 2.22.0 and then Tycho version to 1.7.0, but I got the following error:
Failed to execute goal org.eclipse.tycho:tycho-p2-director-plugin:1.5.0:materialize-products (materialize-products) on project org.genivi.commonapi.core.cli.product: Installation of product org.genivi.commonapi.core.cli.product for environment win32/win32/x86 failed: Call to p2 director application failed with exit code 13. Program arguments were: [-metadataRepository, file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/targetPlatformRepository/, -artifactRepository, file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/resolution-context-artifacts@%252Froot%252Fcapicxx-core-tools%252Forg.genivi.commonapi.core.cli.product,file:/root/capicxx-core-tools/org.genivi.commonapi.console/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.console.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.console.franca.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/root/.m2/repository/, -installIU, org.genivi.commonapi.core.cli.product, -destination, /root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/win32/win32/x86, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, win32, -p2.ws, win32, -p2.arch, x86]. -> [Help 1]
Could this error be related to 64 bit systems of eclipse and Ubuntu? Are these generators available only for 32 bit versions of Ubuntu and Eclipse ?
Also, I tried installing CommonApI generators through the given update sites in the user guide. However, the .fidl file was not transformed to C++ code? Please let me know what could have gone wrong!
Ubuntu 20.04 / x64 is fine. The xtend version was updated for v3.2.0