Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug stuck maven dependency download in Bitbucket Pipelines

Piercarlo Slavazza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2020

In a Bitbucket Pipeline build, I have a maven step which downloads a dependency from an SSH Maven respository operated by me.

The dependency is downloaded via scp.

When Maven tries to download it (via wagon ssh), it remains stuck.

I have added a test script as a step which just download via scp the pom.xml in order to check for autenthication problems and alike, but it is working fine (it connects, and download the pom.xml w/o errors).

Any hint about debugging it?

2 answers

1 accepted

0 votes
Answer accepted
Piercarlo Slavazza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2020

By using:

- export MAVEN_OPTS="$MAVEN_OPTS -Djavax.net.debug=ssl"

I spotted an exception in some TLS code which suggested me that it had to be a wagon version issue.

And indeed upgrading the wagon extension to 3.3.4 solved the problem.

0 votes
Jack Nolddor _Sweet Bananas_
Atlassian Partner
March 29, 2020

Hi Piercarlo,

Sadly I don't know to help you with your SSH problem but...

Why don't just configure your private maven repository using a custom settings.xml as desribed on Java with Bitbucket Pipelines page and let the maven downloads the depencency in the same way they download maven central dependencies and get rid of ssh at all?

 

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events