-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix broken native build of generated projects #5005
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,7 +165,7 @@ public class NativeConfig { | |
| /** | ||
| * If full stack traces are enabled in the resulting image | ||
| */ | ||
| @ConfigItem(defaultValue = "false") | ||
| @ConfigItem(defaultValue = "true") | ||
| public boolean fullStackTraces; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What bugs me a bit too is that now, the output when creating the native image is very scarce. I don't know if it's normal or not but we used to have a couple of Quarkus lines and now we have: and that's it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will look into this |
||
|
|
||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,11 +187,13 @@ public void execute() throws MojoExecutionException { | |
| .setConfigDir(outputDirectory.toPath()) | ||
| .setBuildSystemProperties(realProperties).build()); | ||
| Artifact original = project.getArtifact(); | ||
| if (result.getJar().isUberJar() && result.getJar().getOriginalArtifact() != null) { | ||
| original.setFile(result.getJar().getOriginalArtifact().toFile()); | ||
| } | ||
| if (result.getJar().isUberJar()) { | ||
| projectHelper.attachArtifact(project, result.getJar().getPath().toFile(), "runner"); | ||
| if (result.getJar() != null) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if the issue is the null test or the fact that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is ok, the NativeImageMojo does not attempt to look at the jar result. |
||
| if (result.getJar().isUberJar() && result.getJar().getOriginalArtifact() != null) { | ||
| original.setFile(result.getJar().getOriginalArtifact().toFile()); | ||
| } | ||
| if (result.getJar().isUberJar()) { | ||
| projectHelper.attachArtifact(project, result.getJar().getPath().toFile(), "runner"); | ||
| } | ||
| } | ||
|
|
||
| } catch (AppCreatorException e) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is definitely dark magic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was unintentional. I must have made a mistake when creating this, or maybe it got missed in one of the many rebases.