Swagger Codegen 2.1.0-M2 error when running generated code

110 views
Skip to first unread message

Venkat Nalla

unread,
Apr 23, 2015, 10:03:43 AM4/23/15
to swagger-sw...@googlegroups.com
Hi I installaed Swagger Codegen 2.1.0-M2 version and was bale to successfully build using mvn package and generate the JAXRS code test.json swagger file. I am getting the following error when try to run the generated code.

Thanks
Venkat

C:\swagger\swagger-codegen-master\test\jaxrs>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building swagger-jaxrs-server 1.0.0
[INFO] ------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik
/swagger-jersey-jaxrs/2.1.0-M2/swagger-jersey-jaxrs-2.1.0-M2.pom
Downloading: https://repo.maven.apache.org/maven2/com/wordnik/swagger-jersey-jax
rs/2.1.0-M2/swagger-jersey-jaxrs-2.1.0-M2.pom
[WARNING] The POM for com.wordnik:swagger-jersey-jaxrs:jar:2.1.0-M2 is missing,
no dependency information available
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik
/swagger-jersey-jaxrs/2.1.0-M2/swagger-jersey-jaxrs-2.1.0-M2.jar
Downloading: https://repo.maven.apache.org/maven2/com/wordnik/swagger-jersey-jax
rs/2.1.0-M2/swagger-jersey-jaxrs-2.1.0-M2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.451 s
[INFO] Finished at: 2015-04-23T09:59:21-04:00
[INFO] Final Memory: 9M/144M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project swagger-jaxrs-server: Could not resolv
e dependencies for project io.swagger:swagger-jaxrs-server:jar:1.0.0: Could not
find artifact com.wordnik:swagger-jersey-jaxrs:jar:2.1.0-M2 in sonatype-snapshot
s (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
[ERROR]

Ron Ratovsky

unread,
Apr 24, 2015, 9:43:49 AM4/24/15
to swagger-sw...@googlegroups.com
That's due to a bug in the template. If you change the version of swagger-jersey-jaxrs in the pom to 1.5.1-M2, it would work fine.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------
http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
Reply all
Reply to author
Forward
0 new messages