Tag Archives: scala

Maven & Scala: Add source folder to Eclipse Project

EDIT: You don’t need to do the things described here if you’re also using Scala. In this case, you can switch to the m2eclipse-scala integration which automatically adds the Scala source folder (beside some other useful things). Just solved one another annoying problem: Everytime i had to clean my maven-eclipse-project with “mvn eclipse:clean” and re-created the project, i [...]
Posted in General | Also tagged , | 2 Comments

Maven Scala Build Error “error while loading Function1, class file needed by Function1 is missing”

Scala and Maven… a kinda’ fragile combination Today i got the following error when trying to compile my scala-project with “mvn compile”: [ERROR] error: error while loading Function1, class file needed by Function1 is missing. [INFO] reference value Unit of package scala refers to nonexisting symbol. [ERROR] one error found [INFO] ———————————————————————— [ERROR] BUILD ERROR [INFO] ———————————————————————— [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited [...]
Posted in General | Also tagged | Leave a comment

Build a mixed Scala 2.8/Java application from scratch with Maven [Eclipse Settings]

[EDIT 15.01.2011] There have been changes since i wrote this article. Although i don’t have experiences with it until know, I would suggest using the m2eclipse-scala Plugin which solves some bugs that occur when using the regular M2Eclipse plugin. Now i’m going to show you how to open the Maven project from Part 1 with Eclipse and [...]
Posted in General | Also tagged , , | 2 Comments

Build a mixed Scala 2.8/Java application from scratch with Maven

In this tutorial I will show you how to build an application by Maven that consists of Java and Scala source files. The project automatically uses the latest Scala 2.8-Snapshot until it’s released (Maven will look for the latest version of the Scala language each time you build it). We will setup the project to use [...]
Posted in General | Also tagged , | 14 Comments

Scala – an alternative console scripting language?

[EDIT 15.01.2011] This post doesn’t reflect my opinion about Scala as a console scripting language anymore. I’m currently using Python for everyday-tasks, which i find pretty much simpler and quicker to solve problems. As you often have to use Java libraries inside Scala, writing code is often still cumbersome and full of Java-style-boilerplate. So the script [...]
Posted in General | Tagged | 4 Comments