-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Unlike other Spring Boot goals, process-aot and process-test-aot run on Maven reactor projects #35377
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
Unlike other Spring Boot goals, process-aot and process-test-aot run on Maven reactor projects #35377
Conversation
It won't, unless the I think this sort of change is actually hiding a build setup issue. See also #33184. Can you please check your build and get back to us with a reason for this change? |
That's the case, but it is also a valid use case assuming a common parent project and N services all similarly configured inheriting dependencies and plugins from the parent. We do this this way already for the repackage goal: Line 198 in 1770f06
Otherwise we would have to remove the spring-boot-plugin from The suggestion here is to align the behaviour |
Are all your sub-modules spring boot applications?
I am aware of that and I've explained above why I'd like to get a bit more detail about the setup. |
We also have library projects not spring boot, for those we add a repackage skip =true. Of course, we could do it the other way around adding a skip = false for those that need repackaging/aot-processing. The process-aot goal behaves inconsistently with respect to the repackaging goal within the same plugin, maybe the solution is to remove the code from repackaging, but that would probably break things. |
You could rather configure the execution for the plugin in your parent with whatever settings you need in And your library projects would not have any reference to Spring Boot at all. This is a better arrangement IMO as the spring boot plugin is only applied where it is necessary rather than applying it in the reactor for all modules and skipping things.
That being said, we could add this check, I'll check with the rest of the team. |
We are using flatten plugins for this, since the libraries we publish need to have a flat pom anyway we configure it to remove most things except the deps. But I guess that's opinionated.
True, run doesn't skip. |
@ls-urs-keller Thanks very much for making your first contribution to Spring Boot. |
When running in multi module maven projects, the aot phase should not run on modules with type
POM