hi Jin, Could you try this in your measure pom.xml
<plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <id>compile</id> <goals> <goal>compile</goal> <goal>testCompile</goal> </goals> <phase>compile</phase> </execution> </executions> <configuration> <scalaVersion>${scala.version}</scalaVersion> </configuration> </plugin> tell us whether this fix your issue or not? Thanks, William On Tue, Jun 19, 2018 at 3:48 PM, William Guo <gu...@apache.org> wrote: > hi Jin, > > Could you try to follow this solution, and tell me the result. > > https://github.com/NersesAM/scala-maven-java9/blob/ > 3a55caffa333b5c7de56e4376e4a24888f0a4add/pom.xml#L29-L36 > > > Thanks, > William > > On Tue, Jun 19, 2018 at 2:43 PM, Jin Liu <liu...@vmware.com> wrote: > >> I'm using openjdk-1.8.0 & scala_2.11, but I see intellij scala maven >> plugin is maven-scala-plugin/2.15.2 >> >> Is there something wrong? >> >> [DEBUG] use java command with args in file forced : false >> [DEBUG] plugin jar to add :/home/king/.m2/repository/org >> /scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar >> [DEBUG] cmd: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre/bin/java >> -classpath /home/king/.m2/repository/org/scala-lang/modules/scala-xml_2 >> .11/1.0.4/scala-xml_2.11-1.0.4.jar:/home/king/.m2/repository >> /org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/ >> scala-parser-combinators_2.11-1.0.4.jar:/home/king/.m2/ >> repository/org/scala-lang/scala-reflect/2.11.8/scala- >> reflect-2.11.8.jar:/home/king/.m2/repository/org/scala-lang/ >> scala-library/2.11.4/scala-library-2.11.4.jar:/home/king/ >> .m2/repository/org/scala-lang/scala-compiler/2.11.8/scala- >> compiler-2.11.8.jar:/home/king/.m2/repository/org/scala- >> lang/scala-library/2.11.6/scala-library-2.11.6.jar:/ >> home/king/.m2/repository/org/scala-lang/scala-library/2.11. >> 8/scala-library-2.11.8.jar:/home/king/.m2/repository/org/ >> scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar >> -Xbootclasspath/a:/home/king/.m2/repository/org/scala-lang/s >> cala-library/2.11.8/scala-library-2.11.8.jar >> org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main >> /tmp/scala-maven-5940697994042697063.args >> [ERROR] error: error while loading <root>, Error accessing >> /home/king/.m2/repository/com/esotericsoftware/kryo-shaded/3 >> .0.3/kryo-shaded-3.0.3.jar >> [ERROR] error: scala.reflect.internal.MissingRequirementError: object >> java.lang.Object in compiler mirror not found. >> [ERROR] at scala.reflect.internal.Missing >> RequirementError$.signal(MissingRequirementError.scala:17) >> [ERROR] at scala.reflect.internal.Missing >> RequirementError$.notFound(MissingRequirementError.scala:18) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass( >> Mirrors.scala:53) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass( >> Mirrors.scala:45) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass( >> Mirrors.scala:45) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass( >> Mirrors.scala:66) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getClassByName( >> Mirrors.scala:102) >> [INFO] at scala.reflect.internal.Mirrors$RootsBase.getRequiredClass( >> Mirrors.scala:105) >> [INFO] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectCl >> ass$lzycompute(Definitions.scala:257) >> [INFO] at scala.reflect.internal.Definitions$DefinitionsClass.ObjectCl >> ass(Definitions.scala:257) >> [INFO] at scala.reflect.internal.Definitions$DefinitionsClass.init( >> Definitions.scala:1394) >> [INFO] at scala.tools.nsc.Global$Run.<init>(Global.scala:1215) >> [INFO] at scala.tools.nsc.Driver.doCompile(Driver.scala:31) >> [INFO] at scala.tools.nsc.MainClass.doCompile(Main.scala:23) >> [INFO] at scala.tools.nsc.Driver.process(Driver.scala:51) >> [INFO] at scala.tools.nsc.Driver.main(Driver.scala:64) >> [INFO] at scala.tools.nsc.Main.main(Main.scala) >> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:62) >> [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> [INFO] at java.lang.reflect.Method.invoke(Method.java:498) >> [INFO] at org_scala_tools_maven_executions.MainHelper.runMain(MainHelp >> er.java:161) >> [INFO] at org_scala_tools_maven_executions.MainWithArgsInFile.main( >> MainWithArgsInFile.java:26) >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Apache Griffin 0.2.0-incubating-SNAPSHOT ........... SUCCESS [ >> 1.356 s] >> [INFO] Apache Griffin :: UI :: Default UI ................. SUCCESS [ >> 59.632 s] >> [INFO] Apache Griffin :: Web Service ...................... SUCCESS >> [01:06 min] >> [INFO] Apache Griffin :: Measures ......................... FAILURE [ >> 5.903 s] >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] BUILD FAILURE >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Total time: 02:13 min >> [INFO] Finished at: 2018-06-19T14:37:20+08:00 >> [INFO] Final Memory: 82M/1098M >> [INFO] ------------------------------------------------------------ >> ------------ >> >> -----Original Message----- >> From: William Guo <gu...@apache.org> >> Sent: 2018年6月15日 22:28 >> To: dev@griffin.incubator.apache.org >> Subject: Re: mvn build error, who knows how to fix >> >> hi Jin, >> >> Could you tell us your scala and java verison? >> >> Thanks, >> William >> >> On Fri, Jun 15, 2018 at 4:57 PM, Jin Liu <liu...@vmware.com> wrote: >> >> > Hi, >> > >> > I hit build failure recently below, who knows how to fix it >> > >> > [WARNING] Expected all dependencies to require Scala version: 2.11.8 >> > [WARNING] org.apache.griffin:measure:0.2.0-incubating-SNAPSHOT >> > requires scala version: 2.11.8 [WARNING] com.twitter:chill_2.11:0.8.0 >> > requires scala version: 2.11.7 [WARNING] Multiple versions of scala >> > libraries detected! >> > [INFO] includes = [**/*.java,**/*.scala,] [INFO] excludes = [] [INFO] >> > /home/king/source/github/incubator-griffin/measure/src/main/scala:-1: >> > info: compiling >> > [INFO] Compiling 124 source files to /home/king/source/github/ >> > incubator-griffin/measure/target/classes at 1529052254149 [ERROR] >> > error: error while loading <root>, Error accessing >> > /home/king/.m2/repository/com/esotericsoftware/kryo-shaded/ >> > 3.0.3/kryo-shaded-3.0.3.jar >> > [ERROR] error: scala.reflect.internal.MissingRequirementError: object >> > java.lang.Object in compiler mirror not found. >> > [ERROR] at scala.reflect.internal.Missing >> RequirementError$.signal( >> > MissingRequirementError.scala:17) >> > [ERROR] at scala.reflect.internal.MissingRequirementError$. >> > notFound(MissingRequirementError.scala:18) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getModuleOrClass(Mirrors.scala:53) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getModuleOrClass(Mirrors.scala:45) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getModuleOrClass(Mirrors.scala:45) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getModuleOrClass(Mirrors.scala:66) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getClassByName(Mirrors.scala:102) >> > [INFO] at scala.reflect.internal.Mirrors$RootsBase. >> > getRequiredClass(Mirrors.scala:105) >> > [INFO] at scala.reflect.internal.Definitions$DefinitionsClass. >> > ObjectClass$lzycompute(Definitions.scala:257) >> > [INFO] at scala.reflect.internal.Definitions$DefinitionsClass. >> > ObjectClass(Definitions.scala:257) >> > [INFO] at scala.reflect.internal.Definitions$DefinitionsClass. >> > init(Definitions.scala:1394) >> > [INFO] at scala.tools.nsc.Global$Run.<init>(Global.scala:1215) >> > [INFO] at scala.tools.nsc.Driver.doCompile(Driver.scala:31) >> > [INFO] at scala.tools.nsc.MainClass.doCompile(Main.scala:23) >> > [INFO] at scala.tools.nsc.Driver.process(Driver.scala:51) >> > [INFO] at scala.tools.nsc.Driver.main(Driver.scala:64) >> > [INFO] at scala.tools.nsc.Main.main(Main.scala) >> > [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke( >> > NativeMethodAccessorImpl.java:62) >> > [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke( >> > DelegatingMethodAccessorImpl.java:43) >> > [INFO] at java.lang.reflect.Method.invoke(Method.java:498) >> > [INFO] at org_scala_tools_maven_executions.MainHelper.runMain( >> > MainHelper.java:161) >> > [INFO] at org_scala_tools_maven_executions.MainWithArgsInFile. >> > main(MainWithArgsInFile.java:26) >> > [INFO] ------------------------------------------------------------ >> > ------------ >> > [INFO] Reactor Summary: >> > [INFO] >> > [INFO] Apache Griffin 0.2.0-incubating-SNAPSHOT ........... SUCCESS [ >> > 1.456 s] >> > [INFO] Apache Griffin :: UI :: Default UI ................. SUCCESS >> > [01:01 min] [INFO] Apache Griffin :: Web Service >> > ...................... SUCCESS [01:00 min] [INFO] Apache Griffin :: >> > Measures ......................... FAILURE [ >> > 6.686 s] >> > [INFO] ------------------------------------------------------------ >> > ------------ >> > [INFO] BUILD FAILURE >> > [INFO] ------------------------------------------------------------ >> > ------------ >> > [INFO] Total time: 02:10 min >> > [INFO] Finished at: 2018-06-15T16:44:15+08:00 [INFO] Final Memory: >> > 84M/793M [INFO] >> > ------------------------------------------------------------ >> > ------------ >> > [ERROR] Failed to execute goal >> > org.scala-tools:maven-scala-plugin:2.15.2:compile >> > (compile) on project measure: wrap: org.apache.commons.exec.Execut >> eException: >> > Process exited with an error: 1(Exit value: 1) -> [Help 1] [ERROR] >> > [ERROR] To see the full stack trace of the errors, re-run Maven with >> > the -e switch. >> > [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> > [ERROR] >> > [ERROR] For more information about the errors and possible solutions, >> > please read the following articles: >> > [ERROR] [Help 1] >> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcwiki. >> > apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2F&data=02%7C01%7Cliujin%40v >> > mware.com%7C5c990ac7243f4dddc78408d5d2cc2bc6%7Cb39138ca3cee4b4aa4d6cd8 >> > 3d9dd62f0%7C1%7C1%7C636646696710662919&sdata=P%2BloqammBRBbH6Xvr6utw2l >> > elmzZQYU9cBlPL6UIhak%3D&reserved=0 >> > MojoExecutionException >> > [ERROR] >> > [ERROR] After correcting the problems, you can resume the build with >> > the command >> > [ERROR] mvn <goals> -rf :measure >> > >> > >