0

I can install java source from command line:

mvn source:jar install

So how can I install scala source only with command?

yunfan
  • 760
  • 1
  • 11
  • 24

1 Answers1

0

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
Nazarii Bardiuk
  • 4,272
  • 1
  • 19
  • 22
  • What I means is generate source jar from my code. Not download from maven – yunfan Sep 06 '18 at 12:39
  • I've updated the answer. Without changing `pom.xml` you have no way to change how the jar is generated, your only hope is that default configuration is OK – Nazarii Bardiuk Sep 06 '18 at 14:39