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

"Reference to undefined setting" when adding "osgiSettings" to build.sbt #33

Open
sjmarotta opened this issue May 6, 2016 · 2 comments

Comments

@sjmarotta
Copy link

I am importing sbt-osgi to my project using the git link in my local project's plugins.sbt file.
Here are the contents of my plugins.sbt file:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

lazy val plugins = (project in file("."))
  .dependsOn(sbtOsgi)

def sbtOsgi = uri("git://github.com/sbt/sbt-osgi.git")

With that in my build, I can run "sbt compile" and "sbt eclipse" without any trouble. When I add "osgiSettings" with a blank line before it to the end of my build.sbt, I get the following:

Reference to undefined setting:

  *:osgiBundle from compile:packageBin::packagedArtifact (C:\dev\myproject\build.sbt:18)

        at sbt.Init$class.Uninitialized(Settings.scala:270)
        at sbt.Def$.Uninitialized(Def.scala:10)

Is there something wrong with the way that I configured my project, or is this a problem with the plugin?

@arashi01
Copy link
Contributor

Have you enabled the SbtOsgi plugin?

eg in your build.sbt file enablePlugins(SbtOsgi)

@nbauernfeind
Copy link

Thanks @arashi01 worked for me!

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

3 participants