My project has dependency on an external jar. I have created a directory lib
and have copied the jar file into it. This is my build.sbt
:
name := "approxstrmatch"
version := "1.0"
scalaVersion := "2.10.4"
unmanagedJars in Compile += file("lib/secondstring-20140729.jar")
libraryDependencies+="org.apache.spark"%%"spark-core"%"1.0.0"
resolvers += "AkkaRepository" at "http://repo.akka.io/releases/"
When I run clean
and package
, the external jar file does not get included in the generated jar file. Why?
This is the project layout:
project/build.sbt
lib/
src/.....
question from:
https://stackoverflow.com/questions/25129227/how-to-include-an-external-jar-file-into-the-jar-with-package 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…