-
Notifications
You must be signed in to change notification settings - Fork 267
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
update-properties takes a lot of time for some projects #1076
Comments
Which Maven version do you use? |
A debug log (mvn ... -X) can help to investigate which task take the most time |
I'm using Maven version 3.8.8, but I also tested it on version 3.9.1. The most time-consuming task is to download maven-metadata.xml files. I download them, like all defined dependencies, through my own Nexus server. However, when calling update-properties it seems that maven-metadata.xml files are downloaded for all defined dependencies, not just those defined by includesList. |
In method: we have a code: Dependency[] dependencies = property.getDependencies();
if (dependencies != null) {
for (Dependency dependency : dependencies) {
getLog().debug("Property ${" + property.getName() + "}: Adding association to " + dependency);
builder.withAssociation(this.createDependencyArtifact(dependency), false);
}
} where dependencies are not filtered, and next method Finally in method |
I wonder if it's intentional when calling update-properties to check the metadata of all defined dependencies if we pass includesList which will end up skipping version updates for most of them?
I invoke something like this:
mvn org.codehaus.mojo:versions-maven-plugin:2.16.2:update-properties -DallowMinorUpdates=false -Dincludes=my.groupId.*,my.other.groupId.*
And for some projects it takes even about 30 minutes to finally update only a few of my own dependencies among the multitude of third-party dependencies that I do not want to update automatically.
The text was updated successfully, but these errors were encountered: