Thursday, 15 August 2013

Importing a scala class packaged with sbt in java maven project -



Importing a scala class packaged with sbt in java maven project -

i have built library written in scala sbt , published local maven repository using sbt publishm2. jar file within subdirectory of .m2 directory , can see classes fine using jar -tf. subsequently created java maven project utilize scala library. maven can find jar file, cannot import classes jar file. if classes within scala library private. yet in scala there no modifier public classes. docs public default assumed when no modifier given. missing?

edit: had problem maven groupid (this organization in sbt). while sbt seems allow slashes organizations, groupids not seem allow them. replaced slash dot in groupid, leaving organization is. works fine.

java scala maven sbt

No comments:

Post a Comment