Updated: Hyperlink missing
[aai/esr-server.git] / esr-mgr / dependency-reduced-pom.xml
index 4407846..67c922b 100644 (file)
@@ -3,12 +3,11 @@
   <parent>\r
     <artifactId>aai-esr-server</artifactId>\r
     <groupId>org.onap.aai.esr-server</groupId>\r
-    <version>1.0.0-SNAPSHOT</version>\r
+    <version>1.2.1-SNAPSHOT</version>\r
   </parent>\r
   <modelVersion>4.0.0</modelVersion>\r
   <artifactId>esr-mgr</artifactId>\r
   <name>esr-server/esr-mgr</name>\r
-  <version>1.0.0-SNAPSHOT</version>\r
   <build>\r
     <plugins>\r
       <plugin>\r
       </plugin>\r
     </plugins>\r
   </build>\r
+  <profiles>\r
+    <profile>\r
+      <id>swagger</id>\r
+      <build>\r
+        <plugins>\r
+          <plugin>\r
+            <groupId>com.github.kongchen</groupId>\r
+            <artifactId>swagger-maven-plugin</artifactId>\r
+            <version>3.1.1</version>\r
+            <executions>\r
+              <execution>\r
+                <phase>compile</phase>\r
+                <goals>\r
+                  <goal>generate</goal>\r
+                </goals>\r
+              </execution>\r
+            </executions>\r
+            <dependencies>\r
+              <dependency>\r
+                <groupId>io.swagger</groupId>\r
+                <artifactId>swagger-hibernate-validations</artifactId>\r
+                <version>1.5.6</version>\r
+              </dependency>\r
+            </dependencies>\r
+            <configuration>\r
+              <apiSources>\r
+                <apiSource>\r
+                  <springmvc>false</springmvc>\r
+                  <locations>org.onap.aai.esr.resource</locations>\r
+                  <basePath>/api/aai-esr-server/v1/</basePath>\r
+                  <info>\r
+                    <title>API Descriptions for External System Management</title>\r
+                    <version>v1</version>\r
+                    <description>This page shows all the APIs available in the ESR server module.</description>\r
+                    <termsOfService>http://www.github.com/kongchen/swagger-maven-plugin</termsOfService>\r
+                    <contact>\r
+                      <email>li.zi30@zte.com.cn</email>\r
+                      <name>Zi Li</name>\r
+                    </contact>\r
+                    <license>\r
+                      <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>\r
+                      <name>Apache 2.0</name>\r
+                    </license>\r
+                  </info>\r
+                  <securityDefinitions />\r
+                  <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>\r
+                </apiSource>\r
+              </apiSources>\r
+            </configuration>\r
+          </plugin>\r
+        </plugins>\r
+      </build>\r
+      <dependencies>\r
+        <dependency>\r
+          <groupId>io.swagger</groupId>\r
+          <artifactId>swagger-jersey2-jaxrs</artifactId>\r
+          <version>1.5.0</version>\r
+        </dependency>\r
+      </dependencies>\r
+    </profile>\r
+  </profiles>\r
   <dependencies>\r
     <dependency>\r
       <groupId>junit</groupId>\r