add jar files into play!
vi /jbatch/project/Build.scala
val appDependencies = Seq(
// Add your project dependencies here,
javaCore,
javaJdbc,
javaEbean,
"mysql" % "mysql-connector-java" % "5.1.25",
"org.apache.commons" % "commons-lang3" % "3.1",
"commons-validator" % "commons-validator" % "1.4.0",
"com.amazonaws" % "aws-java-sdk" % "1.5.1",
"com.github.mumoshu" %% "play2-memcached" % "0.3.0.2",
"redis.clients" % "jedis" % "2.1.0",
"com.typesafe" %% "play-plugins-mailer" % "2.1-RC2",
"org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final",
"org.hibernate.javax.persistence" % "hibernate-jpa-2.0-api" % "1.0.1.Final",
"org.mybatis" % "mybatis" % "3.1.1",
"com.google.code.gson" % "gson" % "2.2.4",
"jsch" % "jsch" % "0.1.31", // http://repo.typesafe.com/typesafe/releases/jsch/jsch/0.1.31/
"org.json" % "json" % "20140107" // http://repo.typesafe.com/typesafe/releases/org/json/json/20140107/
)
val main = play.Project(appName, appVersion, appDependencies).settings(
resolvers ++= Seq(
"Spy Repository" at "http://files.couchbase.com/maven2",
"typesafe Repository" at "http://repo.typesafe.com/typesafe/releases"
)
)
1) we can add repository
"Spy Repository" at "http://files.couchbase.com/maven2",
"typesafe Repository" at "http://repo.typesafe.com/typesafe/releases"
2) we can guess the package name and register name for jar.
"jsch" % "jsch" % "0.1.31", // http://repo.typesafe.com/typesafe/releases/jsch/jsch/0.1.31/
"org.json" % "json" % "20140107" // http://repo.typesafe.com/typesafe/releases/org/json/json/20140107/
vi /jbatch/project/Build.scala
val appDependencies = Seq(
// Add your project dependencies here,
javaCore,
javaJdbc,
javaEbean,
"mysql" % "mysql-connector-java" % "5.1.25",
"org.apache.commons" % "commons-lang3" % "3.1",
"commons-validator" % "commons-validator" % "1.4.0",
"com.amazonaws" % "aws-java-sdk" % "1.5.1",
"com.github.mumoshu" %% "play2-memcached" % "0.3.0.2",
"redis.clients" % "jedis" % "2.1.0",
"com.typesafe" %% "play-plugins-mailer" % "2.1-RC2",
"org.hibernate" % "hibernate-entitymanager" % "3.6.9.Final",
"org.hibernate.javax.persistence" % "hibernate-jpa-2.0-api" % "1.0.1.Final",
"org.mybatis" % "mybatis" % "3.1.1",
"com.google.code.gson" % "gson" % "2.2.4",
"jsch" % "jsch" % "0.1.31", // http://repo.typesafe.com/typesafe/releases/jsch/jsch/0.1.31/
"org.json" % "json" % "20140107" // http://repo.typesafe.com/typesafe/releases/org/json/json/20140107/
)
val main = play.Project(appName, appVersion, appDependencies).settings(
resolvers ++= Seq(
"Spy Repository" at "http://files.couchbase.com/maven2",
"typesafe Repository" at "http://repo.typesafe.com/typesafe/releases"
)
)
1) we can add repository
"Spy Repository" at "http://files.couchbase.com/maven2",
"typesafe Repository" at "http://repo.typesafe.com/typesafe/releases"
2) we can guess the package name and register name for jar.
"jsch" % "jsch" % "0.1.31", // http://repo.typesafe.com/typesafe/releases/jsch/jsch/0.1.31/
"org.json" % "json" % "20140107" // http://repo.typesafe.com/typesafe/releases/org/json/json/20140107/
Comments
Post a Comment