We are trying to use Archiva as a Maven proxy for central and other external repositories and also as a snapshot storage for our artifacts which are automatically built by Hudson from SVN and installed to the snapshot repository.
I can't setup my Maven client to use the internal and snapshots repositories together. My project has some external dependencies (like log4j
) which are downloaded from the Archiva internal repository correctly. Also my project has a dependency to an own project which's artifact is already built and installed to the snapshot repository. However if i try to build the project Maven can't find my snapshot artifact.
My configuration file had originally this setting:
<mirror>
<id>company-internal</id>
<name>Company's Archiva - Internal Repository</name>
<url>http://www.mycompany.hu/archiva/repository/internal</url>
<mirrorOf>*</mirrorOf>
</mirror>
and then i added the following:
<mirror>
<id>company-snapshots</id>
<name>Company Archiva - Snapshots Repository</name>
<url>http://www.mycompany.hu/archiva/repository/snapshots</url>
<mirrorOf>apache.snapshots</mirrorOf>
</mirror>
However Maven doesn't tries to look up the snaphot repository at build.
What did i do wrong? By the way i don't really get the <mirrorOf>
elements purpose. I've tried to replace this at internal mirror settings to central
but this still doesn't fix my problem.