-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while sbt debian:packageBin
#479
Comments
What OS, native packager version do you use? |
|
Is it still relevant? Could you try 0.8.0 release? |
will test it in a week @kardapoltsev |
I am not sure I've passed this Ok or not, I updated to
Here is my sbt: import com.typesafe.sbt.SbtAspectj._
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
name := """adp-core"""
version := "1.0"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
scalaVersion := "2.10.4"
//scalaVersion := "2.11.1"
fork in run := true
val adpCore = project in file(".") dependsOn adpCommon
lazy val adpCommon = RootProject(file("../adp-common"))
resolvers ++= Seq(
"Akka Snapshot Repository" at "http://repo.akka.io/snapshots/",
"ConSol* Labs Repository" at "http://labs.consol.de/maven/repository",
"Typesafe Maven Repository" at "http://repo.typesafe.com/typesafe/maven-releases/",
"ReactiveCouchbase Releases" at "https://raw.github.com/ReactiveCouchbase/repository/master/releases/",
"ReactiveCouchbase Snapshots" at "https://raw.github.com/ReactiveCouchbase/repository/master/snapshots/",
"Element Releases" at "http://repo.element.hr/nexus/content/repositories/releases/"
)
libraryDependencies ++= {
val akkaVersion = "2.3-20150327-161435"
// val akkaVersion = "2.4-SNAPSHOT"
val camelVersion = "2.14.0"
val kamonVersion = "0.3.5"
Seq(
"com.typesafe.akka" %% "akka-remote" % akkaVersion,
"com.typesafe.akka" %% "akka-camel" % akkaVersion,
"com.typesafe.akka" %% "akka-contrib" % akkaVersion,
"com.typesafe.akka" %% "akka-kernel" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion,
"com.typesafe.akka" %% "akka-cluster" % akkaVersion,
"com.typesafe.akka" %% "akka-multi-node-testkit" % akkaVersion,
"org.apache.camel" % "camel-core" % camelVersion,
"org.apache.camel" % "camel-scala" % camelVersion,
"org.apache.camel" % "camel-smpp" % camelVersion,
"org.reactivecouchbase" %% "reactivecouchbase-core" % "0.4-SNAPSHOT",
"com.couchbase.client" % "java-client" % "2.1.1",
"io.kamon" %% "kamon-core" % kamonVersion,
"io.kamon" %% "kamon-statsd" % kamonVersion,
"io.kamon" %% "kamon-log-reporter" % kamonVersion,
"io.kamon" %% "kamon-system-metrics" % kamonVersion,
"org.slf4j" % "slf4j-api" % "1.7.2",
"ch.qos.logback" % "logback-classic" % "1.0.7",
"io.spray" %% "spray-json" % "1.3.1",
"org.aspectj" % "aspectjweaver" % "1.8.2",
"org.jolokia" % "jolokia-jvm" % "1.2.2" classifier "agent",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
}
libraryDependencies ~= { _.map(_.exclude("org.slf4j", "slf4j-simple")) }
aspectjSettings
javaOptions in run <++= AspectjKeys.weaverOptions in Aspectj
javaOptions in run ++= Seq(
"-Djava.library.path=src/linux/usr/share/sigar",
// or Use org.jolokia.jvmagent.JolokiaServer programatically
"-javaagent:" + System.getProperty("user.home") + s"/.ivy2/cache/org.jolokia/jolokia-jvm/jars/jolokia-jvm-1.2.2-agent.jar=port=8181",
//"-XX:+ExtendedDTraceProbes"
"-Xms256m"
)
val buildSettings = Defaults.defaultSettings ++ Seq(
javaOptions += "-Xmx1G"
)
mainClass in Compile := Some("ir.behrad.adp.boot.Run")
Revolver.settings.settings
packageArchetype.java_server
//mappings in Universal <+= (packageBin in Compile, sourceDirectory ) map { (_, src) =>
// (src / "main" / "resources" / "application.conf") -> "conf/application.conf"
//}
mappings in Universal ++= Seq(
file("src/main/resources/application.conf") -> "conf/application.conf",
file("src/main/resources/logback.xml") -> "conf/logback.xml"
)
bashScriptConfigLocation := Some("${app_home}/../conf/jvmopts")
maintainer in Linux := "Behrad Zari <[email protected]>"
packageSummary in Linux := "ADP Digital Co. Core Message Gateway"
packageDescription := "ADP Digital Co. Core Message Gateway"
rpmRelease := "1"
rpmVendor := "com.adpdigital"
rpmLicense := Some("Apache v2")
//https://github.com/kamon-io/Kamon/blob/master/kamon-examples/kamon-play-example/project/Build.scala
|
Seems that ${app_home} wasn't replaced. |
yes, thats the issue |
my build.sbt is here:
my main class is actually an Akka Bootable
The text was updated successfully, but these errors were encountered: