Switched from Dropwizard to Springboot
[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.8-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>holmes-engine-d</artifactId>
29     <name>holmes-engine-d-service</name>
30     <packaging>jar</packaging>
31
32     <properties>
33         <main-class>org.onap.holmes.engine.EngineDActiveApp</main-class>
34     </properties>
35
36     <build>
37         <resources>
38             <resource>
39                 <directory>src/main/java</directory>
40                 <includes>
41                     <include>**/*.properties</include>
42                 </includes>
43             </resource>
44             <resource>
45                 <directory>src/main/resources</directory>
46                 <excludes>
47                     <exclude>swagger.json</exclude>
48                 </excludes>
49             </resource>
50         </resources>
51         <plugins>
52             <plugin>
53                 <groupId>org.springframework.boot</groupId>
54                 <artifactId>spring-boot-maven-plugin</artifactId>
55                 <version>${springboot.version}</version>
56                 <executions>
57                     <execution>
58                         <goals>
59                             <goal>repackage</goal>
60                         </goals>
61                     </execution>
62                 </executions>
63                 <configuration>
64                     <mainClass>${main-class}</mainClass>
65                 </configuration>
66             </plugin>
67             <plugin>
68                 <groupId>org.apache.maven.plugins</groupId>
69                 <artifactId>maven-compiler-plugin</artifactId>
70                 <version>3.8.0</version>
71                 <configuration>
72                     <source>8</source>
73                     <target>8</target>
74                     <release>11</release>
75                 </configuration>
76             </plugin>
77             <plugin>
78                 <groupId>org.jacoco</groupId>
79                 <artifactId>jacoco-maven-plugin</artifactId>
80                 <version>${jacoco.version}</version>
81                 <executions>
82                     <execution>
83                         <id>prepare-agent</id>
84                         <goals>
85                             <goal>prepare-agent</goal>
86                         </goals>
87                     </execution>
88                     <execution>
89                         <id>report</id>
90                         <goals>
91                             <goal>report</goal>
92                         </goals>
93                         <configuration>
94                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
95                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101     </build>
102
103     <profiles>
104         <profile>
105             <id>swagger</id>
106             <dependencies>
107                 <dependency>
108                     <groupId>io.swagger</groupId>
109                     <artifactId>swagger-jersey2-jaxrs</artifactId>
110                     <version>1.5.0</version>
111                 </dependency>
112             </dependencies>
113             <build>
114                 <plugins>
115                     <plugin>
116                         <groupId>com.github.kongchen</groupId>
117                         <artifactId>swagger-maven-plugin</artifactId>
118                         <version>3.1.1</version>
119                         <configuration>
120                             <apiSources>
121                                 <apiSource>
122                                     <springmvc>false</springmvc>
123                                     <locations>org.onap.holmes.engine.resources</locations>
124                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
125                                     <info>
126                                         <title>API Descriptions for Holmes Engine Management</title>
127                                         <version>v1</version>
128                                         <description>
129                                             This page shows all the APIs available in the Holmes engine management
130                                             module.
131                                         </description>
132                                         <termsOfService>
133                                             http://www.github.com/kongchen/swagger-maven-plugin
134                                         </termsOfService>
135                                         <contact>
136                                             <email>fu.guangrong@zte.com.cn</email>
137                                             <name>Guangrong Fu</name>
138                                         </contact>
139                                         <license>
140                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
141                                             <name>Apache 2.0</name>
142                                         </license>
143                                     </info>
144                                     <securityDefinitions>
145                                     </securityDefinitions>
146                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
147                                 </apiSource>
148                             </apiSources>
149                         </configuration>
150                         <executions>
151                             <execution>
152                                 <phase>compile</phase>
153                                 <goals>
154                                     <goal>generate</goal>
155                                 </goals>
156                             </execution>
157                         </executions>
158                         <dependencies>
159                             <dependency>
160                                 <groupId>io.swagger</groupId>
161                                 <artifactId>swagger-hibernate-validations</artifactId>
162                                 <version>1.5.6</version>
163                             </dependency>
164                         </dependencies>
165                     </plugin>
166                 </plugins>
167             </build>
168         </profile>
169     </profiles>
170 </project>