From issues-return-148801-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu May 2 16:54:03 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C8912180671 for ; Thu, 2 May 2019 18:54:02 +0200 (CEST) Received: (qmail 9338 invoked by uid 500); 2 May 2019 16:54:01 -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 9247 invoked by uid 99); 2 May 2019 16:54:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2019 16:54:01 +0000 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 A82DDE2B89 for ; Thu, 2 May 2019 16:54: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 40F1C25815 for ; Thu, 2 May 2019 16:54:00 +0000 (UTC) Date: Thu, 2 May 2019 16:54:00 +0000 (UTC) From: "Michael Osipov (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6652) Offline mode not working 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-6652?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168317= 61#comment-16831761 ]=20 Michael Osipov commented on MNG-6652: ------------------------------------- HAve you tried without a repo manager? This could be Maven Resolver related= . > Offline mode not working > ------------------------ > > Key: MNG-6652 > URL: https://issues.apache.org/jira/browse/MNG-6652 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.3.3, 3.6.1 > Reporter: Joseph Keller > Priority: Major > > We are having problems building=C2=A0in "offline" mode.=C2=A0=C2=A0 I can= build a POM fine normally (not using offline mode) and this should populat= e the local cache with all the dependencies, correct?=C2=A0=C2=A0 But if I = IMMEDIATLY run the same build with "-o" it fails because it can't find one = of the dependencies.=C2=A0 Shouldn't this work? > =C2=A0mvn=C2=A0 clean package=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = =C2=A0- works and populates local cache > =C2=A0mvn=C2=A0 -o clean package=C2=A0=C2=A0=C2=A0=C2=A0 - fails with fol= lowing error > Failed to execute goal on project nifi-hadoop-utils: Could not resolve de= pendencies for project org.apache.nifi:nifi-hadoop-utils:jar:1.7.1: Cannot = access actu-libs ([http://ausartprd01.opentext.net:8081/artifactory/actu-li= bs]) in offline mode and the artifact net.minidev:json-smart:jar:2.3 has no= t been downloaded from it before. -> [Help 1] > =C2=A0I look at the cache and the jar is there and it is used previously = in the build - here are some messages > [DEBUG]=C2=A0=C2=A0 (f) testPath =3D [D:\test\src\Server\nifi\nifi-nar-bu= ndles\nifi-framework-bundle\nifi-framework-nar\target\test-classes ...., d:= \test\.m2\repository\com\nimbusds\oauth2-oidc-sdk\5.34.2\oauth2-oidc-sdk-5.= 34.2.jar, d:\test\.m2\repository\javax\mail\mail\1.4.7\mail-1.4.7.jar, d:\t= est\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar, d:\t= est\.m2\repository\com\github\stephenc\jcip\jcip-annotations\1.0-1\jcip-ann= otations-1.0-1.jar, *d:\test\.m2\repository\net\minidev\json-smart\2.3\json= -smart-2.3.jar*, d:\test\.m2\repository\net\minidev\accessors-smart\1.2\acc= essors-smart-1.2.jar, d:\test\.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.= 4.jar, d:\test\.m2\repository\com\nimbusds\lang-tag\1.4.3\lang-tag-1.4.3.ja= r, ... > [INFO] Copying json-smart-2.3.jar to D:\test\src\Server\nifi\nifi-nar-bun= dles\nifi-framework-bundle\nifi-framework-nar\target\classes\META-INF\bundl= ed-dependencies\json-smart-2.3.jar > =C2=A0 > Any ideas what is going on? -- This message was sent by Atlassian JIRA (v7.6.3#76005)