Fixed the Start-up Failure in the Dualstack Env
[holmes/engine-management.git] / engine-d / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright 2017-2020 ZTE Corporation.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0"
18          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.holmes.engine-management</groupId>
24         <artifactId>holmes-engine-parent</artifactId>
25         <version>1.3.3-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>holmes-engine-d</artifactId>
29     <name>holmes-engine-d-service</name>
30     <packaging>jar</packaging>
31
32     <build>
33         <resources>
34             <resource>
35                 <directory>src/main/java</directory>
36                 <includes>
37                     <include>**/*.properties</include>
38                 </includes>
39             </resource>
40             <resource>
41                 <directory>src/main/resources</directory>
42             </resource>
43         </resources>
44     </build>
45
46     <profiles>
47         <profile>
48             <id>swagger</id>
49             <dependencies>
50                 <dependency>
51                     <groupId>io.swagger</groupId>
52                     <artifactId>swagger-jersey2-jaxrs</artifactId>
53                     <version>1.5.0</version>
54                 </dependency>
55             </dependencies>
56
57             <build>
58                 <plugins>
59                     <plugin>
60                         <groupId>com.github.kongchen</groupId>
61                         <artifactId>swagger-maven-plugin</artifactId>
62                         <version>3.1.1</version>
63                         <configuration>
64                             <apiSources>
65                                 <apiSource>
66                                     <springmvc>false</springmvc>
67                                     <locations>org.onap.holmes.engine.resources</locations>
68                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
69                                     <info>
70                                         <title>API Descriptions for Holmes Engine Management</title>
71                                         <version>v1</version>
72                                         <description>
73                                             This page shows all the APIs available in the Holmes engine management
74                                             module.
75                                         </description>
76                                         <termsOfService>
77                                             http://www.github.com/kongchen/swagger-maven-plugin
78                                         </termsOfService>
79                                         <contact>
80                                             <email>fu.guangrong@zte.com.cn</email>
81                                             <name>Guangrong Fu</name>
82                                         </contact>
83                                         <license>
84                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
85                                             <name>Apache 2.0</name>
86                                         </license>
87                                     </info>
88                                     <securityDefinitions>
89                                     </securityDefinitions>
90                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
91                                 </apiSource>
92                             </apiSources>
93                         </configuration>
94                         <executions>
95                             <execution>
96                                 <phase>compile</phase>
97                                 <goals>
98                                     <goal>generate</goal>
99                                 </goals>
100                             </execution>
101                         </executions>
102                         <dependencies>
103                             <dependency>
104                                 <groupId>io.swagger</groupId>
105                                 <artifactId>swagger-hibernate-validations</artifactId>
106                                 <version>1.5.6</version>
107                             </dependency>
108                         </dependencies>
109                     </plugin>
110                 </plugins>
111             </build>
112         </profile>
113     </profiles>
114 </project>