swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.89k stars 6.03k forks source link

swagger codegen maven dependency cannot download #2005

Closed laki88 closed 8 years ago

laki88 commented 8 years ago

I went to the below link. it goes to an error page. http://mvnrepository.com/artifact/io.swagger/swagger-codegen

wing328 commented 8 years ago

Please try https://oss.sonatype.org/index.html#nexus-search;quick~swagger-codegen instead.

wing328 commented 8 years ago

There's also an online generator: https://github.com/swagger-api/swagger-codegen#online-generators

laki88 commented 8 years ago

Thanks a lot for the quick response wing328. When I generate via online generator I have to carefully copy generated sources to my project manually. Anyway If I generate via maven plugin, source will be generated in the specified location in the project. The only thing I have to do is issuing maven clean install command. I tried adding 2.1.6-SNAPSHOT as plugin version. but it says that dependency version could not be resolved.

laki88 commented 8 years ago

I could be able to build the project by removing version property in plugin definition