question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support build target for Scala 2.11

See original GitHub issue

Hi,

I’m using abris 3.1.1 for Scala 2.11 from https://mvnrepository.com/artifact/za.co.absa/abris_2.11/3.1.1

I need to make some changes to abris in order to add JMX metrics, by using https://github.com/groupon/spark-metrics

I cloned your github repo, but then realized the build only supports Scala 2.12. Currently my project is compiled against Scala 2.11, so I need to be able to compile abris for Scala 2.11.

From your git log, this looks like the commit you migrated to Scala 2.12, dated back in 19 Sep 2019

4178e5b264bc38e8af6bb570bf91226142c15539

I tried checkout the previous commit before the above, & do mvn package. It throws this error:

[INFO] /Users/shuwnyuan/ABRiS/src/main/scala: -1: info: compiling [INFO] Compiling 52 source files to /Users/shuwnyuan/ABRiS/target/classes at 1588921738756 [ERROR] error: scala.reflect.internal.MissingRequirementError: object java.lang.Object in compiler mirror not found. [ERROR] at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17) [ERROR] at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:45) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:102) [ERROR] at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:105) [ERROR] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:257) [ERROR] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:257) [ERROR] at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1394) [ERROR] at scala.tools.nsc.Global$Run.<init>(Global.scala:1215) [ERROR] at scala.tools.nsc.Driver.doCompile(Driver.scala:31) [ERROR] at scala.tools.nsc.MainClass.doCompile(Main.scala:23) [ERROR] at scala.tools.nsc.Driver.process(Driver.scala:51) [ERROR] at scala.tools.nsc.Driver.main(Driver.scala:64) [ERROR] at scala.tools.nsc.Main.main(Main.scala) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [ERROR] at scala_maven_executions.MainHelper.runMain(MainHelper.java:164) [ERROR] at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.112 s [INFO] Finished at: 2020-05-08T15:08:59+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.3.2:compile (scala-compile) on project abris_2.11: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

I’m compiling this on my Mac, here’s my Java version:

java -version java version “1.8.0_102” Java™ SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot™ 64-Bit Server VM (build 25.102-b14, mixed mode)

Any pointer how to work around this?

Can you provide official build target for Scala 2.11 in your github repo?

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
felipemmelocommented, May 8, 2020

Hi @shuwnyuantee , have you checked this?

1reaction
felipemmelocommented, May 13, 2020

Hi @shuwnyuantee , happy to read that. Closing this issue then. Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does sbt build against scala 2.11? - Stack Overflow
One way to work around this is to use Fork API. sbt 0.13 is capable of building Scala 2.11 source using Scala 2.11...
Read more >
sbt Reference Manual — Cross-building
Define the versions of Scala to build against in the crossScalaVersions setting. ... which by default is target/scala-<scala binary version> .
Read more >
Visual Studio Code | Metals - Scalameta
Metals is developed on many operating systems and every PR is tested on Ubuntu, Windows and MacOS. Scala 2.13, 2.12, 2.11 and Scala...
Read more >
KIP-531: Drop support for Scala 2.11 in Kafka 2.5
Introduce a shim `core` module that targets the default scala version. This useful for applications that do not require a specific Scala version....
Read more >
Scala 2.11.1 is now available!
The Scala 2.11.x series targets Java 6, with (evolving) experimental support for Java 8. In 2.11.1 ... Other build tools are also supported....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found