mvn import error

Answered

 Hi

Out of a sudden I am running into mvn errors that I don't seem to able to resolve.  When I do  

 

This the sample error I get when I try to do clean or compile on couple of projects that used to work fine.

 

ERROR] Failed to execute goal on project AProject: Could not resolve dependencies for project com.ge.lcre.de:AProject:war:v100: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.2.RELEASE: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.2.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-starter-data-jpa:pom:1.4.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 1]
[

 

Any pointers to what I could be doing wrong would be greatly appreciated.   this part of the lat message from/to central (https://repo.maven.apache.org/maven2) seems to point to mvn2 when the project is setup for mvn3.   I am not sure if this is relevant to the errors.   

 

Thank you for your help

0
2 comments

The issue was a missing settings.xml file. Once the setting.xml file was added with contents to permit access to resources, the issue was solved.

1
Avatar
Permanently deleted user

Updating the settings.xml file in the user profile/.m2 solved the issue for me. Thanks for the post.

0

Please sign in to leave a comment.