Hi,
I try to upload an artefact to archiva. I always get an exception
(Unauthorized) when I have to use Basic Authentication. (The
http-client.jar is in the classpath)
Before I try to publish the artefact I set the Authentication parameters
within Ivy:
Build file:
<ivy:settings file="./ivysettings.xml">
<credentials host="archivaHost:archivaPort"
realm="Repository Archiva Managed Internal Repository" username="upload"
passwd="upload2" />
</ivy:settings>
<ivy:publish organisation="${organisation}" module="${module}"
revision="${version}" resolver="chained"
artifactspattern="dist/[artifact]-[revision].[ext]" overwrite="true"
validate="false" publishivy="false"/>
Ivy-settings:
<resolvers>
<chain name="chained" returnFirst="true">
<ibiblio name="local"
root="archivaHost:archivaPort/archiva/repository/internal/"
m2compatible="true"/>
</chain>
<filesystem name="dist">
<artifact
pattern="${basedir}/dist/[artifact]-[revision].[ext]"/>
</filesystem>
</resolvers>
Do I have to set the Authentication Paramters in a diffrent way? Any
idea?
Thanks,
Stefan