Issue
My Azure Pipeline build fails with the following errror:
Failed to collect dependencies at org.apache.commons:commons-lang3:jar:3.8.1: Failed to read artifact descriptor for org.apache.commons:commons-lang3:jar:3.8.1: Could not transfer artifact org.apache.commons:commons-lang3:pom:3.8.1 from/to SDC_MvnRepo (https://pkgs.dev.azure.com/XXX/XXX/_packaging/SDC_MvnRepo/maven/v1): Transfer failed for https://pkgs.dev.azure.com/XXX/XXX/_packaging/SDC_MvnRepo/maven/v1/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.pom: Connection reset -> [Help 1]
However if I copy and paste the url for the pom it downloads fine to my local machine.
Pipeline is being built by Project Collection Service Accounts. I have added it as a Contributor to the feed. Build still fails with the same message:
Solution
Had to add -Dhttps.protocols=TLSv1.2 to my maven command in the Azure Pipeline build. Logs really didn't indicate the true issue
Answered By - headlikearock
Answer Checked By - Katrina (JavaFixing Volunteer)