reactiverse / pinot-client

This client exposes the Pinot Java Client for Eclipse Vert.x applications.
Apache License 2.0
2 stars 1 forks source link

Unable to build the project #1

Closed tsegismont closed 1 year ago

tsegismont commented 1 year ago

This is my Maven setup:

Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
Java version: 11.0.18, vendor: Eclipse Adoptium, runtime: /home/tsegismont/Tools/sdkman/candidates/java/11.0.18-tem
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.4.4-100.fc37.x86_64", arch: "amd64", family: "unix"

When I try to build the project, I get this:

[INFO] --- impsort:1.6.2:sort (sort-imports) @ pinot-client ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Reactiverse Pinot Client 1.0-SNAPSHOT:
[INFO] 
[INFO] Reactiverse Pinot Client ........................... SUCCESS [  1.922 s]
[INFO] pinot-client ....................................... FAILURE [  0.993 s]
[INFO] pinot-client-rxjava2 ............................... SKIPPED
[INFO] pinot-client-rxjava3 ............................... SKIPPED
[INFO] pinot-client-mutiny ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.077 s
[INFO] Finished at: 2023-08-01T14:08:45+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.revelc.code:impsort-maven-plugin:1.6.2:sort (sort-imports) on project pinot-client: Execution sort-imports of goal net.revelc.code:impsort-maven-plugin:1.6.2:sort failed: A required class was missing while executing net.revelc.code:impsort-maven-plugin:1.6.2:sort: org/codehaus/plexus/util/DirectoryScanner
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>net.revelc.code:impsort-maven-plugin:1.6.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/tsegismont/mavenrepo/net/revelc/code/impsort-maven-plugin/1.6.2/impsort-maven-plugin-1.6.2.jar
[ERROR] urls[1] = file:/home/tsegismont/mavenrepo/com/github/javaparser/javaparser-core/3.22.1/javaparser-core-3.22.1.jar
[ERROR] urls[2] = file:/home/tsegismont/mavenrepo/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
[ERROR] urls[3] = file:/home/tsegismont/mavenrepo/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[4] = file:/home/tsegismont/mavenrepo/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[5] = file:/home/tsegismont/mavenrepo/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[6] = file:/home/tsegismont/mavenrepo/org/checkerframework/checker-qual/3.8.0/checker-qual-3.8.0.jar
[ERROR] urls[7] = file:/home/tsegismont/mavenrepo/com/google/errorprone/error_prone_annotations/2.5.1/error_prone_annotations-2.5.1.jar
[ERROR] urls[8] = file:/home/tsegismont/mavenrepo/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
lucifer4j commented 1 year ago

It seems you are facing this issue: https://stackoverflow.com/a/75652825. It works fine for me locally and in CI because the maven versions there are < 3.9.0. I'll update maven locally and try the fix mentioned there to see if it fixes the issues.