Questions tagged [scala-maven-plugin]

https://davidb.github.io/scala-maven-plugin/

47 questions
3
votes
2 answers

Error in Scala Maven recompilation without code change

When I check out https://github.com/alexeyr/scala-time and build it once using Maven, everything works fine. Then I touch src/main/scala/org/scala_tools/time/Implicits.scala to trigger a recompilation. Run mvn compile again, and I get 56 errors…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
3
votes
0 answers

Compilation fails with a StackOverflowError with Java 1.8, (Scala 2.12.10 = Spark 2.4.6) driven by scala-maven-plugin, on JavaScanner.skipBlockComment

I attempt to compile a mixed Java / Scala project with scala-maven-plugin 2.4.0. The parent pom used is the one following, scala.version = 2.12, with dependency org.scala-lang:scala-library:2.12.10, coming from Spark-core 2.4.6 if you check its…
Marc Le Bihan
  • 2,308
  • 2
  • 23
  • 41
3
votes
2 answers

Scala Maven Plugin not handling Scala source folder and reporting lifecycle error

I am trying to import a java+Scala project into Eclipse(v4.6.1 Neon). This consist a parent project with scala-maven plugin configured as follows:
PyThon
  • 1,007
  • 9
  • 22
3
votes
2 answers

Compile Scala incrementally in Maven project

I'd like to compile Scala incrementally in a Maven project. Currently, Scala compiles even if nothing changes. I've tried scala-maven-plugin, but it doesn't seem to work incrementally at all. pom.xml
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
3
votes
1 answer

Require Java 8 to build Scala project using Maven

I'm using scala-maven-plugin to build a Scala project using Maven. My project depends on some libraries from Java 8. I would like to specify in my pom that the project requires Java 8 (using something akin to -target=jdk-1.8, which appears not to…
Emma Strubell
  • 675
  • 5
  • 18
2
votes
0 answers

Why am I getting "object scala.runtime in compiler mirror not found." with scala-maven-plugin when dependency is upgraded?

I have a Maven based project that uses Scala. I tried to upgrade an internal dependency and now I get [ERROR] : error while loading Object, Missing dependency 'class scala.native in compiler mirror', required by…
JGleason
  • 3,067
  • 6
  • 20
  • 54
2
votes
2 answers

Scala maven plugin doesn't compile with StackOverflowError

I found a bug related to Scala-maven-plugin in my Maven project. I have a very long Sequence of features (for Machine Learning purposes) I hand-coded (74 elements). I added one element in the sequence and it doesn't compile anymore. If I comment any…
belka
  • 1,480
  • 1
  • 18
  • 31
2
votes
2 answers

Scalatest from Maven: How to tag and filter out an entire Suite?

I have a Maven project and I'm using the scalatest-maven-plugin to configure scalatest. I'm using scalatest 3.0.0 however I can't manage to tag and filter out an entire Suite. As reference, I have used the blog Tag a whole ScalaTest suite (update…
SkyWalker
  • 13,729
  • 18
  • 91
  • 187
2
votes
1 answer

scala-maven-plugin : ClassNotFoundException

I am trying to run a simple Scala Hello World program using scala-maven-plugin from the command line in my Ubuntu VM running in Win-7 host OS. I tried to execute in the following two ways :- mvn scala:run…
BludShot
  • 301
  • 1
  • 3
  • 16
2
votes
0 answers

How to use LDAP in Lift Framework

Does anyone have a good example showing how to incorporate LDAP to a Lift Scala Project? I have problems adding the dependency in my pom.xml file net.liftweb lift-ldap
Guillermo Zooby
  • 582
  • 2
  • 15
  • 32
1
vote
1 answer

How to prevent scala-maven-plugin from compiling Java sources?

There is a mixed (Java + Scala) Maven project. Only a small part is written in Scala and it does not depend on Java code. Java code depends on compilation results of the Scala part. I'm looking for a way to compile in two steps: compile only Scala…
diziaq
  • 6,881
  • 16
  • 54
  • 96
1
vote
0 answers

Is there a way to use an older version of Java with scala-maven-plugin

I would need to compile a legacy scala project (Scala version 2.8.0). The version is incompatible with JDK8. So I would like to ideally compile the project using JDK 7. I am looking for a configuration something like the following in…
Jack
  • 11
  • 3
1
vote
1 answer

mixed scala/java project, which compile first?

There are some existing similar questions based on codes, but I want to ask in a more general way. Suppose there are java source code and scala source code, seems scala-maven-plugin is to be added. So is there a default config which one is compiled…
Litchy
  • 623
  • 7
  • 23
1
vote
0 answers

Scala Maven project in intelliji not auto compiling on save

I have a scala maven project inside an already available multi module java project in intellij(2012.1.2), intellij not auto compiling the scala project on save. I am not facing this issue for java modules in the same project. I could only run the…
Senthil
  • 11
  • 1
  • 4
1
vote
0 answers

Supply JVM args to command line "mvn scala:run"

I am trying to launch a Scala application with the scala-maven-plugin. I can execute with mvn scala:run -DmainClass=... -DaddArgs=... but I would like to add JVM args to the command line as well. It looks like this can be done with launch…
wrschneider
  • 17,913
  • 16
  • 96
  • 176