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

Andrew Kyle Purtell commented on HBASE-25760:
---------------------------------------------

[~stack][~psomogyi] We are trying to build HBase, the same way as 
create-release scripts do, internally, and are finding that Maven tries to 
deploy a source jar twice to Nexus, so the build fails at deploy with 400. Why 
haven't we seen this with Apache nexus, I wonder? Maybe there is a remote side 
setting that is different. Anyway, [~vjasani] is wondering if you've ever faced 
this at some point. 

> 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