Questions tagged [scala-maven-plugin]

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

47 questions
22
votes
1 answer

Maven: mixing Java and Scala in one project

Today I've been trying to find a proper solution to set up a maven project that contains both Java and Scala code (with two-way dependencies between them). The solutions I've found usually consist of invoking scala-maven-plugin or…
Paweł Chorążyk
  • 3,584
  • 3
  • 27
  • 33
13
votes
2 answers

Enabling the macro-paradise Scala compiler plugin in Maven projects

I have the ordinary scala-2.10 macros working in a maven project just by including the scala-reflect.jar library as a dependency in the pom, but what do I need to turn on macro-paradise? I am using scala-2.10 and scala-maven-plugin-3.1.5.
Daniel Mahler
  • 7,653
  • 5
  • 51
  • 90
13
votes
1 answer

How to generate an aggregated scaladoc for a maven site?

I have a multi-module Maven build and I would like to generate an aggregated Scaladoc in my root module, similar to what the aggregate goal for the maven-javadoc-plugin does. My first attempt was:
12
votes
4 answers

pom configuration to force usage of jvm 7 with scala maven plugin

Because of an incompatibility between a scala 2.9.2 project and the java 8 version, i need to manually specify jvm usage in my maven project. The pom.xml i make, using documentation here :
reyman64
  • 523
  • 4
  • 34
  • 73
10
votes
3 answers

Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile)

I am trying to test on Intellij IDEA a scala maven project when i run mvn test i get this error : Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (scala-compile) on project neo4j-spark-connector: Execution scala-compile…
A.HADDAD
  • 1,809
  • 4
  • 26
  • 51
8
votes
2 answers

Does maven-shade-plugin work with scala classes?

I have a maven project with both Java and Scala components, but when I use maven-shade-plugin, it relocates package names for both Java and Scala files, but ONLY renames packages inside Java files, Scala files still contain the older package names,…
Jas Bali
  • 241
  • 2
  • 10
8
votes
4 answers

Travis CI ignoring MAVEN_OPTS?

My Scala project (Maven-managed) is failing to build on Travis, throwing a GC overhead limit exceeded error despite compiling fine locally with the same MAVEN_OPTS=-Xmx3g -XX:MaxPermSize=512m. I suspect that Travis is somehow ignoring my MAVEN_OPTS:…
Emma Strubell
  • 675
  • 5
  • 18
8
votes
1 answer

Maven improperly starting fsc?

I am trying to use fsc (fast scala compiler) with my maven project. My pom.xml has: ... cc cc compile true
riothamus
  • 111
  • 5
7
votes
2 answers

maven "rerun with -feature" when compiling scala

I recently noticed Scala compiler warnings that maven was generating that looked like this: [WARNING] warning: there were 4 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 3 feature warning(s); re-run with…
Philip O.
  • 288
  • 2
  • 8
6
votes
1 answer

How to document private elements in scaladoc with scala-maven-plugin?

I'm trying to generate Scaladoc for my code with the scala-maven-plugin 3.0.2 (Scala Version 2.9.2). When I use mvn scala:doc then I don't get documentation for the private types and elements of my Scala code. I checked with the plugin…
Christian Schlichtherle
  • 3,125
  • 1
  • 23
  • 47
5
votes
3 answers

multi module aggregation for scaladoc in maven

I have a parent project with 5 modules. I am trying to figure out how to aggregate the module level scaladoc's into one cohesive site. Any help would be much appreciated.
fbl
  • 2,840
  • 3
  • 33
  • 41
4
votes
1 answer

ScalaTest error object flatspec is not a member of package org.scalatest

I have sample tests used from scalatest.org site and maven configuration again as mentioned in reference documents on scalatest.org, but whenever I run mvn clean install it throws the compile time error for scala test(s). Sharing the pom.xml…
4
votes
1 answer

Scala-maven-plugin failed to execute

I am trying to use the scala-maven-plugin for one of my project. I get the following error when I run mvn package: Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.0:compile (default) on project test_pro: wrap:…
Sina
  • 209
  • 1
  • 3
  • 11
4
votes
1 answer

Scaladoc options with Maven

I'm looking for help with the scala-maven-plugin for Maven. I would like to generate my Scaladoc but I'm having some problems with it. I actually can create my Scaladoc typing the following command: mvn scala:doc The problem now is that I want to…
Rors
  • 159
  • 2
  • 10
4
votes
1 answer

scala maven plugin compile failing with the "version cannot be empty" for a random dependency

Long time listener first time caller. :-) I'm trying to slowly move our java webapp at work over to scala and the first small step is getting some scala code to compile in our project. I've added the scala-maven-plugin to our webapp specific pom…
Robert Beltran
  • 495
  • 3
  • 9
1
2 3 4