Sbt does not update snapshot in local maven repository

I have a maven based project and in which I integrate some libraries that I develop in Scala using SBT.

Currently, the SBT project (in which I am developing Lib) has a snapshot version.

While the snapshot banner is updating well in Ivy correctly, it is not so in Maven when I use PublishM2. I have to delete the previous one to get the new version that I would publish in PublishM2.

Is there a way to ensure that my PublishM2 correctly updates the local Maven repository (which means a new snapshot)?

+8
maven sbt
source share
1 answer

Try the following sbt command:

sbt publishLocal publishM2 

It should publish the artifact to the local Maven repository.

+1
source share

All Articles