swagger-api / swagger-api/swagger-codegen

Swagger-codegen issue while running maven plugin

Open
#8,020 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I'm trying to run swagger-codegen maven plugin for multiple swagger files in following way.

      <plugin>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-codegen-maven-plugin</artifactId>
            <version>2.3.1</version>
            <executions>
                <execution>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <inputSpec>${project.basedir}/src/main/resources/publisher-api.yaml</inputSpec>
                        <language>java</language>
                        <configOptions>
                            <sourceFolder>src/main/java</sourceFolder>
                        </configOptions>
                        <generateApiTests>false</generateApiTests>
                        <apiPackage>org.wso2.carbon.apimgt.rest.integration.tests.store.api</apiPackage>
                        <modelPackage>org.wso2.carbon.apimgt.rest.integration.tests.store.model</modelPackage>
                        <invokerPackage>org.wso2.carbon.apimgt.rest.integration.tests.util</invokerPackage>
                        <skipOverwrite>true</skipOverwrite>
                        <library>feign</library>
                        <output>${project.basedir}</output>
                    </configuration>
                </execution>
            </executions>
        </plugin>

But it ends up with below error when running
Is there anything I did wrong in this configuration ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown swagger-codegen Maven plugin configuration with the referenced publisher-api.yaml and multiple executions. The issue body does not include the claimed error or name a source file or test, so compare the Maven output with the plugin's configuration handling; done means the cause is identified and the documented setup runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.