Product/components used and version/fix level:
Maven: 3.9.9
JDK: 17.0.13
Cumulocity-IoT frontend: 1018.0.259, backend: 1018.0.405
I am trying with the help of the article on Cumulocity’s javaSDK for Microservice and github.
We first tried hello-world-microservice and verified that it successfully uploaded and executed in the microservice.
We then began to verify NOTIFICATION2.
I also referred to the README in it.
‘3.Build the microservice’ in the README, and executing ‘mvn clean install’ there results in an error.
dependencies.dependency.version' for c8y.example.notification:notification2-example-client:jar is missing
I have added version to dependency.
<dependency>
<groupId>c8y.example.notification</groupId>
<artifactId>notification2-example-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.nsn.cumulocity.clients-java</groupId>
<artifactId>microservice-autoconfigure</artifactId>
<version>${project.version}</version>
</dependency>
When I ran it, I got an error.
[ERROR] Failed to execute goal on project hello-notification: Could not resolve dependencies for project c8y.example.notification:hello-notification:jar:1018.0.405-SNAPSHOT
[ERROR] dependency: c8y.example.notification:notification2-example-client:jar:1018.0.405-SNAPSHOT (compile)
[ERROR] c8y.example.notification:notification2-example-client:jar:1018.0.405-SNAPSHOT was not found in https://resources.cumulocity.com/maven/repository during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of cumulocity-maven-repo has elapsed or updates are forced
[ERROR] c8y.example.notification:notification2-example-client:jar:1018.0.405-SNAPSHOT was not found in https://download.cumulocity.com/maven/repository during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of cumulocity has elapsed or updates are forced
Is it failing to get it from the cumulocity maven repository?
Looking at the repository, com.nsn.cumulocity.clients-java${version} exists, but c8y.example.notification${version} does not.
Maybe it is a basic maven (pom.xml) issue, Yours sincerely.