A sample Maven Pom file Example for a java and scala project using maven. This allows you to code in both languages in the same project.
Project Directory Structure
Place all the Java Classes in the src/main/java folder and scala files in src/main/scala.
and the test classes respoetively in src/main/scala and src/main/java.
Project Pom.xml File
To complie and generate the target sources run