Skip to content

JDK11 causes compile error #2060

Description

@alfredalbrecht

Hi, I'm trying to migrate some projects from JDK 8 to JDK 11/10 and get a compilation error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project mapstruct-jdk11: Compilation failure
[ERROR] Couldn't find type java.sql.Date. Are you missing a dependency on your classpath?

I build on:

➜  mapstruct-jdk11 git:(master) mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: /home/alfred/Workspaces/Apps/apache-maven
Java version: 11.0.4, vendor: Azul Systems, Inc., runtime: /home/alfred/Workspaces/Apps/jdk_zulu11.33.15-ca-fx-jdk11.0.4-linux_x64
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-55-generic", arch: "amd64", family: "unix"

You can reproduce the error with:
https://github.com/alfredalbrecht/mapstruct-jdk11

Thanks and Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions