jhorology / bitwig-websocket-rpc

JSON-RPC 2.0 implementation over WebSockets for Bitwig Studio.
MIT License
4 stars 1 forks source link

Cannot build project #14

Open ri0t opened 3 years ago

ri0t commented 3 years ago

On npm run prod:build it bails out with:

[...] [INFO] ----------< com.github.jhorology.bitwig:bitwig-websocket-rpc >---------- [INFO] Building Bitwig WebSocket RPC server 0.2.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- Downloading from bitwig: https://maven.bitwig.com/com/bitwig/extension-api/10/extension-api-10.pom Downloaded from bitwig: https://maven.bitwig.com/com/bitwig/extension-api/10/extension-api-10.pom (431 B at 1.1 kB/s) Downloading from bitwig: https://maven.bitwig.com/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.pom Downloading from jitpack.io: https://www.jitpack.io/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.pom Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.pom (23 kB at 147 kB/s) Downloading from bitwig: https://maven.bitwig.com/org/apache/commons/commons-parent/41/commons-parent-41.pom Downloading from jitpack.io: https://www.jitpack.io/org/apache/commons/commons-parent/41/commons-parent-41.pom Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/41/commons-parent-41.pom Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/41/commons-parent-41.pom (65 kB at 901 kB/s) Downloading from bitwig: https://maven.bitwig.com/com/bitwig/extension-api/10/extension-api-10.jar Downloading from bitwig: https://maven.bitwig.com/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar Downloaded from bitwig: https://maven.bitwig.com/com/bitwig/extension-api/10/extension-api-10.jar (155 kB at 523 kB/s) Downloading from jitpack.io: https://www.jitpack.io/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar (480 kB at 3.1 MB/s) [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bitwig-websocket-rpc --- [INFO] Deleting /home/riot/src/bitwig-websocket-rpc/mvn/target [INFO] [INFO] --- jcp:7.0.2:preprocess (preprocess-sources) @ bitwig-websocket-rpc --- [INFO] Source folders: /home/riot/src/bitwig-websocket-rpc/mvn/src/main/java [INFO] Target folder: /home/riot/src/bitwig-websocket-rpc/mvn/target/generated-sources/preprocessed [INFO] File extensions: [htm, txt, java, html] excluded [xml] [INFO] ----------------------------------------------------------------- [INFO] Preprocessed 97 files, copied 0 files, ignored 4 files, elapsed time 111 ms [INFO] Source root is removed from the source root list: /home/riot/src/bitwig-websocket-rpc/mvn/src/main/java [INFO] Source root is enlisted: /home/riot/src/bitwig-websocket-rpc/mvn/target/generated-sources/preprocessed [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ bitwig-websocket-rpc --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ bitwig-websocket-rpc --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 97 source files to /home/riot/src/bitwig-websocket-rpc/mvn/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/riot/src/bitwig-websocket-rpc/mvn/target/generated-sources/preprocessed/com/github/jhorology/bitwig/rpc/RpcImpl.java:[32,43] cannot access com.bitwig.extension.controller.api.StringValue bad class file: /home/riot/.m2/repository/com/bitwig/extension-api/10/extension-api-10.jar(com/bitwig/extension/controller/api/StringValue.class) class file has wrong version 56.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath. [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.795 s [INFO] Finished at: 2021-04-30T18:26:23+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project bitwig-websocket-rpc: Compilation failure [ERROR] /home/riot/src/bitwig-websocket-rpc/mvn/target/generated-sources/preprocessed/com/github/jhorology/bitwig/rpc/RpcImpl.java:[32,43] cannot access com.bitwig.extension.controller.api.StringValue [ERROR] bad class file: /home/riot/.m2/repository/com/bitwig/extension-api/10/extension-api-10.jar(com/bitwig/extension/controller/api/StringValue.class) [ERROR] class file has wrong version 56.0, should be 52.0 [ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath. [ERROR] [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/MojoFailureException npm ERR! code 1 npm ERR! path /home/riot/src/bitwig-websocket-rpc npm ERR! command failed npm ERR! command sh -c cd mvn && mvn -P production,extension-api-10 clean package

npm ERR! A complete log of this run can be found in: npm ERR! /home/riot/.npm/_logs/2021-04-30T16_26_23_669Z-debug.log ERROR: "prod:build:api-10" exited with 1. npm ERR! code 1 npm ERR! path /home/riot/src/bitwig-websocket-rpc npm ERR! command failed npm ERR! command sh -c run-s prod:build:**

npm ERR! A complete log of this run can be found in: npm ERR! /home/riot/.npm/_logs/2021-04-30T16_26_23_689Z-debug.log

Anything wrong on my side?

:(

jhorology commented 3 years ago

class file has wrong version 56.0

This means target version of bitwig-extension-api-10.jar is JDK12. So, JDK12 or more recent is required to compile.