Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:16:07+00:00 2026-05-25T14:16:07+00:00

We are trying to use Archiva as a Maven proxy for central and other

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:16:08+00:00Added an answer on May 25, 2026 at 2:16 pm

    The following configuration worked for me after some trial and error. Here I used the default archiva configuration – internal to hold releases and snapshots to hold only the internal snapshots.

    Essentially unlike nexus we need two separate <mirror> and <repository> declarations – one for the normal artifacts and the other for snapshot artifacts.

    <mirrors>
        <mirror>
            <id>archiva</id>
            <mirrorOf>*</mirrorOf>
            <url>http://localhost:8080/archiva/repository/internal</url>
        </mirror>
        <mirror>
            <id>snapshots</id>
            <mirrorOf>snapshots</mirrorOf>
            <url>http://localhost:8080/archiva/repository/snapshots</url>
        </mirror>
    </mirrors>
    <profiles>
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                  <id>internal</id>
                  <name>Archiva Managed Internal Repository</name>
                  <url>http://localhost:8080/archiva/repository/internal/</url>
                  <releases>
                    <enabled>true</enabled>
                  </releases>
                  <snapshots>
                    <enabled>false</enabled>
                  </snapshots>
                </repository>
                <repository>
                  <id>snapshots</id>
                  <name>Archiva Managed Internal Repository</name>
                  <url>http://localhost:8080/archiva/repository/snapshots/</url>
                  <releases>
                    <enabled>false</enabled>
                  </releases>
                  <snapshots>
                    <enabled>true</enabled>
                  </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My coworkers and I are trying to use Maven to build our C# .NET
I am trying to use the target which can be found http://ryanfarley.com/blog/archive/2010/05/06/announcing-the-growl-for-windows-target-for-nlog.aspx . I
When i am trying to use Time.zone.now it gives me an error which shows
I'm trying to use the SUM function to count rows from 3 tables, which
I'm confused regarding Ivy, Maven and Archiva - they all seem to be trying
I'm trying to build a single .jar file from a Maven project which includes
I'm trying to use the <packagingExcludes> of the Maven war-plugin. This is my configuration:
I'm trying to use SharpZipLib to pull specified files from a zip archive. All
I am trying to use ZipInputStream to put each file inside the archive in
I am trying use Google Maps for my work; I have downloaded an example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.