Created
April 15, 2014 00:32
-
-
Save butlermh/10692489 to your computer and use it in GitHub Desktop.
Problems compiling Sonar-Scala plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mark@mark-Aspire-5750G:~/qf-workspace2/sonar-scala$ mvn install | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Sonar Scala Plugin 0.3-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[WARNING] The POM for org.scalariform:scalariform_2.10:jar:0.1.5-SNAPSHOT is missing, no dependency information available | |
[INFO] | |
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sonar-scala-plugin --- | |
[INFO] Checking for local modifications: skipped. | |
[INFO] Updating project files from SCM: skipped. | |
[INFO] Executing: /bin/sh -c cd /home/mark/qf-workspace2/sonar-scala && svn --non-interactive info | |
[INFO] Working directory: /home/mark/qf-workspace2/sonar-scala | |
[INFO] Storing buildNumber: 0 at timestamp: 1397521279150 | |
[INFO] Executing: /bin/sh -c cd /home/mark/qf-workspace2/sonar-scala && svn --non-interactive info | |
[INFO] Working directory: /home/mark/qf-workspace2/sonar-scala | |
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH | |
[INFO] | |
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce) @ sonar-scala-plugin --- | |
[INFO] | |
[INFO] --- sonar-packaging-maven-plugin:1.4:check-dependencies (default-check-dependencies) @ sonar-scala-plugin --- | |
[INFO] | |
[INFO] --- maven-license-plugin:1.9.0:format (add-license-headers) @ sonar-scala-plugin --- | |
[INFO] Updating license headers... | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sonar-scala-plugin --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /home/mark/qf-workspace2/sonar-scala/src/main/resources | |
[INFO] | |
[INFO] --- scala-maven-plugin:3.1.6:compile (scala-compile) @ sonar-scala-plugin --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ sonar-scala-plugin --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sonar-scala-plugin --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 29 resources | |
[INFO] | |
[INFO] --- scala-maven-plugin:3.1.6:testCompile (scala-test-compile) @ sonar-scala-plugin --- | |
[INFO] Nothing to compile - all classes are up to date | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.6:test (default-test) @ sonar-scala-plugin --- | |
[INFO] Surefire report directory: /home/mark/qf-workspace2/sonar-scala/target/surefire-reports | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.sonar.plugins.scala.metrics.FunctionCounterSpec | |
org.apache.maven.surefire.booter.SurefireExecutionException: Could not initialize class org.sonar.plugins.scala.compiler.Compiler$; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.sonar.plugins.scala.compiler.Compiler$ | |
java.lang.NoClassDefFoundError: Could not initialize class org.sonar.plugins.scala.compiler.Compiler$ | |
at org.sonar.plugins.scala.compiler.Parser.parse(Parser.scala:54) | |
at org.sonar.plugins.scala.compiler.Parser.parse(Parser.scala:38) | |
at org.sonar.plugins.scala.metrics.FunctionCounter$.countFunctions(FunctionCounter.scala:106) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec$$anonfun$1.apply$mcV$sp(FunctionCounterSpec.scala:31) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec$$anonfun$1.apply(FunctionCounterSpec.scala:31) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec$$anonfun$1.apply(FunctionCounterSpec.scala:31) | |
at org.scalatest.FlatSpec$$anon$1.apply(FlatSpec.scala:2977) | |
at org.scalatest.Suite$class.withFixture(Suite.scala:1974) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec.withFixture(FunctionCounterSpec.scala:28) | |
at org.scalatest.FlatSpec$class.invokeWithFixture$1(FlatSpec.scala:2974) | |
at org.scalatest.FlatSpec$$anonfun$runTest$1.apply(FlatSpec.scala:2983) | |
at org.scalatest.FlatSpec$$anonfun$runTest$1.apply(FlatSpec.scala:2983) | |
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:198) | |
at org.scalatest.FlatSpec$class.runTest(FlatSpec.scala:2983) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec.runTest(FunctionCounterSpec.scala:28) | |
at org.scalatest.FlatSpec$$anonfun$runTests$1.apply(FlatSpec.scala:3045) | |
at org.scalatest.FlatSpec$$anonfun$runTests$1.apply(FlatSpec.scala:3045) | |
at org.scalatest.SuperEngine$$anonfun$org$scalatest$SuperEngine$$runTestsInBranch$1.apply(Engine.scala:260) | |
at org.scalatest.SuperEngine$$anonfun$org$scalatest$SuperEngine$$runTestsInBranch$1.apply(Engine.scala:249) | |
at scala.collection.immutable.List.foreach(List.scala:318) | |
at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:249) | |
at org.scalatest.SuperEngine$$anonfun$org$scalatest$SuperEngine$$runTestsInBranch$1.apply(Engine.scala:265) | |
at org.scalatest.SuperEngine$$anonfun$org$scalatest$SuperEngine$$runTestsInBranch$1.apply(Engine.scala:249) | |
at scala.collection.immutable.List.foreach(List.scala:318) | |
at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:249) | |
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:326) | |
at org.scalatest.FlatSpec$class.runTests(FlatSpec.scala:3045) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec.runTests(FunctionCounterSpec.scala:28) | |
at org.scalatest.Suite$class.run(Suite.scala:2303) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec.org$scalatest$FlatSpec$$super$run(FunctionCounterSpec.scala:28) | |
at org.scalatest.FlatSpec$$anonfun$run$1.apply(FlatSpec.scala:3092) | |
at org.scalatest.FlatSpec$$anonfun$run$1.apply(FlatSpec.scala:3092) | |
at org.scalatest.SuperEngine.runImpl(Engine.scala:362) | |
at org.scalatest.FlatSpec$class.run(FlatSpec.scala:3092) | |
at org.sonar.plugins.scala.metrics.FunctionCounterSpec.run(FunctionCounterSpec.scala:28) | |
at org.scalatest.junit.JUnitRunner.run(JUnitRunner.scala:94) | |
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) | |
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120) | |
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103) | |
at org.apache.maven.surefire.Surefire.run(Surefire.java:169) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:601) | |
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) | |
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 4.900s | |
[INFO] Finished at: Mon Apr 14 17:21:22 PDT 2014 | |
[INFO] Final Memory: 16M/300M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on project sonar-scala-plugin: There are test failures. | |
[ERROR] | |
[ERROR] Please refer to /home/mark/qf-workspace2/sonar-scala/target/surefire-reports for the individual test results. | |
[ERROR] -> [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException | |
mark@mark-Aspire-5750G:~/qf-workspace2/sonar-scala$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment