[
https://issues.apache.org/jira/browse/WAGON-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696797#comment-15696797
]
Dan Tran edited comment on WAGON-468 at 11/28/16 7:02 AM:
----------------------------------------------------------
see https://github.com/mojohaus/wagon-maven-plugin/issues/8
was (Author: dantran):
see https://github.com/mojohaus/wagon-maven-plugin/issues/6
> settings.xml server httpConfiguration ignored
> ---------------------------------------------
>
> Key: WAGON-468
> URL: https://issues.apache.org/jira/browse/WAGON-468
> Project: Maven Wagon
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: Jakub Bochenski
> Assignee: Dan Tran
> Priority: Blocker
>
> Since Jenkins requires preemptive authentication I've
> configured{{httpClient}} provder in {{settings.xml}} to provide it.
> This works fine with "usual" maven artifact resolution, as well as with
> {{dependency:get}} etc.
> {code}<settings xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0
> http://maven.apache.org/xsd/settings-1.1.0.xsd">
> <localRepository
> xmlns="http://maven.apache.org/SETTINGS/1.1.0">/home/jbochenski/.m2/repository</localRepository>
> <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
> <server>
> <username>jbochenski</username>
> <password>***</password>
> <configuration>
> <wagonProvider>httpclient</wagonProvider>
> <httpConfiguration>
> <all>
> <usePreemptive>true</usePreemptive>
> </all>
> </httpConfiguration>
> </configuration>
> <id>jenkins</id>
> </server>
> </servers>
> <pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0">
> <pluginGroup>org.apache.maven.plugins</pluginGroup>
> <pluginGroup>org.codehaus.mojo</pluginGroup>
> </pluginGroups>
> </settings>
> {code}
> However {{wagon:list}} fails with {{Failed to execute goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:list (default-cli) on project
> standalone-pom: Error handling resource: Access denied to: <url>}}
> {code}ClassRealm[plugin>org.codehaus.mojo:wagon-maven-plugin:1.0, parent:
> sun.misc.Launcher$AppClassLoader@55f96302]
> [DEBUG] Configuring mojo 'org.codehaus.mojo:wagon-maven-plugin:1.0:list' with
> basic configurator -->
> [DEBUG] (f) caseSensitive = true
> [DEBUG] (f) includes = *
> [DEBUG] (f) project = MavenProject: org.apache.maven:standalone-pom:1 @
> [DEBUG] (f) serverId = jenkins
> [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5215cd9a
> [DEBUG] (f) skip = false
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)