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
:<
Where you are using args
inside configuration
should be where you put your compiler args. You seem to have also created scalacArgs
, but the args
are passed to scalac.
I use this in my plugin to pass options to the compiler:
<configuration>
<args>
<arg>-g:vars</arg>
<arg>-Yrangepos</arg>
<arg>-P:scoverage:dataDir:${coverage.data.dir}</arg>
<arg>-Xmax-classfile-name</arg>
<arg>70</arg>
</args>
<jvmArgs>
<jvmArg>-Xms64m</jvmArg>
<jvmArg>-Xmx1024m</jvmArg>
</jvmArgs>
<compilerPlugins>
<compilerPlugin>
<groupId>org.scoverage</groupId>
<artifactId>scalac-scoverage-plugin_${scala.major}</artifactId>
<version>${scoverage-plugin.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
http://scala-tools.org/mvnsites/maven-scala-plugin/example_compile.html#Compiler_Arguments