How to force Maven to download maven-metadata.xml from the central repository?
Posted
by
Alceu Costa
on Stack Overflow
See other posts from Stack Overflow
or by Alceu Costa
Published on 2009-08-13T16:57:58Z
Indexed on
2011/02/04
23:25 UTC
Read the original article
Hit count: 183
What I want to do is to force Maven to download the 'maven-metadata.xml' for each artifact that I have in my local repository.
The default Maven behaviour is to download only metadata from remote repositories (see this question).
Why I want to do that:
Currently I have a remote repository running in a build machine. By remote repository I mean a directory located in the build machine that contains all dependencies that I need to build my Maven projects. Note that I'm not using a repository manager like Nexus, the repository is just a copy of a local repository that I have uploaded to my build machine.
However, since my local repository did not contain the 'maven-metadata.xml' files, these metadata files are also missing in the build machine repository. If I could retrieve the metadata files from the central repository, then it would be possible to upload a working remote repository to my build machine.
© Stack Overflow or respective owner