Fix build failure source plugin#1677
Fix build failure source plugin#1677ryanjbaxter merged 181 commits intospring-cloud:mainfrom wind57:fix-build-failure-source-plugin
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 |
| <phase>package</phase> | ||
| <goals> | ||
| <goal>build-image</goal> | ||
| <goal>build-image-no-fork</goal> |
There was a problem hiding this comment.
this is the actual fix
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> |
There was a problem hiding this comment.
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.