prashanth-sams / spring-wiremock-boilerplate

Spring WireMock Boilerplate
2 stars 2 forks source link

SNAPSHOT versions not available in maven central repo yet #15

Closed dhamo-pk closed 2 years ago

dhamo-pk commented 2 years ago

As the snapshot versions are not available in maven central, local execution, and also in CI flow - it is failing.

Stacktrace:

Error: ] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT: Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 7, column 10
 @ 
Error:  The build could not read 1 project -> [Help 1]
Error:    
Error:    The project com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT (/home/runner/work/spring-wiremock-boilerplate/spring-wiremock-boilerplate/pom.xml) has 1 error
Error:      Non-resolvable parent POM for com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT: Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 7, column 10 -> [Help 2]
prashanth-sams commented 2 years ago

@dhamo-pk can you please replace your setting.xml with this one and check if it works

settings.xml.zip

dhamo-pk commented 2 years ago

@prashanth-sams thank you, this trick didn't help.

[INFO] Scanning for projects...
Downloading from central: http://repository.emirates.com/repository/maven-all/org/springframework/boot/spring-boot-starter-parent/2.6.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT/maven-metadata.xml from/to central (http://repository.emirates.com/repository/maven-all/): transfer failed for http://repository.emirates.com/repository/maven-all/org/springframework/boot/spring-boot-starter-parent/2.6.0-SNAPSHOT/maven-metadata.xml
Downloading from central: http://repository.emirates.com/repository/maven-all/org/springframework/boot/spring-boot-starter-parent/2.6.0-SNAPSHOT/spring-boot-starter-parent-2.6.0-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.0-SNAPSHOT from/to central (http://repository.emirates.com/repository/maven-all/): transfer failed for http://repository.emirates.com/repository/maven-all/org/springframework/boot/spring-boot-starter-parent/2.6.0-SNAPSHOT/spring-boot-starter-parent-2.6.0-SNAPSHOT.pom and 'parent.relativePath' points at no local POM @ line 7, column 10
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT (C:\Repositories\Experiments\spring-wiremock-boilerplate\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.wmock:spring-boot-wiremock-boilerplate:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.0-SNAPSHOT from/to central (http://repository.emirates.com/repository/maven-all/): transfer failed for http://repository.emirates.com/repository/maven-all/org/springframework/boot/spring-boot-starter-parent/2.6.0-SNAPSHOT/spring-boot-starter-parent-2.6.0-SNAPSHOT.pom and 'parent.relativePath' points at no local POM @ line 7, column 10: Unknown host repository.emirates.com -> [Help 2]
dhamo-pk commented 2 years ago

Can we downgrade one version to avoid snapshot versions not being downloadable?