-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix build failure source plugin #1677
Fix build failure source plugin #1677
Conversation
Configure Renovate
@ryanjbaxter fixes our build failure. its a intermediate solution until I figure out exactly what causes it and why. thank you |
I think actually this dependency upgrade broke things I am not sure why, but I reverted the change and so far the build looks pretty good. |
well yes, that is the PR that broke things, but downgrading is not really a solution, imho. I don't know (yet) a smart way to solve this, but here is the issue: The problem is in 3 things at the same time:
When we want an image to be generated, we use the
As such, when we run
The problem here is that this spring-boot-maven-plugin requires the And this means: run the package phase again. maven does not have a way to detect what was run before in the same build (there might one here : https://issues.apache.org/jira/browse/MNG-6566 , but its maven 4.0.0), as such starts all goals from that phase again, meaning some of the goals will run two times. This is how the boot plugin worked for a very long time. This was not a problem until I'm still thinking how to properly solve this, since we can't downgrade forever and it seems that all future versions will have this problem too. Of course, a proper solution has to come from spring-boot-maven-plugin, but I don't really know how that would be doable :( |
Thanks for the investigation here. I agree that eventually we want to upgrade, but there isn't much harm in staying where we are for now and IMO is preferable to making the changes to work around the issue in this PR. I think it is worth opening an issue with Spring Boot with the details above and see if they have some thoughts on this. My guess is that we are not the only ones running into this and maybe they have some suggestions. |
you were right Ryan, it was us who were configuring things incorrectly... To properly fix this, you will have to upgrade in the commons and I will fix it here. wdyt? |
I merged the change in spring cloud build, once the build finishes and the snapshots are available you can test things out. It should only take a few minutes for the build to finish |
@@ -18,7 +18,7 @@ you must name the image with the same name as the module. For example: | |||
</configuration> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>build-image</goal> | |||
<goal>build-image-no-fork</goal> |
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 is the actual fix
@@ -59,40 +59,6 @@ | |||
</dependency> | |||
</dependencies> | |||
|
|||
<build> |
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.
I removed the plugin from children and placed it in the parent pom, but the fix is the same
Nice. Good to go! |
No description provided.