Skip to content
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

Maven keeps downloading metadata, plugin versions not defined #7231

Closed
auke- opened this issue Apr 19, 2022 · 0 comments · Fixed by #7232
Closed

Maven keeps downloading metadata, plugin versions not defined #7231

auke- opened this issue Apr 19, 2022 · 0 comments · Fixed by #7232

Comments

@auke-
Copy link
Contributor

auke- commented Apr 19, 2022

Expected Behavior

When rebuilding a Micronaut based project we expect all dependencies to be downloaded once and no further downloads are necessary.

Actual Behaviour

Due to the fact that some Maven plugin versions aren't defined in the Micronaut BOM the metadata for those plugins are downloaded, even when the latest plugins are already available locally.

[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml (929 B at 4.4 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (663 B at 29 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (783 B at 22 kB/s)

Steps To Reproduce

  1. create a new Micronaut project using Maven as the build tool https://micronaut.io/launch
  2. run ./mvnw package
  3. wait the configured updatePolicy (defaults to one day)
  4. run ./mvnw package again
  5. notice the downloads of various maven-metadata.xml files

Environment Information

  • Operating System: MacOS
  • JDK Version: 17

Example Application

No response

Version

3.4.1

auke- added a commit to auke-/micronaut-core that referenced this issue Apr 19, 2022
Due to the fact that some Maven plugin versions aren't defined in the
Micronaut BOM the metadata for those plugins are downloaded, even when
the latest plugins are already available locally.

By defining the versions for those plugins we prevent the extra
downloads.
@alvarosanchez alvarosanchez linked a pull request Apr 19, 2022 that will close this issue
auke- added a commit to auke-/micronaut-core that referenced this issue May 11, 2022

Verified

This commit was signed with the committer’s verified signature.
Zuoqiu-Yingyi Yingyi / 颖逸
Due to the fact that some Maven plugin versions aren't defined in the
Micronaut BOM the metadata for those plugins are downloaded, even when
the latest plugins are already available locally.

By defining the versions for those plugins we prevent the extra
downloads.
sdelamo pushed a commit that referenced this issue May 15, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Due to the fact that some Maven plugin versions aren't defined in the
Micronaut BOM the metadata for those plugins are downloaded, even when
the latest plugins are already available locally.

By defining the versions for those plugins we prevent the extra
downloads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant