From issues-return-134328-archive-asf-public=cust-asf.ponee.io@maven.apache.org Mon Jun 25 17:58:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D95118066B for ; Mon, 25 Jun 2018 17:58:03 +0200 (CEST) Received: (qmail 75892 invoked by uid 500); 25 Jun 2018 15:58:03 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 75881 invoked by uid 99); 25 Jun 2018 15:58:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2018 15:58:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9B6D2180926 for ; Mon, 25 Jun 2018 15:58:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8yxCeOXDbzIN for ; Mon, 25 Jun 2018 15:58:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 89C965F4A3 for ; Mon, 25 Jun 2018 15:58:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ED3F8E09EB for ; Mon, 25 Jun 2018 15:58:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3A75A23F98 for ; Mon, 25 Jun 2018 15:58:00 +0000 (UTC) Date: Mon, 25 Jun 2018 15:58:00 +0000 (UTC) From: "Martin Formanko (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6433) Maven does not authenticate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-6433?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165224= 61#comment-16522461 ]=20 Martin Formanko commented on MNG-6433: -------------------------------------- Yes, I got it working by disabling mirrors completely and defining just and defining credentials for each of them. It is kind of workar= ound but it works. > Maven does not authenticate=20 > ---------------------------- > > Key: MNG-6433 > URL: https://issues.apache.org/jira/browse/MNG-6433 > Project: Maven > Issue Type: Bug > Affects Versions: 3.5.4 > Environment: Windows 10, JFrog artifactory > Reporter: Martin Formanko > Priority: Major > > I have set the username and password in settings.xml (encrypted and also = plain-text the same behaviour). In debug logs I also see the following: > =C2=A0 > {code:java} > [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for ht= tp://[censored]/artifactory/repo with username=3D[censored], password=3D*** > Downloading from repo: http://[censored]/artifactory/repo/com/[censored].= pom{code} > =C2=A0 > =C2=A0 > but maven itself does not authenticate, from what I see in network dump: > =C2=A0 > {code:java} > GET /artifactory/[censored].pom HTTP/1.1 > Cache-control: no-cache > Cache-store: no-store > Pragma: no-cache > Expires: 0 > Accept-Encoding: gzip > User-Agent: Apache-Maven/3.5.4 (Java 1.8.0_161; Windows 10 10.0) > Host: [censored] > Connection: Keep-Alive > HTTP/1.1 404 Not Found > Server: Artifactory/5.11.1 > X-Artifactory-Id: [censored]c:-8000 > Content-Type: application/json;charset=3DISO-8859-1 > Content-Length: 74 > Date: Mon, 25 Jun 2018 14:28:17 GMT > {code} > =C2=A0 > So... then I am getting > {code:java} > [FATAL] Non-resolvable parent POM for [censored]: Could not find artifact= {code} > Because Maven is awaiting maybe 407 authentication required or some simil= ar status code. Is this correct behaviour? Should our artifactory request t= he username/password? Because what it does, is that it replies with 404 whe= n authentication is not done. > My settings.xml are not important I think, because as you can see in the = log, there is BasicConnector which is using already the username/password, = so the settings are correct, but maven simply does not use any credentials = at all and tries to grab artifact directly which fails with FATAL error. -- This message was sent by Atlassian JIRA (v7.6.3#76005)