All Questions
1,174
questions
-1
votes
0
answers
43
views
Using spark 3.4.1 lib in Java when extending StringRegexExpression to a java class
I am using spark 3.4.1 in maven project where I am configured scala (2.13.8) lang as well. I am trying to create a class Like.java in project by extending spark's StringRegexExpression
package com....
0
votes
0
answers
76
views
Importing libraries with same names
I have two libraries that both follow the same names for importing, but one has more functionality than the other. How do I make scala choose the right library to use when importing? Currently, it’s ...
0
votes
0
answers
58
views
How do I solve this issue "object java.lang.Object in compiler mirror not found"?
I'm trying to restore the project Scala IDE to make it work on a more recent technical environment, i.e. Eclipse 2024-03, JDK17, and Scala 2.12.19.
I'm launching the test suite of this eclipse plugin ...
0
votes
0
answers
61
views
How do I fix my ANTLR scala grammar to avoid parsing error?
I'm using ANTLR to parse scala files.
I found the grammar for scala langage here:
https://github.com/antlr/grammars-v4/blob/master/scala/Scala.g4
I generated the ANTLR classes from the grammar thanks ...
0
votes
1
answer
54
views
Set up a scala project with gradle in intelij
I'm trying to setup a scala project, just to run some basic code and practise scala and gradle.
What is the best method to setup a scala project with intellij and gradle? I'm currently using:
gradle ...
0
votes
1
answer
185
views
Creating a fat jar that is also executable with Maven
I would like to create a fat jar that is also executable using maven (pom.xml). I am aware of the plugins that allow the creation of a jar with dependencies and of a jar that contains a manifest but ...
0
votes
1
answer
51
views
Why does Maven download hundreds of versions of maven-metadata.xml for dependency when I explicitly stated a non-snapshot version in pom.xml?
At my company we're upgrading to a new version of Scala but when I run mvn clean install, near the end of the build, it spends 22 minutes (!) trying to download metadata about these 3rd party ...
0
votes
0
answers
49
views
java.lang.NoSuchMethodError:scala.Predef$.$conforms()Lscala/Predef$$less$colon$less
I am trying submit scala program to spark,but facing this error:NoSuchMethodError.
var spark = SparkSession.builder().enableHiveSupport().getOrCreate()
is the error point.
2.11.12 Scala and 2.4.5 ...
0
votes
1
answer
57
views
Maven Won't Download Dependencies To Folder
I'm trying to get mvn to download Delta Lake to a directory so I can manually mount it in Spark. This is so the Spark application doesn't have to do a web request to mvn for security purposes, ideally ...
0
votes
0
answers
68
views
How to run Scala Unit and Integration tests from Maven
I'm trying to set up Maven so that it can run both Unit and Integration tests using scalatest-maven-plugin, but I can't quite work out how to configure the plugin.
In source code terms my Unit tests ...
1
vote
0
answers
61
views
Maven project, run tests without recompiling everything
I am building Apache Spark on a Z mainframe. I'm using Apache Maven for the build/test. Spark has a ton of tests that run, but due to some resource restrictions for my user on the system, I need to be ...
0
votes
0
answers
280
views
Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.3.1:compile (default-sbt-compile)
Issue while building Maven project with mvn install - Scala Compilation Error
I am encountering an error while trying to build my Maven project using the mvn install command. The error message is as ...
0
votes
1
answer
48
views
How to publish a library with scala sbt to two maven repositories?
I am trying to publish a library to two maven repositories using scala sbt. I am trying to do that because we are migrating our infrastructure and for a time we need to have the library in two ...
1
vote
0
answers
63
views
IntelliJ does not consider scala compiler options configured with maven
How can i tell IntelliJ to use the compiler options configured in maven's net.alchim31.maven/scala-maven-plugin plugin settings in my pom.xml?
Goal
I have a Scala setup with Maven. I use IntelliJ Idea ...
0
votes
1
answer
68
views
maven build getting stuck at initial step
When i try to perform maven build in intellij for Scala project its getting stuck. Even Maven clean is getting stuck after printing first line
"C:\Program Files\Java\jdk-1.8\bin\java.exe" -...