Maven dependency


We have a private maven dependancy created as a core code for all our projects, When we add the core code it is added and scanned, however when we add any repository/ project which links to the dependency the build fails.

[WARNING] The POM for core-framework:jar:0.0.2-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.846 s
[INFO] Finished at: 2020-03-30T19:37:31+00:00
[INFO] Final Memory: 23M/484M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project supplier-producer: Could not resolve dependencies for project supplier-producer:jar:0.0.1-SNAPSHOT: Could not find artifact core-framework:jar:0.0.2-SNAPSHOT -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

Any suggestions?

Welcome to the community!

From the Maven output, it looks like the Maven build fails due to a missing dependency. I don’t see how this is related to SonarCloud: the error doesn’t come from our scanner.

I think you need to fix your Maven build, and I’m afraid we cannot help with that.

1 Like