Maven unable to locate artifact generated with SBT

Problem

Maven unable to locate artifact generated with SBT

[ERROR] Failed to execute goal on project ... : Could not resolve dependencies for project o...:jar:1.0.1: Failure to find ...:jar:1.0.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

Solution

SBT publish adds postfix with scala version; e.g. “_2.10”; so you have two options

  • add “_ScalaVersion” to the artifactID
  • disable generation of sbt “_ScalaVersion” by adding to build.sbt (ref):
    crossPaths := false

 

 

 

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*