osam-cologne / archlinux-proaudio

Actively maintained binary package repo for Arch Linux of free and open source pro-audio software.
https://arch.osamc.de/
The Unlicense
41 stars 2 forks source link

Convertwithmoss 9.0.1 fails to build #420

Closed Kirtai closed 1 month ago

Kirtai commented 5 months ago

Here's the error I get when building with extra/jdk-openjdk

[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< de.mossgrabers:convertwithmoss >-------------------
[INFO] Building ConvertWithMoss 9.0.1
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.3.2:clean (default-clean) @ convertwithmoss ---
[INFO] 
[INFO] --- enforcer:3.4.1:enforce (enforce-maven) @ convertwithmoss ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ convertwithmoss ---
[INFO] Copying 27 resources from src/main/resources to target/classes
[INFO] 
[INFO] --- compiler:3.13.0:compile (default-compile) @ convertwithmoss ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 240 source files with javac [forked debug target 17 module-path] to target/classes
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] location of system modules is not set in conjunction with -source 17
  not setting the location of system modules may lead to class files that cannot run on JDK 17
    --release 17 is recommended instead of -source 17 -target 17 because it sets the location of system modules automatically
/home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/core/detector/AbstractSampleFileDetectorTask.java:[149,137] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/KeyMapping.java:[436,101] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/KeyMapping.java:[657,50] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/ableton/AbletonDetectorTask.java:[169,87] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/decentsampler/DecentSamplerDetectorTask.java:[170,73] error: incompatible types: String cannot be converted to File
[INFO] 5 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.170 s
[INFO] Finished at: 2024-05-03T23:02:48+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project convertwithmoss: Compilation failure: Compilation failure: 
[ERROR] location of system modules is not set in conjunction with -source 17
[ERROR]   not setting the location of system modules may lead to class files that cannot run on JDK 17
[ERROR]     --release 17 is recommended instead of -source 17 -target 17 because it sets the location of system modules automatically
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/core/detector/AbstractSampleFileDetectorTask.java:[149,137] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/KeyMapping.java:[436,101] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/KeyMapping.java:[657,50] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/ableton/AbletonDetectorTask.java:[169,87] error: incompatible types: String cannot be converted to File
[ERROR] /home/faith/.cache/yay/convertwithmoss/src/ConvertWithMoss-9.0.1/src/main/java/de/mossgrabers/convertwithmoss/format/decentsampler/DecentSamplerDetectorTask.java:[170,73] error: incompatible types: String cannot be converted to File
[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
==> ERROR: A failure occurred in build().
    Aborting...
cbix commented 5 months ago

@Kirtai what's your default java environment (archlinux-java status)?

I'll see how we can use the desired version during build() 👍

Kirtai commented 5 months ago

Here you go:

$ archlinux-java status
Available Java environments:
  java-22-openjdk (default)
cbix commented 5 months ago

Weird, it's the same for me and building works. Did you try clean-building it (press A in yay)? What's the output of javac -version?

Kirtai commented 5 months ago

I tried clean building it, same error.

$ javac -version
javac 22
SpotlightKid commented 3 months ago

@Kirtai Version 10.0.0 is out. Does that build for you?

SpotlightKid commented 1 month ago

Closing this as invalid due to no further feedback.