fd46d096ff1b75c29f911d19d2b72df71458f83d
[so.git] / so-monitoring / so-monitoring-service / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
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   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.so.monitoring</groupId>
26         <artifactId>so-monitoring</artifactId>
27         <version>1.4.0-SNAPSHOT</version>
28     </parent>
29     <artifactId>so-monitoring-service</artifactId>
30     <name>${project.artifactId}</name>
31
32     <dependencies>
33         <dependency>
34             <groupId>org.onap.so.monitoring</groupId>
35             <artifactId>so-monitoring-handler</artifactId>
36             <version>${project.version}</version>
37             <exclusions>
38                 <exclusion>
39                     <groupId>org.springframework.boot</groupId>
40                     <artifactId>spring-boot-starter-security</artifactId>
41                 </exclusion>
42                 <exclusion>
43                     <groupId>org.springframework.boot</groupId>
44                     <artifactId>spring-boot-starter-data-jpa</artifactId>
45                 </exclusion>
46             </exclusions>
47         </dependency>
48
49         <dependency>
50             <groupId>org.springframework.boot</groupId>
51             <artifactId>spring-boot-starter-web</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.springframework.boot</groupId>
55             <artifactId>spring-boot-starter-test</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-jersey</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.springframework.boot</groupId>
64             <artifactId>spring-boot-configuration-processor</artifactId>
65             <scope>compile</scope>
66         </dependency>
67     </dependencies>
68
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.springframework.boot</groupId>
73                 <artifactId>spring-boot-maven-plugin</artifactId>
74                 <version>${springboot.version}</version>
75                 <configuration>
76                     <mainClass>org.onap.so.monitoring.rest.api.SoMonitoringApplication</mainClass>
77                 </configuration>
78                 <executions>
79                     <execution>
80                         <goals>
81                             <goal>repackage</goal>
82                         </goals>
83                     </execution>
84                 </executions>
85             </plugin>
86             <plugin>
87                 <groupId>org.springframework.boot</groupId>
88                 <artifactId>spring-boot-maven-plugin</artifactId>
89             </plugin>
90             <plugin>
91                 <artifactId>maven-resources-plugin</artifactId>
92                 <version>3.0.2</version>
93                 <executions>
94                     <execution>
95                         <id>copy-resources</id>
96                         <phase>validate</phase>
97                         <goals>
98                             <goal>copy-resources</goal>
99                         </goals>
100                         <configuration>
101                             <outputDirectory>${project.basedir}/target/classes/static/</outputDirectory>
102                             <resources>
103                                 <resource>
104                                     <directory>${project.basedir}/../so-monitoring-ui/src/main/frontend/dist/ONAP-SO-Monitor/</directory>
105                                 </resource>
106                             </resources>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111         </plugins>
112     </build>
113
114 </project>