Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Maven build is failing due to artifact transfer issue.

sangrampatil111
Level 2
Level 2

Failed to execute goal on project dentsply-webapp-hybris-api: Could not resolve dependencies for project com.epam.dentsply:dentsply-webapp-hybris-api:bundle:3.0.1: Could not transfer artifact com.adobe.granite.bundles:json:jar:20090211_1 from/to adobe (http://repo.adobe.com/nexus/content/groups/public/😞 Failed to transfer file: http://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/bundles/json/20090211_1/json-200.... Return code is: 400 , ReasonPhrase:Bad Request. -> [Help 1]

1 Accepted Solution
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

Instead of  http://repo.adobe.com/nexus/content/groups/public/

try using  https://repo.adobe.com/nexus/content/groups/public/

 

it should solve your issue.

Hope this will help

Umesh Thakur

View solution in original post

4 Replies
Prince_Shivhare
Community Advisor
Community Advisor

@sangrampatil111 

your error itself saying that the url is not available currently.

If you find any such issues in future as well, try to check the jar file with same version which you are using in POM in adobe repository.

Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

Instead of  http://repo.adobe.com/nexus/content/groups/public/

try using  https://repo.adobe.com/nexus/content/groups/public/

 

it should solve your issue.

Hope this will help

Umesh Thakur

View solution in original post

sangrampatil111
Level 2
Level 2

But where to change it. Means in which file or files need to do above change?

Umesh_Thakur
Community Advisor
Community Advisor

that should be your settings.xml file in your .m2 or m3 directory.

in above mentioned file you  will have one profile section there you can see url for <repository> and <pluginReposotory>. 

Just you need to update the url for the same.

Hope this helps.

Umesh Thakur

Umesh_Thakur
Community Advisor
Community Advisor

okeeeey, Can you please share the entire stacktrace of the error then?

and which maven command you are using?

sangrampatil111
Level 2
Level 2

Sorryy!!! Not possible to share full stack trace due to privacy issue.I have made changes

you told.  But URL is not changing. http is not changing to https.

 

MVN cmd: mvn clean install -Pauto-deploy -DskipTests=true

Error: 

Failed to execute goal on project XYZ: Could not resolve dependencies for project com.epam.dentsply:XYZ:bundle:3.0.1: Could not transfer artifact com.adobe.granite.bundles:json:jar:20090211_1 from/to adobe (http://repo.adobe.com/nexus/content/groups/public/ Failed to transfer file: http://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/bundles/json/20090211_1/json-200.... Return code is: 400 , ReasonPhrase:Bad Request.