I put together an example project using GWT (Java client) + Scala (server backend) + Maven. You can find the example on GitHub.
The project compiles and runs fine outside of Intellij 12 using:
mvn clean install
In IntelliJ, I assigned the Scala facet to the server module (see attached screenshot). I'm using a Local Tomcat7 build run configuration with the following build/make/launch artifacts:
- Build 'web:war exploded' artifact
During the make step, I always get a ClassNotFoundException during scala compile:
scala: Error: com/google/gwt/dev/cfg/ModuleDef
The full exception is attached.
Ordinary Scala apps are working fine. Also, I can compile and run this project without problems if I use Java instead of the Scala code in server module. So problem seems to be related to GWT plus Scala usage.
How do I solve it?