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

Problem using Scala Eclipse Plugin with Wicket Maven Project

1 reply
Enes Fazli
Joined: 2009-03-18,
User offline. Last seen 42 years 45 weeks ago.
Hello everybody,

I want to try Scala for the project I am working on right now. It is a wicket application using maven. So I installed the Scala Eclipse Plugin added the scala nature and build command to the .project file. I also added the scala library and the scala maven plugin to my pom.xml and created a separate folder for the scala  sources. My problem is that when I create a Scala Class it seems that both Java and Scala tries to build it. That results in errors like a ; is needed for the package statement but on the other hand the public attribute is invalid.

Hopefully someone can help.

Regards,
Enes
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Problem using Scala Eclipse Plugin with Wicket Maven Proje
How did you set up your project initially (i.e. mvn eclipse:ecipse or importing via q4e/m2e)?  I see the "added scala nature" which is supposed to remove the Java Builder from your project.  Can you verify that this is happening?

-Josh

On Wed, Mar 18, 2009 at 2:10 PM, Enes Fazli <fazli.enes@googlemail.com> wrote:
Hello everybody,

I want to try Scala for the project I am working on right now. It is a wicket application using maven. So I installed the Scala Eclipse Plugin added the scala nature and build command to the .project file. I also added the scala library and the scala maven plugin to my pom.xml and created a separate folder for the scala  sources. My problem is that when I create a Scala Class it seems that both Java and Scala tries to build it. That results in errors like a ; is needed for the package statement but on the other hand the public attribute is invalid.

Hopefully someone can help.

Regards,
Enes

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