Using the maven-scala-plugin 2.15.2
, I'm trying to specify the max length of a Scala Class File to "50" characters. I tried 2 places in my pom.xml
:
<build>
<plugins>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<executions>
<execution>
<id>scala-compile-first</id>
<goals>
<goal>compile</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<scalacArgs> <-- Attempt #1 -->
<scalacArg>-Xmax-classfile-name 50</scalacArg>
</scalacArgs>
<scalaVersion>${scalaVer}</scalaVersion>
<args>
<arg>-make:transitive</arg>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
<!-- Attempt #2 -->
</args>
</configuration>
I also ran mvn compile -Xmax-classfile-name 50
, but Maven did not recognize the option and failed.
Where can I specify this option using the maven-scala-plugin
?