Add docker and coverage report configuraion
[nonrtric/plt/rappmanager.git] / rapp-manager-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     <parent>
7         <groupId>com.oransc</groupId>
8         <artifactId>rappmanager</artifactId>
9         <version>0.0.1-SNAPSHOT</version>
10     </parent>
11
12     <artifactId>rapp-manager-application</artifactId>
13
14     <properties>
15         <maven.compiler.source>${java.version}</maven.compiler.source>
16         <maven.compiler.target>${java.version}</maven.compiler.target>
17         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18     </properties>
19
20     <dependencies>
21         <dependency>
22             <groupId>com.oransc.rappmanager</groupId>
23             <artifactId>rapp-manager-models</artifactId>
24             <version>${project.version}</version>
25         </dependency>
26         <dependency>
27             <groupId>com.oransc.rappmanager</groupId>
28             <artifactId>rapp-manager-acm</artifactId>
29             <version>${project.version}</version>
30         </dependency>
31         <dependency>
32             <groupId>com.oransc.rappmanager</groupId>
33             <artifactId>rapp-manager-sme</artifactId>
34             <version>${project.version}</version>
35         </dependency>
36         <dependency>
37             <groupId>org.onap.policy.clamp</groupId>
38             <artifactId>policy-clamp-models</artifactId>
39             <version>6.4.2</version>
40             <exclusions>
41                 <exclusion>
42                     <groupId>org.springframework.boot</groupId>
43                     <artifactId>spring-boot-starter-data-jpa</artifactId>
44                 </exclusion>
45                 <exclusion>
46                     <groupId>org.springframework.boot</groupId>
47                     <artifactId>spring-boot-starter-aop</artifactId>
48                 </exclusion>
49                 <exclusion>
50                     <groupId>org.springframework.boot</groupId>
51                     <artifactId>spring-boot-starter-security</artifactId>
52                 </exclusion>
53                 <exclusion>
54                     <groupId>org.springframework.boot</groupId>
55                     <artifactId>spring-boot-starter-validation</artifactId>
56                 </exclusion>
57                 <exclusion>
58                     <groupId>org.springframework.boot</groupId>
59                     <artifactId>spring-boot-starter-webflux</artifactId>
60                 </exclusion>
61             </exclusions>
62         </dependency>
63         <dependency>
64             <groupId>org.springframework.boot</groupId>
65             <artifactId>spring-boot-starter-actuator</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.springframework.boot</groupId>
69             <artifactId>spring-boot-starter-web</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.springframework.boot</groupId>
73             <artifactId>spring-boot-starter-cache</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.springframework.boot</groupId>
77             <artifactId>spring-boot-configuration-processor</artifactId>
78             <optional>true</optional>
79         </dependency>
80         <dependency>
81             <groupId>org.springframework.retry</groupId>
82             <artifactId>spring-retry</artifactId>
83             <version>2.0.1</version>
84         </dependency>
85         <dependency>
86             <groupId>org.springframework.statemachine</groupId>
87             <artifactId>spring-statemachine-core</artifactId>
88             <version>3.2.1</version>
89         </dependency>
90         <dependency>
91             <groupId>org.springframework.statemachine</groupId>
92             <artifactId>spring-statemachine-test</artifactId>
93             <version>3.2.1</version>
94             <scope>test</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.aspectj</groupId>
98             <artifactId>aspectjweaver</artifactId>
99             <scope>compile</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.projectlombok</groupId>
103             <artifactId>lombok</artifactId>
104             <optional>true</optional>
105         </dependency>
106         <dependency>
107             <groupId>org.openapitools</groupId>
108             <artifactId>jackson-databind-nullable</artifactId>
109             <version>0.2.6</version>
110         </dependency>
111         <!-- Bean Validation API support -->
112         <dependency>
113             <groupId>javax.validation</groupId>
114             <artifactId>validation-api</artifactId>
115             <version>2.0.1.Final</version>
116         </dependency>
117         <dependency>
118             <groupId>javax.annotation</groupId>
119             <artifactId>javax.annotation-api</artifactId>
120             <version>1.3.2</version>
121         </dependency>
122         <dependency>
123             <groupId>io.swagger.core.v3</groupId>
124             <artifactId>swagger-annotations</artifactId>
125             <version>2.2.9</version>
126         </dependency>
127         <dependency>
128             <groupId>io.swagger.core.v3</groupId>
129             <artifactId>swagger-models</artifactId>
130             <version>2.2.9</version>
131         </dependency>
132         <dependency>
133             <groupId>javax.servlet</groupId>
134             <artifactId>servlet-api</artifactId>
135             <version>2.5</version>
136             <scope>provided</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.springframework.boot</groupId>
140             <artifactId>spring-boot-starter-test</artifactId>
141             <scope>test</scope>
142         </dependency>
143     </dependencies>
144
145     <build>
146         <plugins>
147             <plugin>
148                 <groupId>org.springframework.boot</groupId>
149                 <artifactId>spring-boot-maven-plugin</artifactId>
150             </plugin>
151             <plugin>
152                 <groupId>io.fabric8</groupId>
153                 <artifactId>docker-maven-plugin</artifactId>
154                 <version>${docker-maven-plugin}</version>
155                 <inherited>false</inherited>
156                 <executions>
157                     <execution>
158                         <id>generate-nonrtric-plt-rappmanager-image</id>
159                         <phase>package</phase>
160                         <goals>
161                             <goal>build</goal>
162                         </goals>
163                         <configuration>
164                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
165                             <images>
166                                 <image>
167                                     <name>
168                                         o-ran-sc/nonrtric-plt-rappmanager:${project.version}
169                                     </name>
170                                     <build>
171                                         <cleanup>try</cleanup>
172                                         <contextDir>${project.basedir}</contextDir>
173                                         <dockerFile>Dockerfile</dockerFile>
174                                         <args>
175                                             <JAR>${project.build.finalName}.jar</JAR>
176                                         </args>
177                                         <tags>
178                                             <tag>${project.version}</tag>
179                                         </tags>
180                                     </build>
181                                 </image>
182                             </images>
183                         </configuration>
184                     </execution>
185                     <execution>
186                         <id>push-nonrtric-plt-rappmanager-image</id>
187                         <goals>
188                             <goal>build</goal>
189                             <goal>push</goal>
190                         </goals>
191                         <configuration>
192                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
193                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
194                             <images>
195                                 <image>
196                                     <name>
197                                         o-ran-sc/nonrtric-plt-rappmanager:${project.version}
198                                     </name>
199                                     <build>
200                                         <contextDir>${project.basedir}</contextDir>
201                                         <dockerFile>Dockerfile</dockerFile>
202                                         <args>
203                                             <JAR>${project.build.finalName}.jar</JAR>
204                                         </args>
205                                         <tags>
206                                             <tag>${project.version}</tag>
207                                             <tag>latest</tag>
208                                         </tags>
209                                     </build>
210                                 </image>
211                             </images>
212                         </configuration>
213                     </execution>
214                 </executions>
215             </plugin>
216         </plugins>
217     </build>
218 </project>