Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1872

brmsgw fails building a jar - trafficgenerator dependency does not exist

XMLWordPrintable

      While doing regression testing, It seems the policy-models cleaned up that deleted the trafficgenerator library,  broke brmsgw as the dependency wasn't removed from dependency.json. 

      Downloaded from central: https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar (575 kB at 427 kB/s)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 03:02 min
      [INFO] Finished at: 2019-06-26T21:18:04Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project policy-amsterdam-rules: Could not resolve dependencies for project org.onap.policy-engine.drools.amsterdam:policy-amsterdam-rules:jar:0.1.0: Could not find artifact org.onap.policy.models.policy-models-interactions.model-impl:trafficgenerator:jar:2.0.0 in onap-releases (https://nexus.onap.org/content/repositories/releases/) -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
      [DEV: 2019-Jun-26 21:18:05,017][INFO ][WebSocketConnectReadThread-31]Clearing Cache
      [DEV: 2019-Jun-26 21:18:05,017][INFO ][WebSocketConnectReadThread-31]Checking Datatbase for BackUpMonitor..
      [DEV: 2019-Jun-26 21:18:05,018][INFO ][WebSocketConnectReadThread-31]Refreshing Entity.
      [DEV: 2019-Jun-26 21:18:05,018][INFO ][WebSocketConnectReadThread-31]Resource Name already Exists: brmsgw_1
      [DEV: 2019-Jun-26 21:18:05,018][INFO ][WebSocketConnectReadThread-31]brmsgw_1 is on Master Mode
      21:18:05,601 |-INFO in ReconfigureOnChangeTask(born:1561529006599) - Empty watch file list. Disabling
      [WARN] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
      [INFO] Scanning for projects...
      [INFO]
      [INFO] --< org.onap.policy-engine.drools.amsterdam:policy-amsterdam-rules >--
      [INFO] Building amsterdam 0.1.0
      [INFO] -------------------------------[ jar ]--------------------------------
      Downloading from onap-staging: https://nexus.onap.org/content/repositories/staging/org/onap/policy/models/policy-models-interactions/model-impl/trafficgenerator/2.0.0/trafficgenerator-2.0.0.pom
      21:18:08,601 |-INFO in ReconfigureOnChangeTask(born:1561529006599) - Empty watch file list. Disabling
      Downloading from policy-nexus-releases: http://nexus:8081/nexus/content/repositories/releases/org/onap/policy/models/policy-models-interactions/model-impl/trafficgenerator/2.0.0/trafficgenerator-2.0.0.pom
      [WARNING] The POM for org.onap.policy.models.policy-models-interactions.model-impl:trafficgenerator:jar:2.0.0 is missing, no dependency information available
      Downloading from onap-staging: https://nexus.onap.org/content/repositories/staging/org/onap/policy/models/policy-models-interactions/model-impl/trafficgenerator/2.0.0/trafficgenerator-2.0.0.jar
      Downloading from policy-nexus-releases: http://nexus:8081/nexus/content/repositories/releases/org/onap/policy/models/policy-models-interactions/model-impl/trafficgenerator/2.0.0/trafficgenerator-2.0.0.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.760 s
      [INFO] Finished at: 2019-06-26T21:18:09Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project policy-amsterdam-rules: Could not resolve dependencies for project org.onap.policy-engine.drools.amsterdam:policy-amsterdam-rules:jar:0.1.0: Failure to find org.onap.policy.models.policy-models-interactions.model-impl:trafficgenerator:jar:2.0.0 in https://nexus.onap.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of onap-releases has elapsed or updates are forced -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]

      Removing manually the dependency from the pom.xml (in turn from the dependency.json) that brmsgw uses seems would fix the problem.

      This presents a problem for use cases that are only supported in the legacy mode.

       

            pdragosh pdragosh
            jhh jhh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: