heremaps / here-sbt-bom

SBT BOM is the plugin for SBT for dealing with Maven BOM in SBT projects
Other
19 stars 5 forks source link

Failed to resolve NormalizedArtifact on build server #20

Closed jrduncans closed 2 months ago

jrduncans commented 4 months ago

I'm seeing the same issue as #7 but only on my build server, not locally:

java.lang.RuntimeException: Failed to resolve NormalizedArtifact(org.apache.pekko,pekko-http-bom_2.13,1.0.1)
    at scala.sys.package$.error(package.scala:30)
    at com.here.bom.internal.BomReader.$anonfun$readPom$1(BomReader.scala:69)

Unfortunately I can't seem to find any additional info to help debug this. Would it be possible to add some debug logging to show URLs being tried or something?

molekyla commented 4 months ago

As of now the only way is to specify --debug flag for sbt command. For example sbt package --debug

jrduncans commented 4 months ago

Unfortunately, it didn't add any useful information.

molekyla commented 4 months ago

Plugin tries to find pom in using path {ivy.home}/cache/org.apache.pekko/pekko-http-bom_2.13/ivy-1.0.1.xml.original (see implementation) Try to get the content of this file and check if is it present and correct Also, we will improve debug logging in future release, but there is no ETA available for this improvement

molekyla commented 3 months ago

@jrduncans Hi. Sorry for such a big delay. We have noticed that this issue might be caused by parameters -Dsbt.global.base=sbt-cache/sbtboot -Dsbt.boot.directory=sbt-cache/boot -Dsbt.ivy.home=sbt-cache/ivy. If it is applicable to your case, please try to build without these params In any case, we will fix this behavior in the future

molekyla commented 3 months ago

Seems the issue might be caused by https://github.com/sbt/sbt/issues/1894

molekyla commented 2 months ago

It should be fixed by the PR https://github.com/heremaps/here-sbt-bom/pull/22. Closing the issue