scala - How to make an sbt project reference external java sources -


could post code example of how reference external java source directory in sbt project?

if following

override def mainsourceroots = super.mainsourceroots +++ externalsourcepath 

the sbt compile task find , compile java sources fail. e.g.

[info] compilation successful. java.lang.runtimeexception: path /full/path/to/java/class/com/foo/bar/someclass.java not in . 

sbt 0.9 support external sub-projects. until then, suggest build other 1 jar, , drop results ./lib.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -