简体   繁体   中英

Scala, Maven, Sbt and Eclipse

I am wondering what is the most efficient way to use Sbt and Eclipse together? There seems to be a Sbt Eclipse plugin but what is the generally recommended workflow post generating the eclipse config? It seems kind of wrong to then add dependencies via the Eclipse Maven plugin in Eclipse? Is that what people usually do though?

Kind of new to the ecosystem so maybe I'm missing something here.

I add maven dependencies in via the sbt config files. Then regenerate the eclipse project after each modification, keeping the sbt config as the definitive project specification. I suspect it's the only sane way to run the setup.

I use the IvyDE plugin for eclipse with sbt deliver-local.

The advantage here is it can give you separate classpath containers for different configurations easily and you don't need to blat your eclipse project settings regularly.

It'd be really nice if scala-ide supported tighter integration with sbt.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM