diff options
author | lizi <li.zi30@zte.com.cn> | 2017-10-11 18:34:42 +0800 |
---|---|---|
committer | lizi <li.zi30@zte.com.cn> | 2017-10-11 18:34:42 +0800 |
commit | d62f39bb2ee31d0e5c9fd0f26934223d9c2a6539 (patch) | |
tree | 3c4dcc2cdf73781e29283444ce4c4d9c90b10687 /esr-mgr/pom.xml | |
parent | 86669ea8a94fb09c5b233d8b751ab16a582add3a (diff) |
Add swagger.json to main/resources.
Change-Id: Idbe8b45d713017a0dd487037e504238f7a58efcc
Issue-ID: AAI-430
Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'esr-mgr/pom.xml')
-rw-r--r-- | esr-mgr/pom.xml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/esr-mgr/pom.xml b/esr-mgr/pom.xml index 7f9057d..cfc1714 100644 --- a/esr-mgr/pom.xml +++ b/esr-mgr/pom.xml @@ -200,4 +200,71 @@ <version>1.0.0</version> </dependency> </dependencies> + + <profiles> + <profile> + <id>swagger</id> + <dependencies> + <dependency> + <groupId>io.swagger</groupId> + <artifactId>swagger-jersey2-jaxrs</artifactId> + <version>1.5.0</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <version>3.1.1</version> + <configuration> + <apiSources> + <apiSource> + <springmvc>false</springmvc> + <locations>org.onap.aai.esr.resource</locations> + <basePath>/api/aai-esr-server/v1/</basePath> + <info> + <title>API Descriptions for External System Management</title> + <version>v1</version> + <description> + This page shows all the APIs available in the ESR server module. + </description> + <termsOfService> + http://www.github.com/kongchen/swagger-maven-plugin + </termsOfService> + <contact> + <email>li.zi30@zte.com.cn</email> + <name>Zi Li</name> + </contact> + <license> + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> + <name>Apache 2.0</name> + </license> + </info> + <securityDefinitions> + </securityDefinitions> + <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory> + </apiSource> + </apiSources> + </configuration> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>io.swagger</groupId> + <artifactId>swagger-hibernate-validations</artifactId> + <version>1.5.6</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |