The error message contains snippet "from/to ecomp-snapshots" indicating that 
"ecomp-snapshots" was the server ID used.

It then says the error was "Unauthorized", it means that it has successfully 
communicated with the server, but the server rejected the upload.  Usually 
"Unauthorized" means that the groupId for the artifacts being uploaded does not 
match what Nexus was configured to accept for artifacts coming from that repo.

Usually this means that the groupId specified in the POM is wrong.  Sometimes 
the LF configuration of Nexus for the groupId check is wrong.  

I agree that the error message is hard to understand; not sure if there are 
ways of getting that plugin to log more usefully information.

Thanks,
Gary


-----Original Message-----
From: LOTT, CHRISTOPHER M (CHRISTOPHER) [mailto:cl...@research.att.com] 
Sent: Tuesday, September 05, 2017 8:16 AM
To: Gary Wu <gary.i...@huawei.com>
Cc: Jessica Wagantall <jwagant...@linuxfoundation.org>; TALASILA, MANOOP 
(MANOOP) <talas...@research.att.com>; Andrew Grimberg 
<agrimb...@linuxfoundation.org>; helpd...@onap.org
Subject: Re: [confluence] Developer Wiki > O-Parent (oparent)

If I may please ask a closely related question - would you advise if there's a 
way to make the Maven-Staging plugin emit a bit more output.  Here's the output 
from the Portal/SDK job that failed deployment:

   
https://logs.onap.org/production/vex-yul-ecomp-jenkins-1/portal-sdk-master-ecomp-sdk-merge-java/12/console.log.gz

It would be enormously helpful if the maven staging plugin (which seems to 
override the old maven-deploy-plugin) could emit the Server ID that it's using. 
 I see some lines indicating that it ran, and then an error message:

[ERROR] Failed to execute goal 
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy 
(injected-nexus-deploy) on project epsdk-app-overlay: Failed to deploy 
artifacts: Could not transfer artifact 
org.onap.portal.sdk:epsdk-core:jar:1.4.0-20170831.201023-1 from/to 
ecomp-snapshots (https://nexus.onap.org/content/repositories/snapshots/): 
Failed to transfer file: 
https://nexus.onap.org/content/repositories/snapshots/org/onap/portal/sdk/epsdk-core/1.4.0-SNAPSHOT/epsdk-core-1.4.0-20170831.201023-1.jar.
 Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]




> On Sep 5, 2017, at 10:19 AM, Gary Wu <gary.i...@huawei.com> wrote:
> 
> Hi Jessica,
> 
> Can you confirm what server IDs we need to use for the distributionManagement 
> blocks in Maven?  You had told me before that they should have the ecomp- 
> prefix.  Has this changed?
> 
> Thanks,
> Gary
> 
> 

_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to