spring-boot-mysql-rest-api-tutorial icon indicating copy to clipboard operation
spring-boot-mysql-rest-api-tutorial copied to clipboard

Dependencies could not be resolved:

Open berthelrob opened this issue 2 years ago • 3 comments

When I tried to execute the command below, I get the error:

Command: #mvn -f /opt/notes/pom.xml package

Error: [ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.5.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.5.5: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.5.5 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.5.5/spring-boot-maven-plugin-2.5.5.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

berthelrob avatar May 12 '23 16:05 berthelrob

Hello, I solved this using maven 3.2.3 version

berthelrob avatar May 12 '23 16:05 berthelrob

Hi @berthelrob ,

You can check spring boot 3 & jdk21 upgrade and dockerization below if you mind :) :

https://github.com/ramazansakin/spring-boot-mysql-rest-api-tutorial/tree/master

ramazansakin avatar Dec 03 '23 04:12 ramazansakin

-Ce problème peut etre résolu just en ouvrant le fichier pom.xml en premier pour installer les dépendances nécessaires. -Verifier les versions de dépendances sont-ils compatibles avec votre JDK.

  • Assurer que le maven a installé avec sucée les dépendances qui sont dans le pom.xml en réaffichant maven.

jguirimm avatar Jan 12 '24 10:01 jguirimm