Dependencies could not be resolved:
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]
Hello, I solved this using maven 3.2.3 version
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
-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.