diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-05-25 16:44:15 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-05-25 16:44:15 -0500 |
commit | 881c32ec109f0fff6f5661940ad035c3dfc0c7d9 (patch) | |
tree | 79070ad7386cc9b62cf504ebf62ec8702792be4d /pom.xml | |
parent | f354096969e91aa2b3dcdc52adcc2bde1b3b0b74 (diff) |
[POLICY-16] generic introduction of swagger
On a per-server basis append /swagger.json or /swagger.yaml
ie:
HTTP GET :6969/swagger.json
HTTP GET :9696/swagger.json
Resulting specification can be used by swagger clients.
Change-Id: I4b1a8b53d50b1528664150934b04e92447e4d4d7
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 56 |
1 files changed, 6 insertions, 50 deletions
@@ -33,9 +33,6 @@ <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> - - <swagger-maven-plugin-version>3.1.4</swagger-maven-plugin-version> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.source.version>1.8</project.source.version> <project.target.version>1.8</project.target.version> @@ -43,6 +40,7 @@ <dmaap.version>0.2.12</dmaap.version> <cambria.version>0.0.1</cambria.version> <jersey.version>2.22.2</jersey.version> + <jersey.swagger.version>1.5.13</jersey.swagger.version> <jackson.version>2.8.4</jackson.version> <sonar.language>java</sonar.language> @@ -158,6 +156,11 @@ <artifactId>jersey-container-servlet-core</artifactId> <version>${jersey.version}</version> </dependency> + <dependency> + <groupId>io.swagger</groupId> + <artifactId>swagger-jersey2-jaxrs</artifactId> + <version>${jersey.swagger.version}</version> + </dependency> </dependencies> </dependencyManagement> @@ -175,53 +178,6 @@ </configuration> </plugin> <plugin> - <groupId>com.github.kongchen</groupId> - <artifactId>swagger-maven-plugin</artifactId> - <version>${swagger-maven-plugin-version}</version> - <configuration> - <apiSources> - <apiSource> - <springmvc>false</springmvc> - <locations> - <location> - org.openecomp.policy.drools.core.DroolsPDPIntegrityMonitor - </location> - </locations> - <info> - <title>Drools PDP</title> - <version>1.0.0</version> - </info> - <swaggerDirectory>${project.build.directory}/swagger/integrityMonitor</swaggerDirectory> - <swaggerFileName>swagger</swaggerFileName> - <attachSwaggerArtifact>true</attachSwaggerArtifact> - </apiSource> - </apiSources> - </configuration> - <dependencies> - <!-- Adding dependency to swagger-hibernate-validations to enable the BeanValidator as a custom - model converter --> - <dependency> - <groupId>io.swagger</groupId> - <artifactId>swagger-hibernate-validations</artifactId> - <version>1.5.6</version> - </dependency> - <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> - <dependency> - <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - <version>3.4</version> - </dependency> - </dependencies> - <executions> - <execution> - <phase>compile</phase> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8</version> <!-- This version supports the "deployAtEnd" parameter --> |