update link to upper-constraints.txt
[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.1</version>
71                 <configuration>
72                     <source>17</source>
73                     <target>17</target>
74                 </configuration>
75             </plugin>
76             <plugin>
77                 <artifactId>maven-surefire-plugin</artifactId>
78                 <version>3.1.2</version>
79                 <configuration>
80                     <argLine>
81                         --add-opens=java.base/java.lang=ALL-UNNAMED
82                         --add-opens=java.base/java.net=ALL-UNNAMED
83                         --add-opens=java.base/java.util=ALL-UNNAMED
84                         --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
85                         --add-opens=java.base/java.util.stream=ALL-UNNAMED
86                         --add-opens=java.base/java.io=ALL-UNNAMED
87                         --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
88                     </argLine>
89                 </configuration>
90             </plugin>
91             <plugin>
92                 <groupId>org.jacoco</groupId>
93                 <artifactId>jacoco-maven-plugin</artifactId>
94                 <version>${jacoco.version}</version>
95                 <executions>
96                     <execution>
97                         <id>prepare-agent</id>
98                         <goals>
99                             <goal>prepare-agent</goal>
100                         </goals>
101                     </execution>
102                     <execution>
103                         <id>report</id>
104                         <goals>
105                             <goal>report</goal>
106                         </goals>
107                         <configuration>
108                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
109                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
110                         </configuration>
111                     </execution>
112                 </executions>
113             </plugin>
114         </plugins>
115     </build>
116
117     <profiles>
118         <profile>
119             <id>swagger</id>
120             <dependencies>
121                 <dependency>
122                     <groupId>io.swagger</groupId>
123                     <artifactId>swagger-jersey2-jaxrs</artifactId>
124                     <version>1.5.0</version>
125                 </dependency>
126             </dependencies>
127             <build>
128                 <plugins>
129                     <plugin>
130                         <groupId>com.github.kongchen</groupId>
131                         <artifactId>swagger-maven-plugin</artifactId>
132                         <version>3.1.1</version>
133                         <configuration>
134                             <apiSources>
135                                 <apiSource>
136                                     <springmvc>false</springmvc>
137                                     <locations>org.onap.holmes.engine.resources</locations>
138                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
139                                     <info>
140                                         <title>API Descriptions for Holmes Engine Management</title>
141                                         <version>v1</version>
142                                         <description>
143                                             This page shows all the APIs available in the Holmes engine management
144                                             module.
145                                         </description>
146                                         <termsOfService>
147                                             http://www.github.com/kongchen/swagger-maven-plugin
148                                         </termsOfService>
149                                         <contact>
150                                             <email>fu.guangrong@zte.com.cn</email>
151                                             <name>Guangrong Fu</name>
152                                         </contact>
153                                         <license>
154                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
155                                             <name>Apache 2.0</name>
156                                         </license>
157                                     </info>
158                                     <securityDefinitions>
159                                     </securityDefinitions>
160                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
161                                 </apiSource>
162                             </apiSources>
163                         </configuration>
164                         <executions>
165                             <execution>
166                                 <phase>compile</phase>
167                                 <goals>
168                                     <goal>generate</goal>
169                                 </goals>
170                             </execution>
171                         </executions>
172                         <dependencies>
173                             <dependency>
174                                 <groupId>io.swagger</groupId>
175                                 <artifactId>swagger-hibernate-validations</artifactId>
176                                 <version>1.5.6</version>
177                             </dependency>
178                         </dependencies>
179                     </plugin>
180                 </plugins>
181             </build>
182         </profile>
183     </profiles>
184 </project>