blob: e5b46f6a4f34c582c30665d1e6ce3691ccf2bcb2 [file] [log] [blame]
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +01001<?xml version="1.0" encoding="UTF-8"?>
Bruno Sakoto5c7c4892021-02-08 21:51:05 -05002<!--
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
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010021<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>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +010036 <app>org.onap.cps.Application</app>
37 <image.name>cps-service</image.name>
38 <image.version>${project.version}</image.version>
39 <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010040 <minimum-coverage>0.0</minimum-coverage>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +010041 <nexus.repository>nexus3.onap.org:10003/onap/</nexus.repository>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010042 </properties>
43
44 <dependencies>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-web</artifactId>
48 <exclusions>
49 <exclusion>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-tomcat</artifactId>
52 </exclusion>
53 </exclusions>
54 </dependency>
55 <dependency>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-actuator</artifactId>
58 </dependency>
59 <dependency>
60 <groupId>org.springframework.cloud</groupId>
61 <artifactId>spring-cloud-starter-sleuth</artifactId>
62 </dependency>
63 </dependencies>
64
65 <build>
66 <pluginManagement>
67 <plugins>
68 <plugin>
69 <groupId>com.google.cloud.tools</groupId>
70 <artifactId>jib-maven-plugin</artifactId>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +010071 <version>${jib-maven-plugin.version}</version>
72 <configuration>
73 <container>
74 <mainClass>${app}</mainClass>
75 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
76 </container>
77 <from>
78 <image>${base.image}</image>
79 </from>
80 <to>
81 <image>${nexus.repository}${image.name}:${image.version}</image>
82 </to>
83 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010084 <executions>
85 <execution>
86 <phase>package</phase>
87 <id>build</id>
88 <goals>
89 <goal>dockerBuild</goal>
90 </goals>
91 </execution>
92 <execution>
93 <phase>deploy</phase>
94 <id>buildAndPush</id>
95 <goals>
96 <goal>build</goal>
97 </goals>
98 </execution>
99 </executions>
100 </plugin>
101 </plugins>
102 </pluginManagement>
103 <plugins>
104 <plugin>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-maven-plugin</artifactId>
107 </plugin>
Claudio D. Gasparinib1ccfce2021-02-04 09:33:28 +0100108 <plugin>
109 <groupId>com.google.cloud.tools</groupId>
110 <artifactId>jib-maven-plugin</artifactId>
111 </plugin>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100112 </plugins>
113 </build>
114 <profiles>
115 <profile>
116 <id>cps-docker</id>
117 <activation>
118 <activeByDefault>false</activeByDefault>
119 </activation>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100120 <dependencies>
121 <dependency>
122 <groupId>${project.groupId}</groupId>
123 <artifactId>cps-rest</artifactId>
124 </dependency>
125 </dependencies>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100126 </profile>
127 <profile>
128 <id>xnf-docker</id>
129 <activation>
130 <activeByDefault>false</activeByDefault>
131 </activation>
132
133 <properties>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100134 <image.name>cps-nf-proxy</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100135 </properties>
136
137 <dependencies>
138 <dependency>
139 <groupId>${project.groupId}</groupId>
140 <artifactId>cps-nf-proxy-rest</artifactId>
141 </dependency>
142 </dependencies>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100143 </profile>
144 <profile>
145 <id>cps-xnf-docker</id>
146 <activation>
147 <activeByDefault>false</activeByDefault>
148 </activation>
149
150 <properties>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100151 <image.name>cps-and-nf-proxy</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100152 </properties>
153
154 <dependencies>
155 <dependency>
156 <groupId>${project.groupId}</groupId>
157 <artifactId>cps-rest</artifactId>
158 </dependency>
159 <dependency>
160 <groupId>${project.groupId}</groupId>
161 <artifactId>cps-nf-proxy-rest</artifactId>
162 </dependency>
163 </dependencies>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100164 </profile>
165 </profiles>
166</project>