scala-libraryas one of the library and then also include
maven-scala-pluginthat takes care of compiling the scala code. The value of
sourceDirectoryspecifies the directory that contains your scala code. Then for packaging the project as a fat jar you can use
maven-assembly-pluginas you would for any other java project built using Maven.