This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Intellij Idea + Maven existing project. Add SBT for faster dev/test?

5 replies
edmondo1984
Joined: 2011-09-14,
User offline. Last seen 28 weeks 3 days ago.
Dear all,I am trying to add SBT compilation to my existing Maven project inside Idea. I have downloaded and installed SBT plugin version 1.3.1 and SBT 0.11.2.  I don't need to replace the maven build with SBT up to now, but I just want to enjoy SBT incremental compilation for development purpose... maybe some of you as already undergone this process and can suggest me the path?

Best Regards
Edmondo
iron9light
Joined: 2009-07-04,
User offline. Last seen 3 years 15 weeks ago.
Re: Intellij Idea + Maven existing project. Add SBT for faster d
ericacm
Joined: 2011-05-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Intellij Idea + Maven existing project. Add SBT for faster d

If you are using IntelliJ 11 and Scala 2.9 then you can use the built-
in FSC support with your Maven-based project.

See http://blog.jetbrains.com/scala/2011/10/05/real-fsc-support/

After you get it set up compile times are blazingly fast.

andreak
Joined: 2009-04-24,
User offline. Last seen 2 years 22 weeks ago.
Re: Intellij Idea + Maven existing project. Add SBT for faster

On 01/24/2012 11:14 AM, Edmondo Porcu wrote:
> Dear all,
> I am trying to add SBT compilation to my existing Maven project inside
> Idea. I have downloaded and installed SBT plugin version 1.3.1 and SBT
> 0.11.2. I don't need to replace the maven build with SBT up to now,
> but I just want to enjoy SBT incremental compilation for development
> purpose... maybe some of you as already undergone this process and can
> suggest me the path?
>

I know this doesn't answer your question but IDEA now fully support fsc,
which provides incremental compilation. It's just a matter of checking
the "use internal fsc"-checkbox in scala-settings and enable it in your
scala-facet (yes it's insane you have to do this for every scala-facet,
but that's the way it is for now). This works really well and running
tests written in scala from IDEA now feels right again.

Anthony Accioly 2
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Intellij Idea + Maven existing project. Add SBT for fas
And another answer for a question that you didn't ask is to use this maven plugin: http://scala-tools.org/mvnsites/maven-scala-plugin/

Run mvn scala:cc in the background. Set Intellij to do not "Make" on run and you are all set for blazingly fast development.

Cheers,

On Tue, Jan 24, 2012 at 4:23 PM, ericacm <ericacm@gmail.com> wrote:
If you are using IntelliJ 11 and Scala 2.9 then you can use the built-
in FSC support with your Maven-based project.

See http://blog.jetbrains.com/scala/2011/10/05/real-fsc-support/

After you get it set up compile times are blazingly fast.

ericacm
Joined: 2011-05-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Intellij Idea + Maven existing project. Add SBT for fas
The nicest thing about the using the IntelliJ built in FSC support is that compile errors show up right in the IDE and you can click on an error and go right to the source line, just like a regular compile.

-- Eric



On Tue, Jan 24, 2012 at 2:39 PM, Anthony Accioly <a.accioly@7rtc.com> wrote:
And another answer for a question that you didn't ask is to use this maven plugin: http://scala-tools.org/mvnsites/maven-scala-plugin/

Run mvn scala:cc in the background. Set Intellij to do not "Make" on run and you are all set for blazingly fast development.

Cheers,

On Tue, Jan 24, 2012 at 4:23 PM, ericacm <ericacm@gmail.com> wrote:
If you are using IntelliJ 11 and Scala 2.9 then you can use the built-
in FSC support with your Maven-based project.

See http://blog.jetbrains.com/scala/2011/10/05/real-fsc-support/

After you get it set up compile times are blazingly fast.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland