-
-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Description
I created a sample project via mvn archetype:generate from net.alchim31.maven:scala-archetype-simple version 1.7. I only changed the version number of the scala-maven-plugin to 4.2.4
Please find the sample project here: https://github.com/tuhlmann/scala-maven-plugin-error
After cloning the repo, simply issue a mvn compile to see the error.
The used jdk is Oracle Java 8.
The error thrown is
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.2.4:compile (default) on project example: Execution default of goal net.alchim31.maven:scala-maven-plugin:4.2.4:compile failed: An API incompatibility was encountered while executing net.alchim31.maven:scala-maven-plugin:4.2.4:compile: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>net.alchim31.maven:scala-maven-plugin:4.2.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/tuhlmann/.m2/repository/net/alchim31/maven/scala-maven-plugin/4.2.4/scala-maven-plugin-4.2.4.jar
...
[ERROR] urls[68] = file:/C:/Users/tuhlmann/.m2/repository/org/scala-lang/modules/scala-java8-compat_2.12/0.9.0/scala-java8-compat_2.12-0.9.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
For the full log please see https://github.com/tuhlmann/scala-maven-plugin-error/blob/master/README.md
As soon as I change the version to 4.2.0 or 3.3.2 it compiles fine.
Also, using 4.2.4 on Ubuntu 18.04 or macOS works fine, the problem only occurs on Windows, no matter if Oracke jdk or openJdk 8 is used.
Thanks for your help!
EnverOsmanov
Metadata
Metadata
Assignees
Labels
No labels