Open nrinaudo opened 7 years ago
maven-metadata.xml
is used by the versions-maven-plugin:use-latest-releases
in order to replace any versions with the latest release version inside a pom.xml file.
However, since SBT is not updating the maven-metadata.xml file, versions plugin is unable to discover the new versions that have been released via sbt-release.
It seems that the workaround is to use the maven resolver plugin by creating project/maven.sbt
as described here:
http://www.scala-sbt.org/1.0/docs/Combined+Pages.html#Maven+resolver+plugin
However, this workaround will not work with SBT 1.x. See: sbt/sbt#3486
I use sbt-aether-deploy to resolve it
steps
Attempt to publish artifacts to an ssh or sft resolver with sbt 0.13.13:
problem
Everything is published as you'd expect, but the
maven-metada.xml
file is not created or updated.expectation
The behaviour should be the same as when publishing to a local repository. Replacing our previous
publishTo
as follows will create and updatemaven-metadata.xml
: