Anjan Das created HBASE-25760:
---------------------------------
Summary: 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
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]https://issues.apache.org/jira/browse/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-sfdc-1.0.3
from/to nexus
(https://nexus.soma.salesforce.com/nexus/content/repositories/salesforce-hbase/):
Transfer failed for
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-sfdc-1.1.4'\'''
mvn -X -e -nsu clean deploy -DadditionalJOption=-Xdoclint:none -DskipTests
-DskipTests
--
This message was sent by Atlassian Jira
(v8.3.4#803005)