Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploy Artifacts from Ivy to Archiva
    text
    copied!<p>Is there anyone have tested how to deploy artifacts within Archiva which security enabled. I have the following configuration</p> <p>My ivysettings.xml</p> <pre><code>&lt;ivysettings&gt; &lt;settings defaultResolver="archiva"/&gt; &lt;resolvers&gt; &lt;ibiblio name="archiva" m2compatible="true" root="http://localhost:8080/archiva/repository/internal/[organization]/[module]/[revision]/[artifact]-[revision].[ext]"/&gt; &lt;/resolvers&gt; &lt;/ivysettings&gt; </code></pre> <p>My build.xml</p> <pre><code>&lt;target name="ivy-init"&gt; &lt;ivy:settings file="${ivy.settings.dir}/ivysettings.xml" refid="ivy.classpath"&gt; &lt;credentials host="localhost" realm="Repository Archiva Managed Internal Repository" username="deploy_user" passwd="deploy_pwd" /&gt; &lt;/ivy:settings&gt; &lt;/target&gt; &lt;target name="deploy2Archiva" depends="jar,local-maven-version"&gt; &lt;ivy:makepom ivyfile="${ivy.file}" pomfile="dist/demo-core.pom"&gt; &lt;mapping conf="compile" scope="compile"/&gt; &lt;mapping conf="test" scope="test"/&gt; &lt;/ivy:makepom&gt; &lt;ivy:publish resolver="public" pubrevision="${version}" overwrite="true" pubdate="${now}" status="release" forcedeliver="true" artifactspattern="${dist.dir}/[artifact].[ext]"/&gt; &lt;/target&gt; </code></pre> <p>My Archiva deploy_user has the 'Repository Manager' Archiva role but I get an unauthorized message. In fact, the credentials doesn't seem to be into account because if I set the 'Repository Manager' to the guest Archiva user (unauthenticated user), the artifacts are deployed.</p> <p>Archiva uses the protocol webdav. Have you got experimented credentials with an Ivy webdav resolver? Any thoughts on this?</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