Questions tagged [scala-maven-plugin]

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

47 questions
1
vote
0 answers

Want to Create Scala and Java Maven Project and Call Scala Method from Java

I am trying to create a project through maven in which I can use Scala and Java both language. And I am trying to call Scala method in a java class. How can I achieve this? I already have gone through this link Maven: mixing Java and Scala in one…
1
vote
1 answer

Installing Scala Maven plugin on eclipse from local

I am trying to setup Scala development environment with maven on scala IDE for eclipse. I am not able to install the Scala Maven plugin from the software site due to some problems with my proxy settings. So, I am trying to download the plugin onto…
1
vote
1 answer

Java 6 classes when 1.7 is configured in Intellij/maven with scala plugin

As seen in the screenshot the module/project are set to jdk 1.7 Project / sdk set to 7: Module set to jdk 7: However from javap we are seeing java6 (50) ?? a) Confirm the class were just now compiled (7/22/15 @18:14) : ls -l…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
1
vote
1 answer

Scala maven builder doesn't understand quasiquotes

I'm building a scala macro project that contains a quasiquote implementation: val valDefs = named.map { case (child, name) => q"val $name = play.api.libs.json.Json.writes[$child]" } However when being compiled, maven builder (using…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
0 answers

Want to eliminate: "[WARNING] Could not determine source for class com.mycompany.MyClass_" when building Java + Scala project

I am using maven with the scala-maven-plugin for building a project that is a mixture of Java 1.8 and Scala 2.12.7 code. When I build from the command line with: mvn clean install -DskipTests I get messages like: "[WARNING] Could not determine…
kc2001
  • 5,008
  • 4
  • 51
  • 92
0
votes
0 answers

Scala Maven plugin downloading multiple Scala versions

To use net.alchim31.maven:scala-maven-plugin:4.8.0, I add the following in pom.xml net.alchim31.maven scala-maven-plugin 4.8.0
0
votes
1 answer

Is Scala 3 Compatible with Maven?

I am trying to get Maven to compile Scala 3, but I get weird stuff like [INFO] --- scala-maven-plugin:4.5.4:compile (default) @ laboratory --- [INFO] Using incremental compilation using Mixed compile order [INFO] compiling 1 Scala source and 10 Java…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
0
votes
1 answer

scala-maven-plugin unable to find source directory when mentioned in

When I compile Scala sources this pom.xml works : ${project.basedir}/src/main/scala net.alchim31.maven
Marc Le Bihan
  • 2,308
  • 2
  • 23
  • 41
0
votes
1 answer

Passing scalac opts to Maven from the command-line or environment

I'm looking for an unobtrusive way to make mvn aware of additional flags I'd like to pass to the scalac compiler via the command-line or environment variables only. I'm currently using the scala-maven-plugin with a command such as: mvn…
Brad Solomon
  • 38,521
  • 31
  • 149
  • 235
0
votes
0 answers

How to fix WARNING: -c has been deprecated

I'm doing mvn clean install and getting this error: [INFO] --- scalatest-maven-plugin:1.1.3:test (test) @ tests --- WARNING: -c has been deprecated and will be reused for a different (but still very cool) purpose in ScalaTest 2.0. Please change all…
whoiskatrin
  • 73
  • 2
  • 12
0
votes
0 answers

Failed to execute goal org.scalatest:scalatest-maven-plugin:2.0.0:test (test)

I am trying to build my Scala code using Maven POM and I have below plugin in my POM: org.scalatest scalatest-maven-plugin
user2531569
  • 609
  • 4
  • 18
  • 36
0
votes
1 answer

Not source found scala - Maven project

I have created a scala maven project, I wrote a simple programme scala then I did RunAs -> Maven install, it return Build success, but it dispaly also: [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ myproject --- [INFO]…
vero
  • 1,005
  • 6
  • 16
  • 29
0
votes
1 answer

Exception while building Scala-Maven project on IntelliJ

I am trying to build a Scala-Maven project on IntelliJ IDEA. Right after creating the project, it says build successful. This is how my pom.xml looks like:
Metadata
  • 2,127
  • 9
  • 56
  • 127
0
votes
1 answer

In scala compilation, how to enable "no tail recursion option"

According to this document: https://www.scala-lang.org/old/sites/default/files/linuxsoft_archives/docu/files/tools/scalac.html I'm supposed to use "-g:notc", so I add it into my scala-maven-plugin configuration:
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
1 answer

Add generated java sources to mixed scala-java project

I am currently working on a project where I want to generate an ANTLR parser from a grammar and continue working with that parser inside my Scala code. For this, I set up a new project with the following POM file:
Adracus
  • 891
  • 1
  • 7
  • 19