quick-perf / quickperf

QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
https://github.com/quick-perf/doc/wiki/QuickPerf
Apache License 2.0
488 stars 65 forks source link

Cannot build quick perf from sources #220

Open ennishol opened 8 months ago

ennishol commented 8 months ago

I've cloned the repo and tried to build, but the build is failing with:

[INFO] --- jar:3.2.0:jar (default-jar) @ quick-perf-jvm-annotations ---
[INFO] Building jar: /home/qk/dev/demos/quickperf/jvm/jvm-annotations/target/quick-perf-jvm-annotations-1.1.0.jar
[INFO]
[INFO] --------------< org.quickperf:quick-perf-jfr-annotations >--------------
[INFO] Building quick-perf-jfr-annotations 1.1.0                         [6/40]
[INFO]   from jvm/jfr-annotations/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Artifact org.openjdk.jmc:flightrecorder.rules.jdk:pom:7.1.1 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [Central (https://repo.maven.apache.org/maven2, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] Artifact org.openjdk.jmc:flightrecorder.rules.jdk:pom:7.1.1 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [Central (https://repo.maven.apache.org/maven2, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[WARNING] The POM for org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 is missing, no dependency information available
[INFO] Artifact org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [Central (https://repo.maven.apache.org/maven2, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] Artifact org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [Central (https://repo.maven.apache.org/maven2, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for quick-perf 1.1.0:
[INFO]
[INFO] quick-perf ......................................... SUCCESS [  0.628 s]
[INFO] quick-perf-core .................................... SUCCESS [  3.174 s]
[INFO] quick-perf-jvm-parent .............................. SUCCESS [  0.010 s]
[INFO] quick-perf-jvm-core ................................ SUCCESS [  0.136 s]
[INFO] quick-perf-jvm-annotations ......................... SUCCESS [  1.542 s]
[INFO] quick-perf-jfr-annotations ......................... FAILURE [  0.025 s]
[INFO] quick-perf-sql-parent .............................. SKIPPED
[INFO] quick-perf-sql-annotations ......................... SKIPPED
[INFO] quick-perf-sql-memory-test-util .................... SKIPPED
[INFO] quick-perf-sql-hibernate-test-util ................. SKIPPED
[INFO] quick-perf-junit4-parent ........................... SKIPPED
[INFO] quick-perf-junit4 .................................. SKIPPED
[INFO] quick-perf-sql-memory-test ......................... SKIPPED
[INFO] quick-perf-junit4-5-jvm-test ....................... SKIPPED
[INFO] quick-perf-junit4-12-jvm-test ...................... SKIPPED
[INFO] quick-perf-junit4-13-jvm-test ...................... SKIPPED
[INFO] quick-perf-junit4-13-1-jvm-test .................... SKIPPED
[INFO] quick-perf-junit4-13-2-jvm-test .................... SKIPPED
[INFO] quick-perf-junit4-sql-test ......................... SKIPPED
[INFO] quick-perf-junit5-parent ........................... SKIPPED
[INFO] quick-perf-junit5-test-util ........................ SKIPPED
[INFO] quick-perf-junit5 .................................. SKIPPED
[INFO] quick-perf-junit5-jvm-test ......................... SKIPPED
[INFO] quick-perf-junit5-sql-test ......................... SKIPPED
[INFO] quick-perf-testng-parent ........................... SKIPPED
[INFO] quick-perf-testng-test-util ........................ SKIPPED
[INFO] quick-perf-testng .................................. SKIPPED
[INFO] quick-perf-testng-sql-test ......................... SKIPPED
[INFO] quick-perf-testng-jvm-test ......................... SKIPPED
[INFO] quick-perf-spring .................................. SKIPPED
[INFO] quick-perf-sql-spring4 ............................. SKIPPED
[INFO] quick-perf-sql-spring5 ............................. SKIPPED
[INFO] quick-perf-junit4-spring-base-tests ................ SKIPPED
[INFO] quick-perf-junit4-spring3 .......................... SKIPPED
[INFO] quick-perf-junit4-spring4 .......................... SKIPPED
[INFO] quick-perf-junit4-spring5 .......................... SKIPPED
[INFO] quick-perf-springboot1-sql-starter ................. SKIPPED
[INFO] quick-perf-springboot2-sql-starter ................. SKIPPED
[INFO] quick-perf-junit4-spring-boot-test ................. SKIPPED
[INFO] quick-perf-bom ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.909 s
[INFO] Finished at: 2024-03-16T21:37:44+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project quick-perf-jfr-annotations: Could not resolve dependencies for project org.quickperf:quick-perf-jfr-annotations:jar:1.1.0: The following artifacts could not be resolved: org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 (present, but unavailable): org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of Central has elapsed or updates are forced -> [Help 1]

and after removing the jmc artifact from the local repo:

[ERROR] Failed to execute goal on project quick-perf-jfr-annotations: Could not resolve dependencies for project org.quickperf:quick-perf-jfr-annotations:jar:1.1.0: The following artifacts could not be resolved: org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 (absent): Could not transfer artifact org.openjdk.jmc:flightrecorder.rules.jdk:jar:7.1.1 from/to AdoptOpenJDK (https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs): status code: 409, reason phrase: Conflict (409) -> [Help 1]
jeanbisutti commented 7 months ago

@ennishol The JFrog repository has to be removed and the org.openjdk.jmc dependencies have to be replaced by those of Maven central. Do you want to try to create a PR to fix this?

SimonVerhoeven commented 1 month ago

@jeanbisutti I took a quick look, but at this time the number of issues has seemingly increased given the reliance on Java 1.7. Is the intent to modernize the library (and thus increase the baseline to 11/17), or to get it up and running on older configurations?

jeanbisutti commented 1 month ago

@SimonVerhoeven It could start with the jfr-annotations module by bumping this version to 9.0.0, and by increasing the Java version. Don't hesitate to tell me if I can help you to do the change.

SimonVerhoeven commented 1 month ago

I'm a bit occupied right now, but I can take a look later. I first wanted to check what the plan was. But I already wanted to touch base to see what the plan was (if any). So increasing the baseline's fine?