Skip to content
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: reference to Debian is ambiguous; #428

Closed
rafis opened this issue Dec 4, 2014 · 1 comment
Closed

error: reference to Debian is ambiguous; #428

rafis opened this issue Dec 4, 2014 · 1 comment

Comments

@rafis
Copy link

rafis commented Dec 4, 2014

My build.sbt:

import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._

name := """play-scala-test"""

packageArchetype.java_server

serverLoading in Debian := ServerLoader.SystemV

...

My project/plugins.sbt:

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6" withSources)

// web plugins

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0" withSources)

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0" withSources)

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.1" withSources)

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.1" withSources)

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.0.0" withSources)

addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.0.0" withSources)

// SBT Native Packager
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M1")

The error message:

user$ sbt stage
[info] Loading project definition from /home/user/play-scala-test/project
/home/user/play-scala-test/build.sbt:8: error: reference to Debian is ambiguous;
it is imported twice in the same scope by
import com.typesafe.sbt.SbtNativePackager._
and import _root_.com.typesafe.sbt.packager.debian.DebianPlugin.autoImport._
serverLoading in Debian := ServerLoader.SystemV
                 ^
[error] Type error in expression
@muuki88
Copy link
Contributor

muuki88 commented Dec 4, 2014

You have the answer right in your error message

it is imported twice in the same scope by
import com.typesafe.sbt.SbtNativePackager._
and import root.com.typesafe.sbt.packager.debian.DebianPlugin.autoImport._

If you use 1.0.0-M1 I recommend using autoplugins. Your build.sbt looks like this

name := """play-scala-test"""

enablePlugins(JavaServerAppPackaging)

serverLoading in Debian := ServerLoader.SystemV

@muuki88 muuki88 closed this as completed Dec 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants