Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to setup Archiva internal+snapshot repository for Maven?
    text
    copied!<p>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.</p> <p>I can't setup my Maven client to use the internal and snapshots repositories together. My project has some external dependencies (like <code>log4j</code>) 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.</p> <p>My configuration file had originally this setting:</p> <pre><code>&lt;mirror&gt; &lt;id&gt;company-internal&lt;/id&gt; &lt;name&gt;Company's Archiva - Internal Repository&lt;/name&gt; &lt;url&gt;http://www.mycompany.hu/archiva/repository/internal&lt;/url&gt; &lt;mirrorOf&gt;*&lt;/mirrorOf&gt; &lt;/mirror&gt; </code></pre> <p>and then i added the following:</p> <pre><code>&lt;mirror&gt; &lt;id&gt;company-snapshots&lt;/id&gt; &lt;name&gt;Company Archiva - Snapshots Repository&lt;/name&gt; &lt;url&gt;http://www.mycompany.hu/archiva/repository/snapshots&lt;/url&gt; &lt;mirrorOf&gt;apache.snapshots&lt;/mirrorOf&gt; &lt;/mirror&gt; </code></pre> <p>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 <code>&lt;mirrorOf&gt;</code> elements purpose. I've tried to replace this at internal mirror settings to <code>central</code> but this still doesn't fix my problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload