Skip to content

Do not want to compile on java 11 #7788

Open
@DeuxCatPotes

Description

@DeuxCatPotes

Precondition

  • [ x ] I checked the issues list for existing open or closed reports of the same problem.

Describe the bug
Do not want to compile

Version of dependency-check used
Last source version.

cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.5 LTS"
 apt show maven
Package: maven
Version: 3.6.3-5

To Reproduce
Steps to reproduce the behavior:

try to start (on gitlab-ci) the compilation with command line from the readme

[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 24 source files with javac [debug deprecation release 11] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Dependency-Check 12.1.4-SNAPSHOT:
[INFO]
[INFO] Dependency-Check ................................... SUCCESS [ 40.598 s]
[INFO] Dependency-Check Utils ............................. FAILURE [ 51.801 s]
[INFO] Dependency-Check Core .............................. SKIPPED
[INFO] Dependency-Check Command Line ...................... SKIPPED
[INFO] Dependency-Check Ant Task .......................... SKIPPED
[INFO] Dependency-Check Maven Plugin ...................... SKIPPED
[INFO] Dependency-Check Plugin Archetype .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:43 min
[INFO] Finished at: 2025-07-04T15:18:49+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project dependency-check-utils:    Fatal error compiling: error: release version 11 not supported -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :dependency-check-utils

Expected behavior
a working compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions