-
Bug
-
Resolution: Done
-
Medium
-
Honolulu Maintenance Release 1
-
None
Overview
During building the so-cnf-adapter project: https://gerrit.onap.org/r/admin/repos/so/adapters/so-cnf-adapter mvn fails with:
[ERROR] Failed to execute goal on project so-cnf-adapter: Could not resolve dependencies for project org.onap.so.adapters.so-cnf-adapter:so-cnf-adapter:pom:1.8.0-SNAPSHOT: The following artifacts could not be resolved: org.onap.logging-analytics:logging-slf4j:jar:1.6.9-SNAPSHOT, org.onap.logging-analytics:logging-filter-base:jar:1.6.9-SNAPSHOT, org.onap.logging-analytics:logging-filter-spring:jar:1.6.9-SNAPSHOT: Could not find artifact org.onap.logging-analytics:logging-slf4j:jar:1.6.9-SNAPSHOT in central (https://repo1.maven.org/maven2/)
To reproduce the issue simply run the maven with cleaning the dependency:
mvn clean install dependency:purge-local-repository
or see this error reproduce in latest review https://gerrit.onap.org/r/c/so/adapters/so-cnf-adapter/+/121604/
Technical details:
Currently the onap.logging-analytics:logging-slf4j:jar:1.6.9-SNAPSHOT isn't avaliable in ONAP nexus: https://nexus.onap.org/content/repositories/snapshots/org/onap/logging-analytics/logging-slf4j/
The so-cnf-adapter depends on parent from so:
<parent> <groupId>org.onap.so</groupId> <artifactId>so</artifactId> <version>1.8.0-SNAPSHOT</version> </parent>
and currently the version of
- org.onap.logging-analytics:logging-slf4,
- org.onap.logging-analytics:logging-filter-base
- org.onap.logging-analytics:logging-filter-spring
was bump to the new 1.6.10-SNAPSHOT in https://gerrit.onap.org/r/c/so/+/121542 when the author faced similar issue.
Potential issue
But the artifact version wasn't update, so so-cnf-adapter still download the older pom that point to 1.6.9-SNAPSHOT.
I think this pom is download by maven: https://nexus.onap.org/content/repositories/snapshots/org/onap/so/so/1.8.0-SNAPSHOT/ (updated: Fri Feb 19 12:56:54 UTC 2021)
So we have mismatch between the pom in SO code and download by maven from ONAP nexus.
Possible solution
- Bump the SO snapshot version to 1.8.1-SNAPSHOT
- Re-upload 1.6.9-SNAPSHOT of missing artifacts (not prefer i think)
- something else?
Goal
Fix the review verification/mvn building for so-cnf-adapter project.
- relates to
-
SO-3492 Update the SO documentation from usage perspective
- Closed