Add maven versions in root POM
[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>${onap.acm.models.version}</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.statemachine</groupId>
82             <artifactId>spring-statemachine-core</artifactId>
83             <version>${spring.statemachine.version}</version>
84         </dependency>
85         <dependency>
86             <groupId>org.springframework.statemachine</groupId>
87             <artifactId>spring-statemachine-test</artifactId>
88             <version>${spring.statemachine.version}</version>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>org.aspectj</groupId>
93             <artifactId>aspectjweaver</artifactId>
94             <scope>compile</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.projectlombok</groupId>
98             <artifactId>lombok</artifactId>
99             <optional>true</optional>
100         </dependency>
101         <dependency>
102             <groupId>org.openapitools</groupId>
103             <artifactId>jackson-databind-nullable</artifactId>
104             <version>${openapi.jackson.databind.nullable.version}</version>
105         </dependency>
106         <!-- Bean Validation API support -->
107         <dependency>
108             <groupId>javax.validation</groupId>
109             <artifactId>validation-api</artifactId>
110             <version>${javax.validation.api.version}</version>
111         </dependency>
112         <dependency>
113             <groupId>javax.annotation</groupId>
114             <artifactId>javax.annotation-api</artifactId>
115             <version>${javax.annotation.api.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>io.swagger.core.v3</groupId>
119             <artifactId>swagger-annotations</artifactId>
120             <version>${io.swagger.version}</version>
121         </dependency>
122         <dependency>
123             <groupId>io.swagger.core.v3</groupId>
124             <artifactId>swagger-models</artifactId>
125             <version>${io.swagger.version}</version>
126         </dependency>
127         <dependency>
128             <groupId>javax.servlet</groupId>
129             <artifactId>servlet-api</artifactId>
130             <version>${javax.servlet.api.version}</version>
131             <scope>provided</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.springframework.boot</groupId>
135             <artifactId>spring-boot-starter-test</artifactId>
136             <scope>test</scope>
137         </dependency>
138     </dependencies>
139
140     <build>
141         <plugins>
142             <plugin>
143                 <groupId>org.springframework.boot</groupId>
144                 <artifactId>spring-boot-maven-plugin</artifactId>
145             </plugin>
146             <plugin>
147                 <groupId>io.fabric8</groupId>
148                 <artifactId>docker-maven-plugin</artifactId>
149                 <version>${docker-maven-plugin}</version>
150                 <inherited>false</inherited>
151                 <executions>
152                     <execution>
153                         <id>generate-nonrtric-plt-rappmanager-image</id>
154                         <phase>package</phase>
155                         <goals>
156                             <goal>build</goal>
157                         </goals>
158                         <configuration>
159                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
160                             <images>
161                                 <image>
162                                     <name>
163                                         o-ran-sc/nonrtric-plt-rappmanager:${project.version}
164                                     </name>
165                                     <build>
166                                         <cleanup>try</cleanup>
167                                         <contextDir>${project.basedir}</contextDir>
168                                         <dockerFile>Dockerfile</dockerFile>
169                                         <args>
170                                             <JAR>${project.build.finalName}.jar</JAR>
171                                         </args>
172                                         <tags>
173                                             <tag>${project.version}</tag>
174                                         </tags>
175                                     </build>
176                                 </image>
177                             </images>
178                         </configuration>
179                     </execution>
180                     <execution>
181                         <id>push-nonrtric-plt-rappmanager-image</id>
182                         <goals>
183                             <goal>build</goal>
184                             <goal>push</goal>
185                         </goals>
186                         <configuration>
187                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
188                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
189                             <images>
190                                 <image>
191                                     <name>
192                                         o-ran-sc/nonrtric-plt-rappmanager:${project.version}
193                                     </name>
194                                     <build>
195                                         <contextDir>${project.basedir}</contextDir>
196                                         <dockerFile>Dockerfile</dockerFile>
197                                         <args>
198                                             <JAR>${project.build.finalName}.jar</JAR>
199                                         </args>
200                                         <tags>
201                                             <tag>${project.version}</tag>
202                                             <tag>latest</tag>
203                                         </tags>
204                                     </build>
205                                 </image>
206                             </images>
207                         </configuration>
208                     </execution>
209                 </executions>
210             </plugin>
211         </plugins>
212     </build>
213 </project>