I have two repositories configured in the ~/.m2/settings.xml:
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>thirdparty</id>
<name>thirdparty</name>
<url>https://artifact.example.net/artifactory/thirdparty</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>our-releases</id>
<name>our-releases</name>
<url>https://artifact.example.net/artifactory/our-releases</url>
</repository>
</repositories>
The project's pom.xml makes no mention of either of the two. When I run mvn install, Maven tries to download the JARs from only one of the repositories.
When such a download fails (such as with 403 forbidden), Maven fails too -- instead of trying to obtain the same JAR from the other repository, which actually has it.
What am I doing wrong?