kofemann/vfs4j

Cannot build the project

Opened this issue · 1 comments

Building the project failed.

JAVA: JDK19

Command Line:mvn -fn -Dmaven.repo.local=maven_repo clean install

Console Output:

 Picked up _JAVA_OPTIONS : '--enable-preview --enable-native-access=ALL-UNNAMED'
 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective model for org.dcache:vfs4j:jar:1.0-SNAPSHOT
 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 64, column 21
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
 [WARNING]
 [INFO]
 

works for me on Fedora37 with standard packages

$ uname -a                                                                                                                                                                     (git)-[master] 
Linux nairi 6.1.14-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 26 00:13:26 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ java -version                                                                                                                                                                (git)-[master] 
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.18.0.10-1.fc37) (build 11.0.18+10, mixed mode, sharing)
$ /usr/lib/jvm/java-19/bin/javac -version                                                                                                                                      (git)-[master] 
javac 19.0.2

Build as:

$ mvn -V clean package
Apache Maven 3.8.5 (Red Hat 3.8.5-3)
Maven home: /usr/share/maven
Java version: 11.0.18, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.18.0.10-1.fc37.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.1.14-200.fc37.x86_64", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.dcache:vfs4j:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 64, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] --------------------------< org.dcache:vfs4j >--------------------------
[INFO] Building vfs4j 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ vfs4j ---
[INFO] Deleting /home/xxxx//vfs4j/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ vfs4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ vfs4j ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /home/xxxx//vfs4j/target/classes
[WARNING] /home/xxxx//vfs4j/src/main/java/org/dcache/vfs4j/LocalVFS.java:[775,21] [deprecation] write(Inode,byte[],long,int,StabilityLevel) in VirtualFileSystem has been deprecated
[WARNING] /home/xxxx//vfs4j/src/main/java/org/dcache/vfs4j/LocalVFS.java:[666,13] [deprecation] read(Inode,byte[],long,int) in VirtualFileSystem has been deprecated
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ vfs4j ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/xxxx//vfs4j/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ vfs4j ---
[INFO] Changes detected - recompiling the module!
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ vfs4j ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ vfs4j ---
[INFO] Building jar: /home/xxxx//vfs4j/target/vfs4j-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-dependency-plugin:3.2.0:copy-dependencies (copy-dependencies) @ vfs4j ---
[INFO] Copying nfs4j-core-0.24.0.jar to /home/xxxx//vfs4j/target/lib/nfs4j-core-0.24.0.jar
[INFO] Copying oncrpc4j-core-3.2.0.jar to /home/xxxx//vfs4j/target/lib/oncrpc4j-core-3.2.0.jar
[INFO] Copying grizzly-framework-3.0.0.jar to /home/xxxx//vfs4j/target/lib/grizzly-framework-3.0.0.jar
[INFO] Copying je-7.3.7.jar to /home/xxxx//vfs4j/target/lib/je-7.3.7.jar
[INFO] Copying slf4j-api-2.0.3.jar to /home/xxxx//vfs4j/target/lib/slf4j-api-2.0.3.jar
[INFO] Copying logback-classic-1.4.4.jar to /home/xxxx//vfs4j/target/lib/logback-classic-1.4.4.jar
[INFO] Copying logback-core-1.4.4.jar to /home/xxxx//vfs4j/target/lib/logback-core-1.4.4.jar
[INFO] Copying guava-30.1-jre.jar to /home/xxxx//vfs4j/target/lib/guava-30.1-jre.jar
[INFO] Copying failureaccess-1.0.1.jar to /home/xxxx//vfs4j/target/lib/failureaccess-1.0.1.jar
[INFO] Copying listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar to /home/xxxx//vfs4j/target/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[INFO] Copying jsr305-3.0.2.jar to /home/xxxx//vfs4j/target/lib/jsr305-3.0.2.jar
[INFO] Copying checker-qual-3.5.0.jar to /home/xxxx//vfs4j/target/lib/checker-qual-3.5.0.jar
[INFO] Copying error_prone_annotations-2.3.4.jar to /home/xxxx//vfs4j/target/lib/error_prone_annotations-2.3.4.jar
[INFO] Copying j2objc-annotations-1.3.jar to /home/xxxx//vfs4j/target/lib/j2objc-annotations-1.3.jar
[INFO] Copying canl-2.7.0.jar to /home/xxxx//vfs4j/target/lib/canl-2.7.0.jar
[INFO] Copying bcpkix-jdk15on-1.68.jar to /home/xxxx//vfs4j/target/lib/bcpkix-jdk15on-1.68.jar
[INFO] Copying bcprov-jdk15on-1.68.jar to /home/xxxx//vfs4j/target/lib/bcprov-jdk15on-1.68.jar
[INFO] Copying commons-io-2.6.jar to /home/xxxx//vfs4j/target/lib/commons-io-2.6.jar
[INFO] Copying picocli-4.6.3.jar to /home/xxxx//vfs4j/target/lib/picocli-4.6.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.224 s
[INFO] Finished at: 2023-03-09T21:12:11+01:00
[INFO] ------------------------------------------------------------------------

Do you have any details?