Following the instructions in the README under "making your own codegen modules", running the initial step as follows produces the following result:
me@work:path-to/swagger-codegen$ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar meta \ > -o output/myGeneratorDir -n myGeneratorName -p my.company.mygeneratorname [Thread-1] INFO io.swagger.codegen.cmd.Meta - writing to folder [/mnt/c/path-to/swagger-codegen/output/myGeneratorDir] [Thread-1] ERROR io.swagger.codegen.AbstractGenerator - codegen/pom.mustache (No such file or directory) [Thread-1] ERROR io.swagger.codegen.AbstractGenerator - can't load template codegen/pom.mustache Exception in thread "Thread-1" java.lang.RuntimeException: can't load template codegen/pom.mustache at io.swagger.codegen.AbstractGenerator.readTemplate(AbstractGenerator.java:51) at io.swagger.codegen.cmd.Meta$1.convert(Meta.java:103) at io.swagger.codegen.cmd.Meta$1.convert(Meta.java:92) at ch.lambdaj.function.convert.ConverterIterator.next(ConverterIterator.java:37) at ch.lambdaj.Lambda.convert(Lambda.java:986) at ch.lambdaj.collection.LambdaIterable.doConvert(LambdaIterable.java:142) at ch.lambdaj.collection.LambdaList.convert(LambdaList.java:57) at io.swagger.codegen.cmd.Meta.run(Meta.java:79) at java.lang.Thread.run(Thread.java:748)
This is after cloning the repo, switching to the 3.0.0 branch, and running mvn clean package
, which executed successfully.
This also occurs if I change to the default values like output/myLibrary
, so it's not an issue of some parts of the codebase hardcoding those values.
3.0.0
Also, Apache Maven version 3.3.9, and JDK version 8.
The same error occurs whether I run in Windows Subsystem for Linux's bash shell, or Windows PowerShell.
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