I can install java source from command line:
mvn source:jar install
So how can I install scala source only with command?
I think this answer applies to your question.
Scala is a dependency of maven project, so you can fetch it by
mvn dependency:sources
To install jar with sources without updating pom.xml
mvn source:jar install