maven - SBT dependency on non-SBT library -
my play/sbt project needs depend on third-party java library distributed in source form , can built either ant or maven. root directory contains pom.xml
, build.xml
.
i thinking of having library added git submodule , have sbt build subproject. tried adding
externalpom(basedirectory(_ / "pathtolibrary" / "pom.xml"))
to build settings, ended following compiler error:
[info] compiling 32 scala sources , 5 java sources /home/thesamet/project] [error] (compile:compile) scala.reflect.internal.missingrequirementerror: object scala.runtime in compiler mirror not found. [error] total time: 1 s, completed aug 23, 2013 11:46:20
an external pom can used obtain library dependencies of maven project not compile it.
you can add sbt build configuration external project or easier, can publish third-party module corporate maven or ivy repository or local mvn install
, add ~/.m2 file resolver sbt project.
Comments
Post a Comment