Thoughts and tutorials on programming

Monday, March 08, 2021

maven using repo.maven.apache.org ... even though central it is overridden in ~/.m2/settings.xml file

I have overridden the <central> repo in my ~/.m2/settings.xml file.  For artifacts and plugins.

Yet I get this failure message:


Downloading from central: https://repo.maven.apache.org/maven2/xxx/version.RELEASE.pom


[ERROR] Failed to execute goal on project artifact-metadata-aggregator: Could not resolve dependencies for project :jar:1.0-SNAPSHOT: Failed to collect dependencies at Failed to find ... in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

Failed to read artifact descriptor fo Could not find artifact xx in central (https://repo.maven.apache.org/maven2) -> [Help 1]


fix: use maven 4.0 instead of 3.6

or add <mirrorOf>* instead of overriding central repo, apparently...

Contributors

Followers