Merge "Fix jenkins master merge job"
[cps.git] / cps-application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2021 Pantheon.tech.
5   Modifications Copyright (C) 2021 Bell Canada.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.cps</groupId>
28         <artifactId>cps-parent</artifactId>
29         <version>0.0.1-SNAPSHOT</version>
30         <relativePath>../cps-parent/pom.xml</relativePath>
31     </parent>
32
33     <artifactId>cps-application</artifactId>
34
35     <properties>
36         <minimum-coverage>0.0</minimum-coverage>
37     </properties>
38
39     <dependencies>
40         <dependency>
41             <groupId>org.springframework.boot</groupId>
42             <artifactId>spring-boot-starter-web</artifactId>
43             <exclusions>
44                 <exclusion>
45                     <groupId>org.springframework.boot</groupId>
46                     <artifactId>spring-boot-starter-tomcat</artifactId>
47                 </exclusion>
48             </exclusions>
49         </dependency>
50         <dependency>
51             <groupId>org.springframework.boot</groupId>
52             <artifactId>spring-boot-starter-actuator</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.cloud</groupId>
56             <artifactId>spring-cloud-starter-sleuth</artifactId>
57         </dependency>
58     </dependencies>
59
60     <build>
61         <pluginManagement>
62             <plugins>
63                 <plugin>
64                     <groupId>com.google.cloud.tools</groupId>
65                     <artifactId>jib-maven-plugin</artifactId>
66                     <executions>
67                         <execution>
68                             <phase>package</phase>
69                             <id>build</id>
70                             <goals>
71                                 <goal>dockerBuild</goal>
72                             </goals>
73                         </execution>
74                         <execution>
75                             <phase>deploy</phase>
76                             <id>buildAndPush</id>
77                             <goals>
78                                 <goal>build</goal>
79                             </goals>
80                         </execution>
81                     </executions>
82                 </plugin>
83             </plugins>
84         </pluginManagement>
85         <plugins>
86             <plugin>
87                 <groupId>org.springframework.boot</groupId>
88                 <artifactId>spring-boot-maven-plugin</artifactId>
89             </plugin>
90             <plugin>
91                 <groupId>com.google.cloud.tools</groupId>
92                 <artifactId>jib-maven-plugin</artifactId>
93             </plugin>
94         </plugins>
95     </build>
96     <profiles>
97         <profile>
98             <id>cps-docker</id>
99             <activation>
100                 <activeByDefault>false</activeByDefault>
101             </activation>
102             <dependencies>
103                 <dependency>
104                     <groupId>${project.groupId}</groupId>
105                     <artifactId>cps-rest</artifactId>
106                 </dependency>
107             </dependencies>
108         </profile>
109         <profile>
110             <id>xnf-docker</id>
111             <activation>
112                 <activeByDefault>false</activeByDefault>
113             </activation>
114
115             <properties>
116                 <app>org.onap.cps.Application</app>
117                 <repository.name>${docker.pushRegistry}onap/cps-nf-proxy</repository.name>
118             </properties>
119
120             <dependencies>
121                 <dependency>
122                     <groupId>${project.groupId}</groupId>
123                     <artifactId>cps-nf-proxy-rest</artifactId>
124                 </dependency>
125             </dependencies>
126         </profile>
127         <profile>
128             <id>cps-xnf-docker</id>
129             <activation>
130                 <activeByDefault>false</activeByDefault>
131             </activation>
132
133             <properties>
134                 <app>org.onap.cps.Application</app>
135                 <repository.name>${docker.pushRegistry}onap/cps-and-nf-proxy</repository.name><!-- better naming? -->
136             </properties>
137
138             <dependencies>
139                 <dependency>
140                     <groupId>${project.groupId}</groupId>
141                     <artifactId>cps-rest</artifactId>
142                 </dependency>
143                 <dependency>
144                     <groupId>${project.groupId}</groupId>
145                     <artifactId>cps-nf-proxy-rest</artifactId>
146                 </dependency>
147             </dependencies>
148         </profile>
149     </profiles>
150 </project>