Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6652

Offline mode not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.3.3, 3.6.1
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      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 (http://ausartprd01.opentext.net:8081/artifactory/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\com\github\stephenc\jcip\jcip-annotations\1.0-1\jcip-annotations-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\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?

        Attachments

        1. repo.zip
          193 kB
          Joseph Keller
        2. offline.log
          464 kB
          Joseph Keller

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              jtk79 Joseph Keller
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: