- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Intellij Idea + Maven existing project. Add SBT for faster dev/test?
Tue, 2012-01-24, 11:14
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
Best Regards
Edmondo
Tue, 2012-01-24, 16:11
#1
Re: Intellij Idea + Maven existing project. Add SBT for faster d
cctest ?http://alchim31.free.fr/mvnsites/maven-scala-plugin/example_cctest.html
Tue, 2012-01-24, 19:31
#2
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.
Tue, 2012-01-24, 20:11
#3
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.
Tue, 2012-01-24, 20:51
#4
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:
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.
Tue, 2012-01-24, 20:51
#5
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:
-- 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.