Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6A755200C88 for ; Fri, 2 Jun 2017 09:11:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 68C0C160BDD; Fri, 2 Jun 2017 07:11:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AE2BA160BD2 for ; Fri, 2 Jun 2017 09:11:08 +0200 (CEST) Received: (qmail 17114 invoked by uid 500); 2 Jun 2017 07:11:07 -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 16961 invoked by uid 99); 2 Jun 2017 07:11:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2017 07:11:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C532D1A026D for ; Fri, 2 Jun 2017 07:11:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id z1ncySMX8avN for ; Fri, 2 Jun 2017 07:11:05 +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 473285F5B7 for ; Fri, 2 Jun 2017 07:11:05 +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 AFAD8E05CE for ; Fri, 2 Jun 2017 07:11:04 +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 24D9F21B56 for ; Fri, 2 Jun 2017 07:11:04 +0000 (UTC) Date: Fri, 2 Jun 2017 07:11:04 +0000 (UTC) From: "Tom Wieczorek (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MDEP-569) copy fails on artifacts previously downloaded via get from repo specified via CLI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Jun 2017 07:11:09 -0000 [ https://issues.apache.org/jira/browse/MDEP-569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034251#comment-16034251 ] Tom Wieczorek edited comment on MDEP-569 at 6/2/17 7:10 AM: ------------------------------------------------------------ I see. Thanks for the explanation. It indeed works with the {{\-\-legacy-local-repository}} command line switch. Given that Maven 3 will always verify repositories, would it make sense to also add {{\-DremoteRepositories}} support to the copy goal? Then it should work without {{\-\-legacy-local-repository}}, right? was (Author: tom@bibbu.net): I see. Thanks for the explanation. It indeed works with the {{--legacy-local-repository}} command line switch. Given that Maven 3 will always verify repositories, would it make sense to also add {{-DremoteRepositories}} support to the copy goal? Then it should work without {{--legacy-local-repository}}, right? > copy fails on artifacts previously downloaded via get from repo specified via CLI > --------------------------------------------------------------------------------- > > Key: MDEP-569 > URL: https://issues.apache.org/jira/browse/MDEP-569 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: copy, get > Affects Versions: 3.0.1 > Environment: Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T19:39:06Z) > Maven home: /usr/share/maven > Java version: 1.8.0_121, vendor: Oracle Corporation > Java home: /usr/lib/jvm/java-1.8-openjdk/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.8.0-52-generic", arch: "amd64", family: "unix" > Reporter: Tom Wieczorek > Attachments: dependency-copy-problem-output.txt > > > {{dependency:copy}} fails to copy artifacts that were previously downloaded via {{dependency:get}} from a remote repository that has been specified on the command line. The error message is: > bq. The POM for artifact is missing, no dependency information available > and later on > bq. Failed to execute goal dependency:copy (default-cli) on project standalone-pom: Unable to find/resolve artifact. Failure to find artifact in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced > But: {{dependency:get}} actually succeeded and the artifact and its POM are in the local repo. > {code:none|title=Reproducing shell snippet} > mvn -version > mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.1:get \ > org.apache.maven.plugins:maven-dependency-plugin:3.0.1:copy \ > -DremoteRepositories=http://packages.confluent.io/maven/ \ > -Dartifact=io.confluent:kafka-schema-registry:3.1.1 > ls -la ~/.m2/repository/io/confluent/kafka-schema-registry/3.1.1 > {code} > I've attached the output of the above test snippets. -- This message was sent by Atlassian JIRA (v6.3.15#6346)