-
Notifications
You must be signed in to change notification settings - Fork 40
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
When using -am more modules are built than the user might expect #44
Comments
To name this feature we should probably focus on what the user will have in mind when he will be looking for this feature. To do that we probably should try to list the use cases. I think I made it such that it builds C because C may not exist in the maven repo local or remote or may exist but could be outdated. So the use case is to rebuild everything needed freshly. Above use case would suggest name like 'rebuild' or 'dont-rely-on-repo'. Emmm, not sure. What do u think? |
Hm, as this is only relevant when using Something like Implementation-wise I see two different approaches for the changed/min/whatever mode:
The second option makes me wonder whether GIB should in general auto-disable itself when |
@deradam & @ambition-consulting You both reacted to this issue with a "thumbs up". |
Not urgent, but definitely desirable. |
As noone is forcing us to push release 3.8 out today or tomorrow, I am going to have a look at this more in detail so that we can hopefully include this in 3.8. |
…ties Issue #44: Introduce buildUpstreamMode & buildDownstream
Starting with Release 3.8, See: https://github.com/vackosar/gitflow-incremental-builder#gibbuildupstreammode |
Hi there, thanks for the change. I have encountered a problem. Assume the following maven dependency chain: B gets changed. 'mvn clean install -pl C -am" The ideal behaviour would be:
In a project with 50 modules with various dependencies, it would really pay off building only those modules changed, dependent modules on the changed, and only required for the target module. |
@ambition-consulting Thanks for your feedback! Can you please open another issue? IMHO, although related, this issue and the one you just reported are not entirely the same thing. |
understood, will do |
Given a project with four modules A, B, C and D:
-am
is usedthen this extension behaves differently than what one might expect:
-am
to the project list: B and DIn other words this extension is effectively calling
mvn ... -pl :B,:D -am
whereas a user without this extension would probably callmvn ... -pl :B -am -amd
which would only build A, B and D.I have to add that the current "wider" approach is not entirely wrong or useless! In fact I do need it in a Jenkins pull request (PR) pipeline job which merges the PR with the target branch (I can elaborate more in detail if needed).
So I'd suggest we make this behaviour configurable. Ideas for the property name?
The text was updated successfully, but these errors were encountered: