You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "1351030767 (via GitHub)" <gi...@apache.org> on 2023/07/16 06:53:51 UTC

[GitHub] [pulsar] 1351030767 created a discussion: 3.0.0 compile error

GitHub user 1351030767 created a discussion: 3.0.0 compile error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project buildtools: Compilation failure
[ERROR] /Users/yaogvan/IdeaProjects/pulsar3.0/buildtools/src/main/java/org/apache/pulsar/tests/BetweenTestClassesListenerAdapter.java:[21,18] cannot access org.testng.IClassListener
[ERROR]   bad class file: /usr/local/apache-maven-3.8.6/localRepository/org/testng/testng/7.7.1/testng-7.7.1.jar(org/testng/IClassListener.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.
[ERROR] 
[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

GitHub link: https://github.com/apache/pulsar/discussions/20815

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] tisonkun added a comment to the discussion: 3.0.0 compile error

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
GitHub user tisonkun added a comment to the discussion: 3.0.0 compile error

What's your JDK version and Maven version?

> class file has wrong version 55.0, should be 52.0

You can try to delete `/usr/local/apache-maven-3.8.6/localRepository/org/testng/testng` and rerun the command, or delete the whole maven local repository and rerun with JDK 17.

GitHub link: https://github.com/apache/pulsar/discussions/20815#discussioncomment-6643799

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org