I am trying to set up a remote Maven repository on my local network using Apache Archiva such that I want each and every dependency should get downloaded from the remote repository itself and not from any Externally hosted repository. For this I put the below Mirror snippet and Repository snippet in my $M2_HOME/settings.xml file:
<mirror>
<id>archiva.default</id>
<url>http://192.168.x.x:xyxy/repository/internal/</url>
<mirrorOf>*</mirrorOf>
</mirror>
<repositories>
<repository>
<id>internal</id>
<name>Archiva Managed Internal Repository</name>
<url>http://192.168.x.x:xyxy/repository/internal/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>central</id>
<name>Central</name>
<url>http://repo.maven.apache.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Now, this configuration works just fine for almost all the dependencies present at Maven Central Repository, But fails to download dependencies from Spring Repository.
Shows the error:
Could not find artifact org.springframework.data:spring-data-Cassandra:jar:1.5.0.BUILD-SNAPSHOT in the archive.default (http://192.168.x.x:xyxy/repository/internal/)
Can someone please help me out in this? Why is this mirror snippet not mirroring Spring Repo?