So you can now run your scala app by defining the "mainClass" property :
mvn scala:run -DmainClass=org.example.MyClass
Adding the mainClass configuration to your plugin definition.
<plugin> <groupId>maven</groupId> <artifactId>maven-scala-plugin</artifactId> <configuration> <mainClass>org.example.MyClass</mainClass> </configuration> </plugin>
Now you can run the following command to run your scala app.
mvn scala:run
Set the property maven.scala.displayCmd to true, to display the command line used