JacocoPlus icon indicating copy to clipboard operation
JacocoPlus copied to clipboard

编译报错,是不支持JDK8吗?

Open Delena1988 opened this issue 3 years ago • 7 comments

INFO] JaCoCo ............................................. SUCCESS [ 34.488 s] [INFO] JaCoCo :: Core ..................................... FAILURE [01:35 min] [INFO] JaCoCo :: Report ................................... SKIPPED [INFO] JaCoCo :: Agent RT ................................. SKIPPED [INFO] JaCoCo :: Agent .................................... SKIPPED [INFO] JaCoCo :: Ant ...................................... SKIPPED [INFO] JaCoCo :: Command Line Interface ................... SKIPPED [INFO] JaCoCo :: Examples ................................. SKIPPED [INFO] JaCoCo :: Maven Plugin ............................. SKIPPED [INFO] JaCoCo :: Tests .................................... SKIPPED [INFO] JaCoCo :: Test :: Core ............................. SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation ............... SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 5 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Kotlin ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 7 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 8 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Groovy ........ SKIPPED [INFO] JaCoCo :: Test :: Report ........................... SKIPPED [INFO] JaCoCo :: Test :: Agent RT ......................... SKIPPED [INFO] JaCoCo :: Test :: Agent ............................ SKIPPED [INFO] JaCoCo :: Test :: Ant .............................. SKIPPED [INFO] JaCoCo :: Test :: Command Line Interface ........... SKIPPED [INFO] JaCoCo :: Test :: Examples ......................... SKIPPED [INFO] JaCoCo :: Test :: Maven Plugin ..................... SKIPPED [INFO] JaCoCo :: Documentation ............................ SKIPPED [INFO] JaCoCo :: Distribution ............................. SKIPPED [INFO] root 0.8.4 ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:10 min [INFO] Finished at: 2022-05-30T16:58:16+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project org.jacoco.core: Compilation failure [ERROR] /Users/linjian/IdeaProjects/JacocoPlus/org.jacoco.core/src/org/jacoco/core/internal/diff/ASTGenerator.java:[43,53] 无法访问org.eclipse.core.runtime.Plugin [ERROR] 错误的类文件: /Users/linjian/.m2/repository/org/eclipse/platform/org.eclipse.core.runtime/3.24.100/org.eclipse.core.runtime-3.24.100.jar(org/eclipse/core/runtime/Plugin.class) [ERROR] 类文件具有错误的版本 55.0, 应为 52.0 [ERROR] 请删除该文件或确保该文件位于正确的类路径子目录中。 [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :org.jacoco.core

Delena1988 avatar May 30 '22 08:05 Delena1988

支持的,我编译一下看看

512433465 avatar Dec 01 '22 07:12 512433465

INFO] JaCoCo ............................................. SUCCESS [ 34.488 s] [INFO] JaCoCo :: Core ..................................... FAILURE [01:35 min] [INFO] JaCoCo :: Report ................................... SKIPPED [INFO] JaCoCo :: Agent RT ................................. SKIPPED [INFO] JaCoCo :: Agent .................................... SKIPPED [INFO] JaCoCo :: Ant ...................................... SKIPPED [INFO] JaCoCo :: Command Line Interface ................... SKIPPED [INFO] JaCoCo :: Examples ................................. SKIPPED [INFO] JaCoCo :: Maven Plugin ............................. SKIPPED [INFO] JaCoCo :: Tests .................................... SKIPPED [INFO] JaCoCo :: Test :: Core ............................. SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation ............... SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 5 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Kotlin ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 7 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Java 8 ........ SKIPPED [INFO] JaCoCo :: Test :: Core :: Validation Groovy ........ SKIPPED [INFO] JaCoCo :: Test :: Report ........................... SKIPPED [INFO] JaCoCo :: Test :: Agent RT ......................... SKIPPED [INFO] JaCoCo :: Test :: Agent ............................ SKIPPED [INFO] JaCoCo :: Test :: Ant .............................. SKIPPED [INFO] JaCoCo :: Test :: Command Line Interface ........... SKIPPED [INFO] JaCoCo :: Test :: Examples ......................... SKIPPED [INFO] JaCoCo :: Test :: Maven Plugin ..................... SKIPPED [INFO] JaCoCo :: Documentation ............................ SKIPPED [INFO] JaCoCo :: Distribution ............................. SKIPPED [INFO] root 0.8.4 ......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:10 min [INFO] Finished at: 2022-05-30T16:58:16+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project org.jacoco.core: Compilation failure [ERROR] /Users/linjian/IdeaProjects/JacocoPlus/org.jacoco.core/src/org/jacoco/core/internal/diff/ASTGenerator.java:[43,53] 无法访问org.eclipse.core.runtime.Plugin [ERROR] 错误的类文件: /Users/linjian/.m2/repository/org/eclipse/platform/org.eclipse.core.runtime/3.24.100/org.eclipse.core.runtime-3.24.100.jar(org/eclipse/core/runtime/Plugin.class) [ERROR] 类文件具有错误的版本 55.0, 应为 52.0 [ERROR] 请删除该文件或确保该文件位于正确的类路径子目录中。 [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :org.jacoco.core

确实是版本不兼容,我近期改一下

512433465 avatar Dec 05 '22 02:12 512433465

还没改么

DannyHoo avatar Jul 18 '24 09:07 DannyHoo

jdk1.8环境,对org.jacoco.core的依赖做了一下调整

    <dependencies>
      <dependency>
        <groupId>org.eclipse.platform</groupId>
        <artifactId>org.eclipse.core.runtime</artifactId>
        <version>3.22.0</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.platform</groupId>
        <artifactId>org.eclipse.equinox.common</artifactId>
        <version>3.13.0</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

DannyHoo avatar Jul 18 '24 10:07 DannyHoo