Merge "Decouple configuration from application"
[cps.git] / cps-application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <parent>
8         <groupId>org.onap.cps</groupId>
9         <artifactId>cps-parent</artifactId>
10         <version>0.0.1-SNAPSHOT</version>
11         <relativePath>../cps-parent/pom.xml</relativePath>
12     </parent>
13
14     <artifactId>cps-application</artifactId>
15
16     <properties>
17         <minimum-coverage>0.0</minimum-coverage>
18     </properties>
19
20     <dependencies>
21         <dependency>
22             <groupId>org.springframework.boot</groupId>
23             <artifactId>spring-boot-starter-web</artifactId>
24             <exclusions>
25                 <exclusion>
26                     <groupId>org.springframework.boot</groupId>
27                     <artifactId>spring-boot-starter-tomcat</artifactId>
28                 </exclusion>
29             </exclusions>
30         </dependency>
31         <dependency>
32             <groupId>org.springframework.boot</groupId>
33             <artifactId>spring-boot-starter-actuator</artifactId>
34         </dependency>
35         <dependency>
36             <groupId>org.springframework.cloud</groupId>
37             <artifactId>spring-cloud-starter-sleuth</artifactId>
38         </dependency>
39     </dependencies>
40
41     <build>
42         <pluginManagement>
43             <plugins>
44                 <plugin>
45                     <groupId>com.google.cloud.tools</groupId>
46                     <artifactId>jib-maven-plugin</artifactId>
47                     <executions>
48                         <execution>
49                             <phase>package</phase>
50                             <id>build</id>
51                             <goals>
52                                 <goal>dockerBuild</goal>
53                             </goals>
54                         </execution>
55                         <execution>
56                             <phase>deploy</phase>
57                             <id>buildAndPush</id>
58                             <goals>
59                                 <goal>build</goal>
60                             </goals>
61                         </execution>
62                     </executions>
63                 </plugin>
64             </plugins>
65         </pluginManagement>
66         <plugins>
67             <plugin>
68                 <groupId>org.springframework.boot</groupId>
69                 <artifactId>spring-boot-maven-plugin</artifactId>
70             </plugin>
71         </plugins>
72     </build>
73     <profiles>
74         <profile>
75             <id>cps-docker</id>
76             <activation>
77                 <activeByDefault>false</activeByDefault>
78             </activation>
79
80             <dependencies>
81                 <dependency>
82                     <groupId>${project.groupId}</groupId>
83                     <artifactId>cps-rest</artifactId>
84                 </dependency>
85             </dependencies>
86             <build>
87                 <plugins>
88                     <plugin>
89                         <groupId>com.google.cloud.tools</groupId>
90                         <artifactId>jib-maven-plugin</artifactId>
91                     </plugin>
92                 </plugins>
93             </build>
94         </profile>
95         <profile>
96             <id>xnf-docker</id>
97             <activation>
98                 <activeByDefault>false</activeByDefault>
99             </activation>
100
101             <properties>
102                 <app>org.onap.cps.Application</app>
103                 <repository.name>nexus3.onap.org:10001/onap/cps-nf-proxy</repository.name>
104             </properties>
105
106             <dependencies>
107                 <dependency>
108                     <groupId>${project.groupId}</groupId>
109                     <artifactId>cps-nf-proxy-rest</artifactId>
110                 </dependency>
111             </dependencies>
112             <build>
113                 <plugins>
114                     <plugin>
115                         <groupId>com.google.cloud.tools</groupId>
116                         <artifactId>jib-maven-plugin</artifactId>
117                     </plugin>
118                 </plugins>
119             </build>
120         </profile>
121         <profile>
122             <id>cps-xnf-docker</id>
123             <activation>
124                 <activeByDefault>false</activeByDefault>
125             </activation>
126
127             <properties>
128                 <app>org.onap.cps.Application</app>
129                 <repository.name>nexus3.onap.org:10001/onap/cps-and-nf-proxy</repository.name><!-- better naming? -->
130             </properties>
131
132             <dependencies>
133                 <dependency>
134                     <groupId>${project.groupId}</groupId>
135                     <artifactId>cps-rest</artifactId>
136                 </dependency>
137                 <dependency>
138                     <groupId>${project.groupId}</groupId>
139                     <artifactId>cps-nf-proxy-rest</artifactId>
140                 </dependency>
141             </dependencies>
142             <build>
143                 <plugins>
144                     <plugin>
145                         <groupId>com.google.cloud.tools</groupId>
146                         <artifactId>jib-maven-plugin</artifactId>
147                     </plugin>
148                 </plugins>
149             </build>
150         </profile>
151     </profiles>
152 </project>