[ 
https://issues.apache.org/jira/browse/HBASE-25760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318536#comment-17318536
 ] 

Viraj Jasani commented on HBASE-25760:
--------------------------------------

Thanks for filing this [~dasanjan1296].

[~psomogyi] [~stack] wondering if you have faced this issue of creating (and 
uploading) source jar twice and hence uploading to nexus failing with 400 
because source jar already exists.

[~apurtell]

> Duplicate uploads for hbase-shaded-protobuf sources jar causing nexus deploy 
> failure
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-25760
>                 URL: https://issues.apache.org/jira/browse/HBASE-25760
>             Project: HBase
>          Issue Type: Bug
>          Components: thirdparty
>            Reporter: Anjan Das
>            Assignee: Anjan Das
>            Priority: Major
>
> There are two configurations in 
> [pom.xml|https://github.com/apache/hbase-thirdparty/blob/master/hbase-shaded-protobuf/pom.xml]
>  of hbase-shaded-protobuf that create the sources jar. Here is 
> [one|https://github.com/apache/hbase-thirdparty/blob/ccc49e6a78a00e61fa49f1292ace2f8bde28c54e/hbase-shaded-protobuf/pom.xml#L150]
>  in the maven-shade-plugin and 
> [other|https://github.com/apache/hbase-thirdparty/blob/ccc49e6a78a00e61fa49f1292ace2f8bde28c54e/hbase-shaded-protobuf/pom.xml#L133]
>  in maven-source-plugin(introduced in HBASE-18313)
> After removing the one from maven-shade-plugin, viz. 
> <createSourcesJar>true</createSourcesJar>, we are able to successfully deploy 
> as it generates source jar only once.
>  
> Error stacktraces:
> Failed to execute goal 
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on 
> project hbase-shaded-protobuf: Failed to deploy artifacts: Could not transfer 
> artifact org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:sources:3.5.1 
> from/to nexus 
> ([https://nexus.xyz.com/nexus/content/repositories/hbase/):|https://nexus.soma.salesforce.com/nexus/content/repositories/salesforce-hbase/):]
>  Transfer failed for 
> [https://nexus.xyz.com/nexus/content/repositories/hbase/org/apache/hbase/thirdparty/hbase-shaded-protobuf/3.5.1/hbase-shaded-protobuf-3.5.1-sources.jar|https://nexus.soma.salesforce.com/nexus/content/repositories/salesforce-hbase/org/apache/hbase/thirdparty/hbase-shaded-protobuf/3.5.1-sfdc-1.0.3/hbase-shaded-protobuf-3.5.1-sfdc-1.0.3-sources.jar]
>  400 Bad Request -> [Help 1]
>  
> Build Commands: 
> mvn org.codehaus.mojo:versions-maven-plugin:2.7:set 
> -DgenerateBackupPoms=false -DoldVersion='\''*'\'' -DnewVersion='\''3.5.1'\'''
> mvn -X -e -nsu clean deploy -DadditionalJOption=-Xdoclint:none -DskipTests
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to