Skip to content

Generates Java EE Servlets from a Swagger specification (JSON or YAML)

Notifications You must be signed in to change notification settings

nalbion/swagger2servlet-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger2servlet-maven-plugin

Generates Java EE Servlets from a Swagger specification (JSON or YAML)

Usage

Add the following to your pom.xml:

    <build>
        <plugins>
            <plugin>
                <groupId>io.github.nalbion</groupId>
                <artifactId>swagger2servlet-maven-plugin</artifactId>
                <version>1.0-SNAPSHOT</version>
                <configuration>
                    <packageName>package.for.your.api</packageName>
                    <schemaLocation>src/main/swagger</schemaLocation>
                </configuration>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

...then run:

mvn generate-sources

About

Generates Java EE Servlets from a Swagger specification (JSON or YAML)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published