Skip to content

Java 11. Spring boot 2.1.3 package not found when run as module #16031

@revkov

Description

@revkov

I use windows 10, Oracle JDK-11.0.2, Maven 3.6, Spring-boot 2.1.3.RELEASE
Hello. After #15810 fix module-info.class now place in root folder in fat-jar, but is broken jar running process. Before module-info.class was in /BOOT-INF/classes folder and jar was as automatic-module with name of jar. But now fat-jar is a normal module, but folder structure is not valid, and packages not found by JVM when you try running you jar as java --module-path <name_of>.jar --module <your_module_name> in 2.1.2 version it's work perfect (because automatic module)
I create a simpe sample which demonstrates this is behavior and maybe helpful for fix:
https://github.com/revkov/spring-boot-java11

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions