Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The following configuration worked for me after some trial and error. Here I used the default archiva configuration - <code>internal</code> to hold releases and <code>snapshots</code> to hold only the internal snapshots.</p> <p>Essentially unlike <a href="http://nexus.sonatype.org/" rel="noreferrer">nexus</a> we need two separate <code>&lt;mirror&gt;</code> and <code>&lt;repository&gt;</code> declarations - one for the normal artifacts and the other for snapshot artifacts. </p> <pre><code>&lt;mirrors&gt; &lt;mirror&gt; &lt;id&gt;archiva&lt;/id&gt; &lt;mirrorOf&gt;*&lt;/mirrorOf&gt; &lt;url&gt;http://localhost:8080/archiva/repository/internal&lt;/url&gt; &lt;/mirror&gt; &lt;mirror&gt; &lt;id&gt;snapshots&lt;/id&gt; &lt;mirrorOf&gt;snapshots&lt;/mirrorOf&gt; &lt;url&gt;http://localhost:8080/archiva/repository/snapshots&lt;/url&gt; &lt;/mirror&gt; &lt;/mirrors&gt; &lt;profiles&gt; &lt;profile&gt; &lt;activation&gt; &lt;activeByDefault&gt;true&lt;/activeByDefault&gt; &lt;/activation&gt; &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;internal&lt;/id&gt; &lt;name&gt;Archiva Managed Internal Repository&lt;/name&gt; &lt;url&gt;http://localhost:8080/archiva/repository/internal/&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;/snapshots&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;snapshots&lt;/id&gt; &lt;name&gt;Archiva Managed Internal Repository&lt;/name&gt; &lt;url&gt;http://localhost:8080/archiva/repository/snapshots/&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;/profile&gt; &lt;/profiles&gt; </code></pre>
 

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