ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Marks <>
Subject Newbie credentials problems
Date Mon, 13 Apr 2009 04:06:06 GMT
Hi all,
I'm having some issues trying to publish an artifact to a local Artifactory
repository and need a bit of help understanding how to apply credentials for
deployment.  I've set up Artifactory to allow anonymous retrieve, but
requires a user account to deploy an artifact.
The result of my publish target in my ant build script is:
"Access to URL
refused by the server: Unauthorized"

This looks like an authorization error, but I think it's an authentication
error.  I can use the account through the web interface to deploy a jar

My settings file looks like:
    <settings defaultResolver="mainChain" />
    <include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
    <credentials host="localhost" username="user" passwd="password"/>
        <url name="publish_artifactory" m2compatible="true">

The contents of my ant publish target is:

<ivy:publish resolver="publish_artifactory" pubrevision="${project.version}"
        <artifacts pattern="${dist.packageDir}/[artifact].[ext]" />

Within Artifactory, it shows the account I'm using has deploy permissions on
the repository.

I'm using Ivy 2.1.0 rc1.  The documentation for the credentials element
doesn't give an example, and all of the general examples don't seem to show
a private repository other than on the local file system.  Somewhere I read
that if I use credentials, I should add Commons HttpClient to my executing
classpath.  I've added HttpClient 3.1, but still no luck.

Thoughts on what I'm doing wrong or need to change?

Thanks in advance,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message