Jenkins Java job build failure and Return code is: 401, ReasonPhrase: Unauthorized

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      While running/building the java job in Jenkins, build is failed and the console output contains the errors.

      Error description is given as follows:
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project MeterToGridAgile: Failed to deploy artifacts: Could not transfer artifact com.sce.m2g:MeterToGridAgile:war:1.0.5-20210330.094538-4 from/to nexus-snapshots (http://xxxxxxxxxxxxxxx/repository/sce-snapshot/): Failed to transfer file: http://xxxxxxxxxxxxxx/repository/sce-snapshot/com/sce/m2g/MeterToGridAgile/1.0.5-SNAPSHOT/MeterToGridAgile-1.0.5-20210330.094538-4.war. Return code is: 401, ReasonPhrase: Unauthorized. -> [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/MojoExecutionException
      Build step 'Invoke top-level Maven targets' marked build as failure
      Finished: FAILURE

            Assignee:
            Deepthi
            Reporter:
            Deepthi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: