1
0
-1

hi,
I am following local setup of appc using URL from https://wiki.onap.org/pages/viewpage.action?pageId=6590586

for Deploying the APP-C Core Maven Artifacts to Local Nexus 2 Repository.


Here clean install works and build is successful for appc core module.
But "clean deploy" is not working for me. I have made the changes mentioned in appc/pom.xml & onap_settings.xml. Still I am getting below error while "clean deploy"

"clean deploy" is successful for all  appc modules except "APPC DG Util - Karaf Installer"

[INFO] appc-dg-util-features .............................. SUCCESS [  0.580 s]
[INFO] APPC DG Util - Karaf Installer ..................... FAILURE [02:01 min]

PFB the error details.

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project appc-dg-util-installer: Failed to retrieve remote metadata org.openecomp.appc:appc-dispatcher-features:1.1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata org.openecomp.appc:appc-dispatcher-features:1.1.0-SNAPSHOT/maven-metadata.xml from/to openecomp-snapshot (http://localhost:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://localhost:8081/nexus/content/repositories/snapshots/org/openecomp/appc/appc-dispatcher-features/1.1.0-SNAPSHOT/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable. -> [Help 1]


    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      If Atul's answer does not work, double check that your Nexus 2 Repo is active and ready to accept requests on the port your build is sending requests on.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Solve above problem by adding  <nonProxyHosts>localhost</nonProxyHosts> in maven settings.xml for proxy setting. So clean deploy is successful.

          CommentAdd your comment...