-
Notifications
You must be signed in to change notification settings - Fork 66
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
releases module with fixed dependency version #139
Comments
module1 is part of the same project, since it was modified, it will be rebuilt and generate a new jar. Notice that the multi-module maven release plugin doesn't run a deep check of the code changed but instead checks module folder level comparison between two git commits. |
Are you talking about the Maven reactor or the multi-module-maven-release-plugin reactor ? Maven will not rebuild |
I misunderstood the use case, I think I get it now, you are using a real version of a dependency which is part of the project I believe the root cause for this issue is in this line where it compares group+artifact id of an already released module (module1) from current module2 dependencies, but version is ignored (I believe the assumption was that the -SNAPSHOT is always used for local dependencies). So, eventually, the plugin releases module2 as well since it sees module1 as a changed dependency. |
I am testing this plugin to see if it fits my organization.
One of my tests consists of a
module2
with a dependency onmodule1
, but with a fixed versionmodule2/pom.xml
parent
pom.xml
After changing something on
module1
and committing,multi-module-maven-release-plugin
tries to also releasemodule2
Is this intentional behavior ? I do not think it should publish
module2
.The text was updated successfully, but these errors were encountered: