Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring-Boot LayeredJarGenerator no longer working with Spring Boot 3.2 #2477

Closed
manusa opened this issue Nov 27, 2023 · 2 comments · Fixed by #2482
Closed

Spring-Boot LayeredJarGenerator no longer working with Spring Boot 3.2 #2477

manusa opened this issue Nov 27, 2023 · 2 comments · Fixed by #2482
Assignees
Labels
bug Something isn't working
Milestone

Comments

@manusa
Copy link
Member

manusa commented Nov 27, 2023

Description

Eclipse JKube is not compatible with Spring Boot 3.2.

Error: Could not find or load main class org.springframework.boot.loader.JarLauncher
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher

Starting from Spring Boot 3.2 the JarLauncher class has moved to org.springframework.boot.loader.launch.JarLauncher

@manusa manusa added this to the 1.16.0 milestone Nov 27, 2023
@manusa manusa added the bug Something isn't working label Nov 27, 2023
@edeandrea
Copy link

Description should be Spring-Boot LayeredJarGenerator no longer working with Spring Boot 3.2 (not Spring Boot 3 - Spring Boot 3.0.x & 3.1.x are fine).

@manusa manusa changed the title Spring-Boot LayeredJarGenerator no longer working with Spring Boot 3 Spring-Boot LayeredJarGenerator no longer working with Spring Boot 3.2 Nov 27, 2023
@manusa
Copy link
Member Author

manusa commented Nov 27, 2023

As a temporary workaround, users can disable layered jar generation in the Spring Boot Maven Plugin:

<project>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <layers>
                        <enabled>false</enabled>
                    </layers>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

For Gradle Plugin:

tasks.named("bootJar") {
	layered {
		enabled = false
	}
}
`` 

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants