COVESA / franca_ara_tools

Translation between Franca Interface Description Language and AUTOSAR XML interface description language
Eclipse Public License 2.0
41 stars 12 forks source link

Failed to build following Wiki instructions #161

Closed Powana closed 2 years ago

Powana commented 2 years ago

Attempting to build following the instructions in the wiki, and I'm getting the following error after running mvn clean install -Pwith-artop:

[ERROR] Failed to resolve target definition <path>\franca_ara_tools\releng\org.genivi.faracon.target\fara-oxygen-artop.target: Could not find "org.artop.base.sdk.feature.group/4.12.0.201904251603" in the repositories of the current location -> [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/MavenExecutionException

The authentication for artop.org is successful, I'm using a proxy, but the proxy is set up correctly with maven. I don't have any experience with maven so I'm not sure where to look for errors. The link provided in [Help 1] is dead. The error is the same on Windows 10 and Ubuntu 21.04.

Powana commented 2 years ago

After updating the version numbers specified in fara-oxygen-artop.target to 4.12.1.202102191709, the build now fails with the following error:

[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.18.0:compile (default) on project org.genivi.faracon: Execution default of goal org.eclipse.xtend:xtend-maven-plugin:2.18.0:compile failed: Unable to load the mojo 'compile' in the plugin 'org.eclipse.xtend:xtend-maven-plugin:2.18.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null

[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.eclipse.xtend:xtend-maven-plugin:2.18.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls = < bunch of URL entries for the .m2 paths >
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.genivi.faracon:org.genivi.faracon.parent:0.9.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : ExceptionInInitializerError: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @143fb8d5
[ERROR] -> [Help 1]
kbirken commented 2 years ago

I fixed the Artop version from 4.12 to 4.12.1. In order to run the Maven build as described in the Wiki, Java 8 has to be installed. I just added a remark about that on the corresponding Wiki page.

kbirken commented 2 years ago

Just tested the build as described above with latest master. Works nicely.