maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Keller (JIRA)" <>
Subject [jira] [Commented] (MNG-6652) Offline mode not working
Date Thu, 02 May 2019 19:32:00 GMT


Joseph Keller commented on MNG-6652:

There is no way I can do that - we have to use Artifactory as a proxy per company policy. 
 Furthermore, how could it affect it when building in "offline" mode.   The repo manager
should not be involved at all. 

This is a new problem.   We have been using this technique for years but now we have added
some code/dependencies and thus we have this problem.

> Offline mode not working
> ------------------------
>                 Key: MNG-6652
>                 URL:
>             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 in "offline" mode.   I can build a POM fine normally
(not using offline mode) and this should populate the local cache with all the dependencies,
correct?   But if I IMMEDIATLY run the same build with "-o" it fails because it can't find
one of the dependencies.  Shouldn't this work?
>  mvn  clean package          - works and populates local cache
>  mvn  -o clean package     - fails with following error
> Failed to execute goal on project nifi-hadoop-utils: Could not resolve dependencies for
project org.apache.nifi:nifi-hadoop-utils:jar:1.7.1: Cannot access actu-libs ([])
in offline mode and the artifact net.minidev:json-smart:jar:2.3 has not been downloaded from
it before. -> [Help 1]
>  I look at the cache and the jar is there and it is used previously in the build - here
are some messages
> [DEBUG]   (f) testPath = [D:\test\src\Server\nifi\nifi-nar-bundles\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:\test\.m2\repository\javax\activation\activation\1.1\activation-1.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\accessors-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.jar,
> [INFO] Copying json-smart-2.3.jar to D:\test\src\Server\nifi\nifi-nar-bundles\nifi-framework-bundle\nifi-framework-nar\target\classes\META-INF\bundled-dependencies\json-smart-2.3.jar
> Any ideas what is going on?

This message was sent by Atlassian JIRA

View raw message