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

Add a profile to spring-boot-starter-parent for building a native image from an application #30830

Closed
wilkinsona opened this issue Apr 28, 2022 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@wilkinsona
Copy link
Member

No description provided.

@wilkinsona wilkinsona added the type: enhancement A general enhancement label Apr 28, 2022
@wilkinsona wilkinsona added this to the 3.0.0-M3 milestone Apr 28, 2022
@wilkinsona wilkinsona self-assigned this Apr 28, 2022
snicoll added a commit that referenced this issue May 18, 2022
This commit refines 80470f0 so that the 'repackage' goal of the
Spring Boot maven plugin uses a classifier. Previously, a regular
package with the profile fails as the Native Build Tools is trying to
use the repackaged archive as a regular jar file.

This is temporary as we'd like to explore other solutions, including
suggesting an additional option in the NBT plugin itself that uses the
regular classpath, rather than the produced jar.

See gh-30830
@snicoll
Copy link
Member

snicoll commented May 18, 2022

I've added a classifier when the profile is used so that the repackaged archive is no longer the main artifact, see 216d156.

This is temporary until an option in the NBT plugin is available, see graalvm/native-build-tools#237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants