Hi,
I am getting an error during gradle build when it is trying to resolve a dependency from my local maven repository. Currently using gradle v6.4.1.
Could not resolve all files for configuration ‘:runtime’.
Could not find com.hazelcast:hazelcast-aws:2.2.9.
Searched in the following locations:
- file:/Users/simeenakshi/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9.pom
- https://repo.maven.apache.org/maven2/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9.pom
Required by:
project :
Below are the snippets of repository and dependency definition
allprojects {
apply plugin: ‘application’
apply plugin: ‘java’
apply plugin: ‘com.github.johnrengelman.shadow’
repositories {
maven {
url “file:///Users/simeenakshi/.m2/repository”
}
mavenCentral()
}
dependencies {
compile “com.hazelcast:hazelcast-aws:2.2.9”
}
The files are present in the location specified
bash-3.2$ ls -l /Users/simeenakshi/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9*
-rwxrwxrwx 1 simeenakshi 2129952757 36048 May 19 09:56 /Users/simeenakshi/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9-sources.jar
-rwxrwxrwx 1 simeenakshi 2129952757 42001 May 19 09:56 /Users/simeenakshi/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9.jar
-rwxrwxrwx 1 simeenakshi 2129952757 965 May 19 09:56 /Users/simeenakshi/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9.pom
When I tried using mavenLocal(), it is trying to search under file:/root/.m2/repository/com/hazelcast/hazelcast-aws/2.2.9/hazelcast-aws-2.2.9.pom
Appreciate if you can help on this.