My working local setup has broken all of a sudden. So, I tried restoring the local repository with a backup. I am doing the following from Intellij (which has a configuration to overwrite default maven settings.xml file) -
mvn install -Denv=live -Dmaven.test.skip=true
This fails for some recently added dependencies, because those are not available in the private repository (configured in settings_overwrite.xml).
So, from command line (using default settings.xml), I run the same command, but I get some other error -
Downloading from some-private-repo: https://repository-someprivate.forge.cloudbees.com/private/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from repository.springsource.milestone: http://repo.springsource.org/milestone/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from bitwalker.user-agent-utils.mvn.repo: https://raw.github.com/HaraldWalker/user-agent-utils/mvn-repo/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from fdvsolution.public: http://archiva.fdvs.com.ar/repository/public1/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from spring-snapshots: http://repo.spring.io/snapshot/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from spring-milestones: http://repo.spring.io/milestone/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
Downloading from central: https://repo.maven.apache.org/maven2/red/bcprov-jdk/16.144/bcprov-jdk-16.144.pom
..
[ERROR] Failed to execute goal on project some-common-user-management: Could not resolve dependencies for project com.someproject:some-common-user-management:jar:1.0.1-SNAPSHOT: Failed to collect dependencies at com.someproject:some-common:jar:1.0.1-SNAPSHOT -> red:bcprov-jdk:jar:16.144: Failed to read artifact descriptor for red:bcprov-jdk:jar:16.144: Could not transfer artifact red:bcprov-jdk:pom:16.144 from/to some-private-repo (https://repository-some.forge.cloudbees.com/private/): repository-some.forge.cloudbees.com: unknown error: Unknown host repository-some.forge.cloudbees.com: unknown error -> [Help 1]
These repositories are defined in one of the pom files.
I can see it contains the following -
SandeepanNath:16.144 sandeepan.nath$ pwd
~/.m2/repository/red/bcprov-jdk/16.144/
SandeepanNath:16.144 sandeepan.nath$ ls -lrth
total 3360
-rw-r--r-- 1 sandeepan.nath 1974079253 40B Jun 5 15:58 bcprov-jdk-16.144.pom.sha1
-rw-r--r-- 1 sandeepan.nath 1974079253 458B Jun 5 15:58 bcprov-jdk-16.144.pom
-rw-r--r-- 1 sandeepan.nath 1974079253 1.6M Jun 5 15:58 bcprov-jdk-16.144.jar
-rw-r--r-- 1 sandeepan.nath 1974079253 40B Jun 5 15:58 bcprov-jdk-16.144.jar.sha1
-rw-r--r-- 1 sandeepan.nath 1974079253 195B Jun 5 15:58 _remote.repositories
-rw-r--r-- 1 sandeepan.nath 1974079253 1.9K Jun 5 16:15 bcprov-jdk-16.144.pom.lastUpdated
I am not sure why the remote repository lookup is happening still. How do I resolve this causing the build failure issue.