A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/swagger-api/swagger-codegen/issues/8784 below:

meta command doesn't work - java.lang.RuntimeException: can't load template codegen/pom.mustache · Issue #8784 · swagger-api/swagger-codegen · GitHub

Description

Issue #7845 reappeared in v. 3.0.1. The meta command

java -jar swagger-codegen-cli-3.0.1.jar meta -o myCodegenOAS3 -n myCodegenOAS3 -p com.mycompany.swagger

outputs the following error, and the custom generator is not created.

17:44:39.457 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'langs'
17:44:39.457 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'version'
17:44:39.482 [Thread-1] INFO io.swagger.codegen.v3.cli.cmd.Meta - writing to folder [C:\Soft\Development\Swagger\myCodegenOAS3]
17:44:39.547 [Thread-1] ERROR io.swagger.codegen.v3.AbstractGenerator - v2\codegen\pom.mustache (The system cannot find the path specified)
17:44:39.547 [Thread-1] ERROR io.swagger.codegen.v3.AbstractGenerator - can't load template v2\codegen\pom.mustache
Exception in thread "Thread-1" java.lang.RuntimeException: can't load template v2\codegen\pom.mustache
        at io.swagger.codegen.v3.AbstractGenerator.readTemplate(AbstractGenerator.java:51)
        at io.swagger.codegen.v3.cli.cmd.Meta.processFiles(Meta.java:92)
        at io.swagger.codegen.v3.cli.cmd.Meta.lambda$run$0(Meta.java:76)
        at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
        at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
        at io.swagger.codegen.v3.cli.cmd.Meta.run(Meta.java:76)
        at java.lang.Thread.run(Unknown Source)
Swagger-codegen version

3.0.1, downloaded from:
https://oss.sonatype.org/content/repositories/releases/io/swagger/codegen/v3/swagger-codegen-cli/3.0.1/swagger-codegen-cli-3.0.1.jar

Java 1.8.0_181 64-bit
Windows 7 64-bit

Swagger declaration file content or url

n/a

Command line used for generation

See above

Steps to reproduce

See above


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4