Hi Phil

Besides the change in DSL syntax, I don't think anything changed with
respect to setting credentials on an ivy repository between M5 and M6. The
main change was adding this support to maven repositories.

Can you please:
- Elaborate on which versions work for you, and which don't
- Try using the old, deprecated syntax for setting username and password on
an ivy repository. (Please note the old syntax was "userName" and the new
syntax is "username")

Thanks
Daz

On 25 November 2011 09:15, phil.messenger <[email protected]>wrote:

> Hi,
>
> I can't get credentials to work for Ivy repositories now.
>
> The repositories are on Nexus. With the configuration below I can access a
> Maven format repository, but get 401 errors for the Ivy repository (both on
> the same server):
>
>
> repositories {
>        ivy {
>                credentials {
>                        username "username"
>                        password "password"
>                }
>                artifactPattern
> "
> https://server/nexus/content/repositories/releases/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]
> "
>                ivyPattern
> "
> https://server/nexus/content/repositories/releases/[organisation]/[module]/[revision]/ivy-[revision].xml
> "
>        }
>
>
>        maven {
>                name "GlobalDawn repo"
>                url "https://server/nexus/content/groups/public/";
>                credentials {
>                        username "username"
>                        password "password
>                }
>        }
> }
>
>
> 16:13:01.178 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] try to get
> credentials for: Sonatype Nexus Repository Manager@server
> 16:13:01.178 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
> authentication: k='Sonatype Nexus Repository Manager@server' c='null'
> 16:13:01.179 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] HTTP
> response status: 401
> url=
> https://server/nexus/content/repositories/releases/com.globaldawn.common.develop/common-spring/
> 16:13:01.179 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] CLIENT
> ERROR: Unauthorized
> url=
> https://server/nexus/content/repositories/releases/com.globaldawn.common.develop/common-spring/
> 16:13:01.179 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] problem
> while listing resources in
>
> https://server/nexus/content/repositories/releases/com.globaldawn.common.develop/common-spring/
> with ivy:
> 16:13:01.180 [DEBUG]
> [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
> java.io.IOException The HTTP response code for
>
> https:/server/nexus/content/repositories/releases/com.globaldawn.common.develop/common-spring/
> did not indicate a success. See log for more detail.
>
> Any clues? Or is this a bug?
>
> Phil.
>
>

Reply via email to