Hi All,
I was trying to generate stubs by using Swagger according to their
instructions[1]. I have set up the environment as below:
1. Swagger:
version: scala-2.10.4
have set the classpath:
export SCALA_HOME=/home/bhagya/programFiles/scala-2.10.4
export PATH=${PATH}:$SCALA_HOME/bin
have edited the build.sbt as below:
scalaVersion := "2.10.4"
2. Java version: 1.7.0_60
3. Maven version: 3.0.5
I have run the ./sbt assembly to build from the source code. The build was
successful.
But I couldn't execute the ./bin/java-petstore.sh command. I am getting
following message. But I have *already modified the build.sbt* as it is
required.
*Message: Please set scalaVersion := "2.10.4" in build.sbt and run ./sbt
assembly*
I have tried by changing the scala version. With the latest version -
2.11.1, there were compilation errors with existing code base.
Swagger-codegen comes up with 2.10.0 as scala version. But 2.10.0 is not
available[2]. I have tried with 2.10.1, but the result is same.
*Would appreciate if you can help me on this issue.*
[1]. https://github.com/wordnik/swagger-codegen
[2]. http://www.scala-lang.org/download/all.html
Thank you.
--
Best Regards,
Krishanthi Bhagya Samarasinghe
Senior Software engineer
Mobile: +94 716028280
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev