Skip to content

Instantly share code, notes, and snippets.

@canadaduane
Created February 4, 2014 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canadaduane/8814107 to your computer and use it in GitHub Desktop.
Save canadaduane/8814107 to your computer and use it in GitHub Desktop.
~/I/pandarus git:master ❯❯❯ ./build-and-install-gem
++ dirname ./build-and-install-gem
+ cd .
+ rm -f './clients/ruby/lib/pandarus/models/*.rb'
+ mvn clean package scala:run -Dlauncher=ruby-codegen
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building client-generator 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ client-generator ---
[INFO] Deleting /Users/duane/Instructure/pandarus/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ client-generator ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/duane/Instructure/pandarus/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ client-generator ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.1.0:compile (default) @ client-generator ---
[WARNING] Expected all dependencies to require Scala version: 2.10.0
[WARNING] com.wordnik:swagger-codegen_2.10:2.0.9-SNAPSHOT requires scala version: 2.10.0
[WARNING] org.json4s:json4s-ast_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.scala-lang:scalap:2.10.0 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-jackson_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] io.backchat.inflector:scala-inflector_2.10:1.3.5 requires scala version: 2.10.0
[WARNING] org.rogach:scallop_2.10:0.9.4 requires scala version: 2.10.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/duane/Instructure/pandarus/codegen/src:-1: info: compiling
[INFO] Compiling 1 source files to /Users/duane/Instructure/pandarus/target/classes at 1391553649432
[INFO] prepare-compile in 0 s
[INFO] compile in 3 s
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ client-generator ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/duane/Instructure/pandarus/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ client-generator ---
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.1.0:testCompile (default) @ client-generator ---
[WARNING] Expected all dependencies to require Scala version: 2.10.0
[WARNING] com.wordnik:swagger-codegen_2.10:2.0.9-SNAPSHOT requires scala version: 2.10.0
[WARNING] org.json4s:json4s-ast_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.scala-lang:scalap:2.10.0 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-jackson_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] io.backchat.inflector:scala-inflector_2.10:1.3.5 requires scala version: 2.10.0
[WARNING] org.rogach:scallop_2.10:0.9.4 requires scala version: 2.10.1
[WARNING] Multiple versions of scala libraries detected!
[WARNING] No source files found.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ client-generator ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ client-generator ---
[INFO] Building jar: /Users/duane/Instructure/pandarus/target/client-generator-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ client-generator ---
[INFO] Copying json4s-core_2.10-3.2.5.jar to /Users/duane/Instructure/pandarus/target/lib/json4s-core_2.10-3.2.5.jar
[INFO] Copying jackson-annotations-2.2.2.jar to /Users/duane/Instructure/pandarus/target/lib/jackson-annotations-2.2.2.jar
[INFO] Copying swagger-codegen_2.10-2.0.9-SNAPSHOT.jar to /Users/duane/Instructure/pandarus/target/lib/swagger-codegen_2.10-2.0.9-SNAPSHOT.jar
[INFO] Copying commons-io-2.3.jar to /Users/duane/Instructure/pandarus/target/lib/commons-io-2.3.jar
[INFO] Copying slf4j-api-1.6.1.jar to /Users/duane/Instructure/pandarus/target/lib/slf4j-api-1.6.1.jar
[INFO] Copying scallop_2.10-0.9.4.jar to /Users/duane/Instructure/pandarus/target/lib/scallop_2.10-0.9.4.jar
[INFO] Copying json4s-jackson_2.10-3.2.5.jar to /Users/duane/Instructure/pandarus/target/lib/json4s-jackson_2.10-3.2.5.jar
[INFO] Copying scala-inflector_2.10-1.3.5.jar to /Users/duane/Instructure/pandarus/target/lib/scala-inflector_2.10-1.3.5.jar
[INFO] Copying scalate-util_2.10-1.6.1.jar to /Users/duane/Instructure/pandarus/target/lib/scalate-util_2.10-1.6.1.jar
[INFO] Copying scalate-core_2.10-1.6.1.jar to /Users/duane/Instructure/pandarus/target/lib/scalate-core_2.10-1.6.1.jar
[INFO] Copying scala-reflect-2.10.1.jar to /Users/duane/Instructure/pandarus/target/lib/scala-reflect-2.10.1.jar
[INFO] Copying json4s-ast_2.10-3.2.5.jar to /Users/duane/Instructure/pandarus/target/lib/json4s-ast_2.10-3.2.5.jar
[INFO] Copying jackson-databind-2.2.2.jar to /Users/duane/Instructure/pandarus/target/lib/jackson-databind-2.2.2.jar
[INFO] Copying scalap-2.10.0.jar to /Users/duane/Instructure/pandarus/target/lib/scalap-2.10.0.jar
[INFO] Copying scala-compiler-2.10.0.jar to /Users/duane/Instructure/pandarus/target/lib/scala-compiler-2.10.0.jar
[INFO] Copying scala-library-2.10.0.jar to /Users/duane/Instructure/pandarus/target/lib/scala-library-2.10.0.jar
[INFO] Copying mockito-all-1.9.0.jar to /Users/duane/Instructure/pandarus/target/lib/mockito-all-1.9.0.jar
[INFO] Copying jackson-core-2.2.2.jar to /Users/duane/Instructure/pandarus/target/lib/jackson-core-2.2.2.jar
[INFO] Copying paranamer-2.5.6.jar to /Users/duane/Instructure/pandarus/target/lib/paranamer-2.5.6.jar
[INFO]
[INFO] >>> scala-maven-plugin:3.1.0:run (default-cli) @ client-generator >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ client-generator ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/duane/Instructure/pandarus/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ client-generator ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- scala-maven-plugin:3.1.0:compile (default) @ client-generator ---
[WARNING] Expected all dependencies to require Scala version: 2.10.0
[WARNING] com.wordnik:swagger-codegen_2.10:2.0.9-SNAPSHOT requires scala version: 2.10.0
[WARNING] org.json4s:json4s-ast_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.scala-lang:scalap:2.10.0 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-jackson_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] io.backchat.inflector:scala-inflector_2.10:1.3.5 requires scala version: 2.10.0
[WARNING] org.rogach:scallop_2.10:0.9.4 requires scala version: 2.10.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ client-generator ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/duane/Instructure/pandarus/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ client-generator ---
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.1.0:testCompile (default) @ client-generator ---
[WARNING] Expected all dependencies to require Scala version: 2.10.0
[WARNING] com.wordnik:swagger-codegen_2.10:2.0.9-SNAPSHOT requires scala version: 2.10.0
[WARNING] org.json4s:json4s-ast_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.scala-lang:scalap:2.10.0 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-jackson_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] io.backchat.inflector:scala-inflector_2.10:1.3.5 requires scala version: 2.10.0
[WARNING] org.rogach:scallop_2.10:0.9.4 requires scala version: 2.10.1
[WARNING] Multiple versions of scala libraries detected!
[WARNING] No source files found.
[INFO]
[INFO] <<< scala-maven-plugin:3.1.0:run (default-cli) @ client-generator <<<
[INFO]
[INFO] --- scala-maven-plugin:3.1.0:run (default-cli) @ client-generator ---
[WARNING] Expected all dependencies to require Scala version: 2.10.0
[WARNING] com.wordnik:swagger-codegen_2.10:2.0.9-SNAPSHOT requires scala version: 2.10.0
[WARNING] org.json4s:json4s-ast_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-core_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] org.scala-lang:scalap:2.10.0 requires scala version: 2.10.0
[WARNING] org.json4s:json4s-jackson_2.10:3.2.5 requires scala version: 2.10.0
[WARNING] io.backchat.inflector:scala-inflector_2.10:1.3.5 requires scala version: 2.10.0
[WARNING] org.rogach:scallop_2.10:0.9.4 requires scala version: 2.10.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] launcher 'ruby-codegen' selected => RubyCanvasCodegen
base path is /Users/duane/Instructure/pandarus/api
swagger version: 1.2
basePath:
api version: 1.0
missing models: Set(GroupMembership | Progress, Groups, report, Account)
----------
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: org.fusesource.scalate.TemplateException: scala.reflect.internal.TreeInfo.firstArgument(Lscala/reflect/internal/Trees$Tree;)Lscala/reflect/internal/Trees$Tree;
at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:732)
at org.fusesource.scalate.TemplateEngine.compile(TemplateEngine.scala:346)
at com.wordnik.swagger.codegen.Codegen.compileTemplate(Codegen.scala:184)
at com.wordnik.swagger.codegen.Codegen$$anonfun$3.apply(Codegen.scala:139)
at com.wordnik.swagger.codegen.Codegen$$anonfun$3.apply(Codegen.scala:139)
at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:189)
at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:91)
at com.wordnik.swagger.codegen.Codegen.generateSource(Codegen.scala:139)
at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$bundleToSource$1$$anonfun$apply$6.apply(BasicGenerator.scala:193)
at com.wordnik.swagger.codegen.BasicGenerator$$anonfun$bundleToSource$1$$anonfun$apply$6.apply(BasicGenerator.scala:192)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:109)
at com.wordnik.swagger.codegen.BasicGenerator.bundleToSource(BasicGenerator.scala:191)
at com.wordnik.swagger.codegen.BasicGenerator.generateClient(BasicGenerator.scala:91)
at RubyCanvasCodegen$.main(RubyCanvasCodegen.scala:21)
at RubyCanvasCodegen.main(RubyCanvasCodegen.scala)
... 6 more
Caused by: java.lang.NoSuchMethodError: scala.reflect.internal.TreeInfo.firstArgument(Lscala/reflect/internal/Trees$Tree;)Lscala/reflect/internal/Trees$Tree;
at scala.tools.nsc.typechecker.Typers$Typer.parentTypes(Typers.scala:1550)
at scala.tools.nsc.typechecker.Namers$Namer.templateSig(Namers.scala:861)
at scala.tools.nsc.typechecker.Namers$Namer.getSig$1(Namers.scala:1300)
at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1347)
at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply$mcV$sp(Namers.scala:709)
at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:708)
at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:708)
at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$logAndValidate(Namers.scala:1385)
at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:708)
at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:707)
at scala.tools.nsc.typechecker.Namers$$anon$1.completeImpl(Namers.scala:1496)
at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter$class.complete(Namers.scala:1504)
at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1494)
at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1229)
at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1365)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5119)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
at scala.collection.immutable.List.loop$1(List.scala:164)
at scala.collection.immutable.List.mapConserve(List.scala:180)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2870)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5127)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5404)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5509)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:98)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:461)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:90)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:90)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1156)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:90)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1574)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1548)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1544)
at scala.tools.nsc.Global$Run.compile(Global.scala:1654)
at org.fusesource.scalate.support.ScalaCompiler.compile(ScalaCompiler.scala:100)
at org.fusesource.scalate.TemplateEngine.compileAndLoad(TemplateEngine.scala:757)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.025s
[INFO] Finished at: Tue Feb 04 15:40:57 MST 2014
[INFO] Final Memory: 10M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:run (default-cli) on project client-generator: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240) -> [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/MojoExecutionException
+ cd clients/ruby
++ gem build pandarus.gemspec
++ fgrep -i FILE:
++ awk '{ print $2 }'
+ GEMFILE=pandarus-0.2.2.gem
+ echo 'Gem file: pandarus-0.2.2.gem'
Gem file: pandarus-0.2.2.gem
+ gem install pandarus-0.2.2.gem
Successfully installed pandarus-0.2.2
1 gem installed
Installing ri documentation for pandarus-0.2.2...
Building YARD (yri) index for pandarus-0.2.2...
Installing RDoc documentation for pandarus-0.2.2...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment