You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jakub Bochenski (JIRA)" <ji...@apache.org> on 2016/12/01 12:37:58 UTC
[jira] [Commented] (WAGON-468) settings.xml server
httpConfiguration ignored
[ https://issues.apache.org/jira/browse/WAGON-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15711862#comment-15711862 ]
Jakub Bochenski commented on WAGON-468:
---------------------------------------
[~dantran] it's failing with {code}$ mvn -Dwagon.url=https://jenkins.acme-internal.com/plugin/repository/project/acme-Installer-DSL/Build/1828/repository org.codehaus.mojo:wagon-maven-plugin:1.1-SNAPSHOT:list -Dwagon.serverId=jenkins
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- wagon-maven-plugin:1.1-SNAPSHOT:list (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.613 s
[INFO] Finished at: 2016-12-01T13:36:11+01:00
[INFO] Final Memory: 12M/236M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.1-SNAPSHOT:list (default-cli) on project standalone-pom: Unable to create a Wagon instance for https://jenkins.acme-internal.com/plugin/repository/project/acme-Installer-DSL/Build/1828/repository: While configuring wagon for 'jenkins': Unable to apply wagon configuration. Component does not implement interface org.codehaus.plexus.component.MapOrientedComponent{code}
> 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)