I have specified snapshot/milestone repositories in my pom.xml as follow
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
But these repositories are not used while I run goal mvn package, due to which I'm getting below error, whereas same maven goal executes successfully on local machine.
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not find artifact org.springframework.cloud:spring-cloud-gcp-dependencies:pom:1.2.0.BUILD-SNAPSHOT @ line 34, column 25
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.knoje:knoje-com-app:1.0.0-SNAPSHOT (/home/runner/work/knoje-dot-com/knoje-dot-com/pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Could not find artifact org.springframework.cloud:spring-cloud-gcp-dependencies:pom:1.2.0.BUILD-SNAPSHOT @ line 34, column 25 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
##[error]Process completed with exit code 1.
I have specified snapshot/milestone repositories in my
pom.xmlas followBut these repositories are not used while I run goal mvn package, due to which I'm getting below error, whereas same maven goal executes successfully on local machine.