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

Add option to specify extra scopes for Eclipse buildpath #18

Closed
torbjornvatn opened this issue Jul 15, 2011 · 4 comments
Closed

Add option to specify extra scopes for Eclipse buildpath #18

torbjornvatn opened this issue Jul 15, 2011 · 4 comments
Labels

Comments

@torbjornvatn
Copy link

According to several howtos on Lift + sbt 0.10 [1] the jetty dependency has to have it's scope set to "jetty".

"org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty"

This prevents the "eclipse" command from including the jetty jar-file in Eclipses Referenced Libraries folder.

Is it possible to add an argument to eclipse command for specifying extra scopes? Or is this achievable in some other way?

Just now I work around it by adding an extra line at the end of my build.sbt that looks like this:

libraryDependencies += "org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default"

[1] http://moreindirection.blogspot.com/2011/06/migrating-to-sbt-010-lift.html

@hseeberger
Copy link
Member

Phew, custom configurations ...

In this case I am not sure that it makes sense to have the jetty JARs on the build classpath. It looks more like a runtime dependency, right? Or do you need it for (test-)compilation?

@torbjornvatn
Copy link
Author

It's the default RunWebApp test case of lift_blank that complains, but on second thought I'm not sure if that's a good test/idea either.

But if one is to use Jetty programatically, do you know if it is possible to define the scope as "test->jetty" or something of the like?

@hseeberger
Copy link
Member

Sorry, I don't know the xsbt-web-plugin and the correct usage of the custom "jetty" configuration.

But "test->jetty" probably wouldn't work at all, because that maps your project's "test" configuration to the "jetty" configuration of the dependency. And AFAIK there is no "jetty" configuration for the dependency, just a "compile" or "default" one.

Nevertheless I see the general usefulness of a way to specify additional scopes that should be on the Eclipse build classpath. Therefore I will keep this issue open and rename it accordingly.

@hseeberger
Copy link
Member

See #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants