How to use command “publish-local” of SBT to maven repo? December 11, 2023 by Tarik Please use the publishM2 task. Its documentation says “Publishes artifacts to the local Maven repository”. sbt publishM2