Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] swagger-codegen-maven-plugin v2.4.6 fails to generate invoker pkg ApiClient, regression from v2.4.5 #9543

Closed
chrisinmtown opened this issue Jul 3, 2019 · 1 comment

Comments

@chrisinmtown
Copy link

Description

The version 2.4.6 swagger-codegen-maven-plugin behavior differs from version 2.4.5, it fails to generate the "invoker" package which has (among others) the class ApiClient.

Swagger-codegen version

2.4.6, I believe this behavior is a regression of behavior from 2.4.5.

Swagger declaration file content or url

The generator does not complain about the spec, and I reproduced this behavior on two different API spec files, so I am not including a spec here.

Command line used for generation

mvn clean install

Steps to reproduce

POM file configured as below; all the ${foo} things are just various strings, nothing functional.

                        <plugin>
                                <groupId>io.swagger</groupId>
                                <artifactId>swagger-codegen-maven-plugin</artifactId>
                                <version>2.4.6</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>generate</goal>
                                                </goals>
                                                <configuration>
                                                        <inputSpec>${project.basedir}/src/main/resources/my.yaml</inputSpec>
                                                        <language>java</language>
                                                        <configOptions>
                                                                <groupId>${project.groupId}</groupId>
                                                                <artifactId>${project.artifactId}</artifactId>
                                                                <artifactVersion>${project.version}</artifactVersion>
                                                                <artifactUrl>www.me.org</artifactUrl>
                                                                <artifactDescription>client library</artifactDescription>
                                                                <library>resttemplate</library>
                                                                <java8>true</java8>
                                                                <dateLibrary>java8</dateLibrary>
                                                                <licenseName>Apache 2.0</licenseName>
                                                                <licenseUrl>https://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
                                                        </configOptions>
                                                        <packageName>${client.base.package.name}</packageName>
                                                        <modelPackage>${client.base.package.name}.model</modelPackage>
                                                        <apiPackage>${client.base.package.name}.api</apiPackage>
                                                        <invokerPackage>${client.base.package.name}.invoker</invokerPackage>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>

Related issues/PRs

I cannot find anyone complaining about 2.4.6 (yet).

Suggest a fix/enhancement

I don't have a fix.

@chrisinmtown chrisinmtown changed the title [JAVA] swagger-codegen-maven-plugin v2.4.6 fails to generate invoker pkg ApiClient, regression from v2.4.5 [Java] swagger-codegen-maven-plugin v2.4.6 fails to generate invoker pkg ApiClient, regression from v2.4.5 Jul 3, 2019
@chrisinmtown
Copy link
Author

Duplicate of #9540. Sorry for the clutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant