sbteclipse

How to import sbt projects to Eclipse?

故事扮演 提交于 2021-02-07 20:16:41
问题 I want to import my sbt projects to Eclipse. While searching on the Internet I came to know there is an sbteclipse plugin for Eclipse to import sbt projects, but I don't know how to do this. I am using Eclipse Kelper and sbt 0.13 on Ubuntu 12.04 LTS. 回答1: tl;dr Use Scala IDE for Eclipse. sbteclipse is a plugin for sbt itself and aims to "create Eclipse project definitions" that in turn doesn't require installing any plugins in Eclipse. sbt is a build tool while Eclipse is an IDE. While both

How to have sbt multi-project builds configure setting for subprojects?

廉价感情. 提交于 2019-12-23 01:52:43
问题 I have an sbt (0.13.1) project with a bunch of subprojects. I am generating eclipse project configurations using sbteclipse. My projects only have scala source files, so I want to remove the generated src/java folders. I can achieve that by (redundantly) adding the following to the build.sbt of each subproject: unmanagedSourceDirectories in Compile := (scalaSource in Compile).value :: Nil unmanagedSourceDirectories in Test := (scalaSource in Test).value :: Nil I tried just adding the above

How do I use Moxy from Scala?

感情迁移 提交于 2019-12-12 18:29:24
问题 This is a follow-on question from How to un/marshall underscored XML to/from camelcased Java using JAXB? I'm trying to use Moxy (part of EclipseLink) from Scala (sbt 0.10.0), and am struggling to figure out how to import and use it. To break this into two parts: 1. Importing Moxy For once I can't find anything appropriate on mvnrepository.com. From reading this page on Maven setup, I was hoping the following would work: // /project/Dependencies.scala object Dependencies { val resolutionRepos

sbt: “impossible to get artifacts when data has not been loaded. IvyNode = org.antlr#stringtemplate;3.2.1”

拟墨画扇 提交于 2019-12-08 18:24:46
问题 This looks like an Ivy problem surfacing via sbt (0.11.2) when I invoke the sbt-eclipse plugin: > eclipse with-source=true ... [info] Resolving com.googlecode.linkedin-j#linkedin-j-core;1.0.416 ... [info] Resolving oauth.signpost#signpost-core;1.2.1.1 ... [info] Resolving net.sf.kxml#kxml2;2.3.0 ... [info] Resolving commons-cli#commons-cli;1.2 ... [info] Resolving javax.servlet#servlet-api;2.5 ... [error] impossible to get artifacts when data has not been loaded. IvyNode = org.antlr

Installing sbteclipse

女生的网名这么多〃 提交于 2019-11-30 17:27:16
i have problems top use sbteclipse What I have done: went to my global sbt folder. created a plugins folder created the file plugins.sbt with addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0") went to my eclipse project and created a build.sbt file it contains: name := "foo" version := "1.0" scalaVersion := "2.9.2" libraryDependencies += "net.java.dev.jna" % "jna" % "3.4.0" I am selecting the project folder in my cmd. and type sbt eclipse But I always get the following error [error] Not a valid command: eclipse (similar: help, alias) [error] Not a valid project ID: eclipse

Installing sbteclipse

依然范特西╮ 提交于 2019-11-30 01:13:58
问题 i have problems top use sbteclipse What I have done: went to my global sbt folder. created a plugins folder created the file plugins.sbt with addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0") went to my eclipse project and created a build.sbt file it contains: name := "foo" version := "1.0" scalaVersion := "2.9.2" libraryDependencies += "net.java.dev.jna" % "jna" % "3.4.0" I am selecting the project folder in my cmd. and type sbt eclipse But I always get the following

How to have Eclipse recognize dependencies from SBT

百般思念 提交于 2019-11-28 03:27:13
I am trying to figure out how to make Eclipse recognize dependencies that are retrieved using SBT? SBT download the correct dependencies and puts them in my ~/.ivy directory but eclipse doesn't see them. Is there a way to do this? thanks This is probably not the answer you are looking for and I admit it is not elegant but it currently works for me, meaning that I think it takes less time for me to periodically do the following instead of researching and finding a more elegant solution. I assume you are using the sbt-eclipse plugin ( https://github.com/typesafehub/sbteclipse ). When I add new

How to have Eclipse recognize dependencies from SBT

孤者浪人 提交于 2019-11-27 00:03:00
问题 I am trying to figure out how to make Eclipse recognize dependencies that are retrieved using SBT? SBT download the correct dependencies and puts them in my ~/.ivy directory but eclipse doesn't see them. Is there a way to do this? thanks 回答1: This is probably not the answer you are looking for and I admit it is not elegant but it currently works for me, meaning that I think it takes less time for me to periodically do the following instead of researching and finding a more elegant solution. I