swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[Spring][maven-plugin] templateDirectory attribute does not work.

Open gokhansari opened this issue 9 years ago • 3 comments

Description

<templateDirectory> attribute does not work. Instead of my templates, plugin uses default templates. This attribute was working on on 2.2.1.

Swagger-codegen version

2.2.2

Steps to reproduce

Just change version of the plugin from 2.2.1 to 2.2.2, leave the rest same.

gokhansari avatar Mar 06 '17 08:03 gokhansari

This issue still also exists on version 3.0.27 of the codegen maven-plugin for language spring on windows 11 os.

JohannesProbst avatar Oct 09 '21 12:10 JohannesProbst

This issue seems to be resolved on version 3.0.29 of the codegen maven-plugin for language spring

JohannesProbst avatar Oct 12 '21 11:10 JohannesProbst

Correction: it works for pojo.mustache but not for api.mustache. On api.mustache i get a FileNotFoundException where it (URLTemplateLoader of handlebars-4.1.2.jar) prefixes the correct resolved absolute path with /handlebars/JavaSpring/ and corrupts it so.

JohannesProbst avatar Oct 18 '21 06:10 JohannesProbst