Scoverage Examples : Maven build failure

109 views
Skip to first unread message

Parshant Sehrawat

unread,
Dec 3, 2014, 3:01:15 AM12/3/14
to scala-code-c...@googlegroups.com
I tried with the latest examples code from github, and tried to build it using maven. But the build is failing. Can anyone help in this

C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master>mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Test project for scoverage artifacts 0.99.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ scoverage-samples ---
[INFO] Deleting C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master\target
[INFO]
[INFO] --- scala-maven-plugin:3.1.6:add-source (compile) @ scoverage-samples ---
[INFO] Add Source directory: C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master\src\main\scala
[INFO] Add Test Source directory: C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master\src\test\scala
[INFO]
[INFO] --- scala-maven-plugin:3.1.6:add-source (test) @ scoverage-samples ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ scoverage-samples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ scoverage-samples ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.1.6:compile (compile) @ scoverage-samples ---
[INFO] C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master\src\main\scala:-1: info: compiling
[INFO] Compiling 18 source files to C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master\target\classes at 1417593469474
[INFO] compiler plugin: BasicArtifact(org.scoverage,scalac-scoverage-plugin_2.11,0.99.2,null)
[INFO] [scoverage]: Begin pre-instrumentation phase
[INFO] [scoverage]: Pre-instrumentation complete
[ERROR] ======= Position error
[INFO] Overlapping trees (72312,72307)
[INFO] == Ancestor tree [72328] of type Template at [92:240]TypeTreeObjects.scala
[INFO]
[INFO] [L   4        ] #72328  [92:240]        Template   // {
[INFO]
[INFO] == First overlapping tree [72312] of type Select at [208:236]TypeTreeObjects.scala
[INFO]
[INFO] [L   8        ] #72312  [208:236]       Select     // new Container().typeParamAndD
[INFO]
[INFO] == Second overlapping tree [72307] of type TypeTree at [232:235]TypeTreeObjects.scala
[INFO]
[INFO] [L   8        ] #72307  [232:235]       TypeTree   // Any]
[INFO]
[INFO]
[INFO] While validating #72330
[INFO] [L   1        ] #72330  [0:240]         PackageDef // samples
[INFO]
[INFO] Children:
[INFO]   [L   1 P#72330] #2052   [8:38]          Select     // samples
[INFO]   [L   4 P#72330] #72329  [70:240]        ClassDef   // TypeTreeObjects {
[INFO] =======
[ERROR] error: scala.reflect.internal.Positions$ValidateException: Overlapping trees (72312,72307)
[ERROR]         at scala.reflect.internal.Positions$class.positionError$1(Positions.scala:105)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:135)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:145)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:145)
[ERROR]         at scala.reflect.internal.Positions$class.validatePositions(Positions.scala:150)
[ERROR]         at scala.reflect.internal.SymbolTable.validatePositions(SymbolTable.scala:16)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:103)
[ERROR]         at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:430)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
[ERROR]         at scala.collection.Iterator$class.foreach(Iterator.scala:743)
[ERROR]         at scala.collection.AbstractIterator.foreach(Iterator.scala:1174)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
[ERROR]         at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1625)
[ERROR]         at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1610)
[ERROR]         at scala.tools.nsc.Global$Run.compileSources(Global.scala:1605)
[ERROR]         at scala.tools.nsc.Global$Run.compile(Global.scala:1703)
[ERROR]         at scala.tools.nsc.Driver.doCompile(Driver.scala:34)
[ERROR]         at scala.tools.nsc.MainClass.doCompile(Main.scala:23)
[ERROR]         at scala.tools.nsc.Driver.process(Driver.scala:55)
[ERROR]         at scala.tools.nsc.Driver.main(Driver.scala:68)
[ERROR]         at scala.tools.nsc.Main.main(Main.scala)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR]         at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[ERROR]         at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[ERROR] java.lang.reflect.InvocationTargetException
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR]         at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[ERROR]         at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[ERROR] Caused by: scala.reflect.internal.Positions$ValidateException: Overlapping trees (72312,72307)
[ERROR]         at scala.reflect.internal.Positions$class.positionError$1(Positions.scala:105)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:135)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:145)
[ERROR]         at scala.reflect.internal.Positions$class.validate$1(Positions.scala:145)
[ERROR]         at scala.reflect.internal.Positions$class.validatePositions(Positions.scala:150)
[ERROR]         at scala.reflect.internal.SymbolTable.validatePositions(SymbolTable.scala:16)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:103)
[ERROR]         at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:430)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:94)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:93)
[ERROR]         at scala.collection.Iterator$class.foreach(Iterator.scala:743)
[ERROR]         at scala.collection.AbstractIterator.foreach(Iterator.scala:1174)
[ERROR]         at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:93)
[ERROR]         at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1625)
[ERROR]         at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1610)
[ERROR]         at scala.tools.nsc.Global$Run.compileSources(Global.scala:1605)
[ERROR]         at scala.tools.nsc.Global$Run.compile(Global.scala:1703)
[ERROR]         at scala.tools.nsc.Driver.doCompile(Driver.scala:34)
[ERROR]         at scala.tools.nsc.MainClass.doCompile(Main.scala:23)
[ERROR]         at scala.tools.nsc.Driver.process(Driver.scala:55)
[ERROR]         at scala.tools.nsc.Driver.main(Driver.scala:68)
[ERROR]         at scala.tools.nsc.Main.main(Main.scala)
[ERROR]         ... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.494 s
[INFO] Finished at: 2014-12-03T13:27:54+05:30
[INFO] Final Memory: 11M/146M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.6:compile (compile) on project scoverage-samples: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: -10000 (Exit value: -10000) -> [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:
C:\Users\psehrawa\Desktop\Scala Code Coverage\scoverage-samples-master>



Grzegorz Slowikowski

unread,
Dec 3, 2014, 7:23:45 AM12/3/14
to scala-code-c...@googlegroups.com
Hi

This example "pom.xml" is outdated and contains bugs. Try https://github.com/scoverage/scoverage-maven-samples/

Regards
Grzegorz Slowikowski
Reply all
Reply to author
Forward
0 new messages