Hi again,
Sorry if this has been asked before, I'm not a Java developer but I'm
trying to help our folks use Archiva.
I have 2 repositories set up called "internal" (the default that comes
with Archiva) and "restricted" (one I have set up to host Sun restricted
license JARs and so on)
However, I cannot get M2 projects to try to consult this repo for
restricted license JARs. I have, in ~/.m2/settings.xml, the following:
<settings>
<mirrors>
<mirror>
<id>archiva.default</id>
<url>http://archiva.nm.cbc.ca/archiva/repository/internal/</url>
<mirrorOf>*</mirrorOf>
</mirror>
<mirror>
<id>archiva.restricted</id>
<url>http://archiva.nm.cbc.ca/archiva/repository/restricted/</url>
<mirrorOf>restricted</mirrorOf>
</mirror>
</mirrors>
</settings>
But the build fails like this:
Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//flexjson/flexjson/1.6/flexjson-1.6.jar
Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//javax/transaction/jta/1.1B/jta-1.1B.jar
Downloading:
http://archiva.nm.cbc.ca/archiva/repository/internal//javax/jms/jms/1.1/jms-1.1.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
What's wrong? Obviously, I have already uploaded those artifacts to
Archiva, just in the restricted repo, not internal.
- Julian