Slackbot
01/10/2023, 1:15 AMHB
01/10/2023, 1:39 AMmvn compile resulted in an error still:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project buildtools: Compilation failure
[ERROR] /Users/user.name/Projects/pulsar/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java:[30,18] cannot access org.testng.ITestResult
[ERROR] bad class file: /Users/user.name/.m2/repository/org/testng/testng/7.7.0/testng-7.7.0.jar(org/testng/ITestResult.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.HB
01/10/2023, 1:43 AMrequireMavenVersion is set to 3.6.1 I see in the pom.xml. My local Maven is 3.8.6. That is still compliant isn't it?
➜ mvn -v
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /Applications/apache-maven-3.8.6
Java version: 1.8.0_322, vendor: <http://Amazon.com|Amazon.com> Inc., runtime: /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "13.1", arch: "x86_64", family: "mac"David K
01/10/2023, 3:10 AMLari Hotari
01/10/2023, 6:01 AMmvn -Pcore-modules,-main clean install -DskipTests -Dspotbugs.skip=trueLari Hotari
01/10/2023, 6:01 AMYou must use Java 17 for compiling the master branch version of Pulsar (requirements).Copy codeclass file has wrong version 55.0, should be 52.0
HB
01/10/2023, 6:16 PMHB
01/10/2023, 6:17 PMcore-modules.HB
01/10/2023, 6:39 PMjava 17.0.5-tem
After running your given command I'm getting the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project buildtools: Compilation failure
[ERROR] /Users/brandon.hoffman/Projects/pulsar/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java:[30,18] cannot access org.testng.ITestResult
[ERROR] bad class file: /Users/brandon.hoffman/.m2/repository/org/testng/testng/7.7.0/testng-7.7.0.jar(org/testng/ITestResult.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.Lari Hotari
01/10/2023, 9:08 PMmvn -v that Java 17 is in use.HB
01/10/2023, 10:21 PMHB
01/10/2023, 10:21 PM