Generate rApp packages for unit test
[nonrtric/plt/rappmanager.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2023 Nordix Foundation
7 * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
8 * %%
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ========================LICENSE_END===================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.springframework.boot</groupId>
27         <artifactId>spring-boot-starter-parent</artifactId>
28         <version>3.2.3</version>
29     </parent>
30     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
31     <artifactId>rappmanager</artifactId>
32     <version>0.1.0-SNAPSHOT</version>
33     <packaging>pom</packaging>
34     <name>NONRTRIC rAppmanager</name>
35     <description>O-RAN SC rApp Management function.</description>
36     <modules>
37         <module>rapp-manager-models</module>
38         <module>rapp-manager-dme</module>
39         <module>rapp-manager-acm</module>
40         <module>rapp-manager-sme</module>
41         <module>rapp-manager-application</module>
42     </modules>
43     <repositories>
44         <repository>
45             <id>onap-releases</id>
46             <name>onap-releases</name>
47             <url>https://nexus.onap.org/content/repositories/releases/</url>
48         </repository>
49     </repositories>
50     <properties>
51         <java.version>17</java.version>
52         <openapi.maven.version>7.3.0</openapi.maven.version>
53         <docker-maven-plugin>0.43.4</docker-maven-plugin>
54         <jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
55         <onap.acm.models.version>7.1.0</onap.acm.models.version>
56         <openapi.jackson.databind.nullable.version>0.2.6</openapi.jackson.databind.nullable.version>
57         <spring.statemachine.version>4.0.0</spring.statemachine.version>
58         <spring.context.version>6.1.3</spring.context.version>
59         <javax.validation.api.version>2.0.1.Final</javax.validation.api.version>
60         <javax.annotation.api.version>1.3.2</javax.annotation.api.version>
61         <javax.servlet.api.version>2.5</javax.servlet.api.version>
62         <io.swagger.version>2.2.20</io.swagger.version>
63         <slf4j.version>2.0.12</slf4j.version>
64         <apache.httpcore.version>4.4.16</apache.httpcore.version>
65         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
66         <apache.compress.version>1.25.0</apache.compress.version>
67     </properties>
68     <profiles>
69         <profile>
70             <id>Windows</id>
71             <activation>
72                 <os>
73                     <family>Windows</family>
74                 </os>
75             </activation>
76             <properties>
77                 <script.extension>.bat</script.extension>
78                 <file.separator>\</file.separator>
79             </properties>
80         </profile>
81         <profile>
82             <id>unix</id>
83             <activation>
84                 <os>
85                     <family>unix</family>
86                 </os>
87             </activation>
88             <properties>
89                 <script.extension>.sh</script.extension>
90                 <file.separator>/</file.separator>
91             </properties>
92         </profile>
93     </profiles>
94     <build>
95         <plugins>
96             <plugin>
97                 <groupId>org.apache.maven.plugins</groupId>
98                 <artifactId>maven-surefire-plugin</artifactId>
99                 <configuration>
100                     <skipTests>false</skipTests>
101                 </configuration>
102             </plugin>
103             <plugin>
104                 <groupId>org.codehaus.mojo</groupId>
105                 <artifactId>exec-maven-plugin</artifactId>
106                 <version>${exec-maven-plugin.version}</version>
107                 <executions>
108                     <execution>
109                         <id>generate-test-csar-packages</id>
110                         <phase>initialize</phase>
111                         <goals>
112                             <goal>exec</goal>
113                         </goals>
114                         <configuration>
115                             <workingDirectory>
116                                 scripts/init/generate-test-rapp-packages
117                             </workingDirectory>
118                             <executable>
119                                 go
120                             </executable>
121                             <arguments>
122                                 <argument>run</argument>
123                                 <argument>generatetestrapppackages.go</argument>
124                             </arguments>
125                         </configuration>
126                         <inherited>false</inherited>
127                     </execution>
128                 </executions>
129             </plugin>
130             <plugin>
131                 <groupId>org.jacoco</groupId>
132                 <artifactId>jacoco-maven-plugin</artifactId>
133                 <version>${jacoco-maven-plugin.version}</version>
134                 <executions>
135                     <execution>
136                         <id>default-prepare-agent</id>
137                         <goals>
138                             <goal>prepare-agent</goal>
139                         </goals>
140                     </execution>
141                     <execution>
142                         <id>default-report</id>
143                         <phase>prepare-package</phase>
144                         <goals>
145                             <goal>report</goal>
146                         </goals>
147                     </execution>
148                 </executions>
149             </plugin>
150         </plugins>
151     </build>
152     <issueManagement>
153         <system>JIRA</system>
154         <url>https://jira.o-ran-sc.org/</url>
155     </issueManagement>
156 </project>