The fabled 2.8 eclipse plugin will be the one to use when it's here, should be any day now...
Unsurprisingly I disagree.
Bug reports and more contributions to documentation on using Eclipse
with Lift and Maven would be much appreciated from the Lift community.
There's a start here,
http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift
http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseMaven
but clearly a great deal more is needed. A little more encouragement
and a little less FUD wouldn't go amiss.
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)7813 944 528
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin
> Hi Dan,
>
> I don't have an answer to your question, but maybe a suggestion.
> Eclipse does not work well with maven/scala/lift, and I really doubt
> it will anytime soon.
I don't know about the Maven part, but Eclipse works with Scala &
Lift. It's not nearly as functional as with Java, but I can edit,
compile and debug without too much trouble. Advanced stuff such as
completion, navigation etc. doesn't seem to work that well and I
sometimes need to do a "clean all" to get back into a working state
I'm using it daily without major pain, but await the 2.8 plugin (when
Lift moves to 2.8 :-)
I don't like Maven, so only use it to bootstrap the project. These steps works
for me (Eclipse EE 3.5, Scala 2.7.5):
mvn archetype:create -U -DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=1.1-SNAPSHOT \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DgroupId=demo.helloworld -DartifactId=helloworld -Dversion=1.1-SNAPSHOT
verify it works: mvn jetty:run
Press Ctrl-C to stop
mvn eclipse:eclipse
In Eclipse:
- If you haven't already: Define M2_REPO classpath var to point to your
local maven repo (~/.m2/repository)
- Import the project you just created above
- Eclipse plugin don't like multiple output folders so modify your
projects build path
* Remove all existing source folders
* Add the source folders src/main/scala, src/main/resources,
src/test/scala & src/test/resources, all with the same output folder
- Clean the project
- You can now launch src/test/RunWebApp as a Scala Application to have
jetty run inside eclipse and you can run debug etc
- Running specs with the Eclipse JUnit runner is possible but requires a
workaround, see the specs site.
/Jeppe
> On Thu, Jul 9, 2009 at 5:45 PM, David
> Pollak<feeder.of...@gmail.com> wrote:
>> But, until Martin's magic brain has yielded code for us, I would recommend
>> avoiding Eclipse for Scala and Lift related development.
>
> Unsurprisingly I disagree.
>
> Bug reports and more contributions to documentation on using Eclipse
> with Lift and Maven would be much appreciated from the Lift community.
> There's a start here,
>
> http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift
> http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseMaven
>
> but clearly a great deal more is needed. A little more encouragement
> and a little less FUD wouldn't go amiss.
A major show stopper atm is that Lift, afaik, doesn't work with Scala
2.8 which makes it difficult to actually use the trunk plugin. It is my
(maybe incorrect?) impression that there's not a lot of activity
happening on the 2.7.5 plugin....
/Jeppe
All the current activity is on trunk ...
Nevertheless there are many mostly happy users of 2.7.5 for Lift and
general Scala development work.
Cheers,
Miles
--
Miles S4abin
A major show stopper atm is that Lift, afaik, doesn't work with Scala
Miles Sabin <mi...@milessabin.com> writes:
> On Thu, Jul 9, 2009 at 5:45 PM, David
> Pollak<feeder.of...@gmail.com> wrote:
>> But, until Martin's magic brain has yielded code for us, I would recommend
>> avoiding Eclipse for Scala and Lift related development.
>
> Unsurprisingly I disagree.
>
> Bug reports and more contributions to documentation on using Eclipse
> with Lift and Maven would be much appreciated from the Lift community.
> There's a start here,
>
> http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseLift
> http://lampsvn.epfl.ch/trac/scala/wiki/ScalaEclipseMaven
>
> but clearly a great deal more is needed. A little more encouragement
> and a little less FUD wouldn't go amiss.
2.8 which makes it difficult to actually use the trunk plugin.
It is my
(maybe incorrect?) impression that there's not a lot of activity
happening on the 2.7.5 plugin....
/Jeppe
> Completion works for me, when there are no basic syntax errors in the file (mismatched bracketd etc.).
> Also, I use lift without running maven from the command line. I create the project with m2eclipse, and I don't recall having to set M2_REPO.
>
The M2_REPO var is used by the .classpath generated by
mvn eclipse:eclipse
/Jeppe