Create skeleton binding script fails


Just started with Developer Guide | openHAB and stopped on error:

./ HuaweiRouter "Denis Morozov" frozer
[ERROR] Error executing Maven.
[ERROR] java.lang.IllegalStateException: Unable to load cache item
[ERROR] Caused by: Unable to load cache item
[ERROR] Caused by: Could not initialize class$MethodWrapper
[ERROR] Caused by: Exception$CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int, throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @67e2d983 [in thread "main"]
cp: cannot create regular file 'org.openhab.binding.huaweirouter/': Not a directory
dim@dim-VPCSA2S9R:~/projects/openhab-addons/bundles$ java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu120.04, mixed mode, sharing)
dim@dim-VPCSA2S9R:~/projects/openhab-addons/bundles$ mvn --version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 17.0.7, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "5.4.0-150-generic", arch: "amd64", family: "unix"

How can I fix it?

Thanks in advance!

Fixed, by switching to the maven 3.9.2.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.