blob: e0b54b4b55044a09c31c08fc1d511a39409c428b [file] [log] [blame]
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -04001<?xml version="1.0" encoding="UTF-8"?>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +01002<!--
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -04003Copyright (C) 2019 Bell Canada
Brinda Santh795ca3d2019-11-20 14:27:46 -05004Modification Copyright © 2018-2019 AT&T Intellectual Property.
Arundathi Patil3d026852018-12-14 23:03:55 +05305
6Unless otherwise specified, all software contained herein is licensed
7under the Apache License, Version 2.0 (the License);
8you may not use this software except in compliance with the License.
9You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010018-->
Timoney, Dan (dt5972)dfe52052019-07-17 11:07:44 -040019<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000020 <modelVersion>4.0.0</modelVersion>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040021
22 <parent>
23 <groupId>org.onap.ccsdk.parent</groupId>
Jozsef Csongvai4d46bb12022-09-26 11:09:50 -040024 <artifactId>spring-boot-26-starter-parent</artifactId>
25 <version>2.4.4</version>
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040026 <relativePath/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040027 </parent>
28
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040029 <groupId>org.onap.ccsdk.cds</groupId>
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040030 <artifactId>cds-aggregator</artifactId>
Timoney, Dan (dt5972)517ea8e2022-09-28 07:42:07 -040031 <version>1.4.1-SNAPSHOT</version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040032 <packaging>pom</packaging>
33
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040034 <name>Aggregator</name>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040035 <description>CCSDK Controller Design Studio</description>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000036 <url>https://wiki.onap.org</url>
37 <organization>
38 <name>ONAP</name>
39 </organization>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040040
41 <modules>
Alexis de Talhouët837f8492019-03-27 16:42:08 -040042 <module>ms</module>
Singal, Kapil (ks220y)615761d2020-02-13 11:37:37 -050043 <module>cds-ui</module>
Brinda Santh795ca3d2019-11-20 14:27:46 -050044 <module>components</module>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040045 </modules>
46
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040047 <properties>
48 <!--Don't set any language to let sonar enable multi-language support-->
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040049 <sonar.language/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040050 <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
51 <sonar.sources>src/main</sonar.sources>
52 <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
53 <sonar.tests>src/test</sonar.tests>
54 <!--Only include java and kt files to the scan-->
55 <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
Alexis de Talhouëtd4b56bc2019-07-01 19:25:41 -040056 <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
Singal, Kapil (ks220y)28aa3a62020-12-15 20:56:54 -050057 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
Jozsef Csongvai4d46bb12022-09-26 11:09:50 -040058 <jacoco.version>0.8.7</jacoco.version>
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040059
60 <!-- Properties for POM Format -->
Jozsef Csongvaia07209f2022-05-16 11:03:43 -040061 <format.skipValidate>false</format.skipValidate>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000062 <format.skipExecute>true</format.skipExecute>
Ahmedeldeeb5063eb67e2021-01-04 14:45:26 +020063
Oleg Mitsura8c231292020-08-20 09:47:26 -040064 <java.version>11</java.version>
65 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
66 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -040067
68 <!-- docker related properties -->
Singal, Kapil (ks220y)28aa3a62020-12-15 20:56:54 -050069 <assembly.id>maven</assembly.id>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -040070 <docker.verbose>true</docker.verbose>
71 <docker.skip.push>false</docker.skip.push>
Singal, Kapil (ks220y)28aa3a62020-12-15 20:56:54 -050072 <name.space>org.onap.ccsdk.cds</name.space>
Singal, Kapil (ks220y)7d397bd2020-09-21 09:53:32 -040073 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
74 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -040075
Timoney, Dan (dt5972)fe6da442022-10-24 11:04:31 -040076 <ccsdk.sli.version>1.5.2</ccsdk.sli.version>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -040077 <ccsdk.cds.version>${project.version}</ccsdk.cds.version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040078 </properties>
79
80 <build>
Oleg Mitsura8c231292020-08-20 09:47:26 -040081 <pluginManagement>
82 <plugins>
Oleg Mitsura8c231292020-08-20 09:47:26 -040083 <!-- Plugin to Format/Validate POM Files -->
Oleg Mitsura8c231292020-08-20 09:47:26 -040084 <plugin>
85 <groupId>org.codehaus.mojo</groupId>
86 <artifactId>tidy-maven-plugin</artifactId>
87 <version>1.1.0</version>
Singal, Kapil (ks220y)cd4d9892020-11-20 18:51:05 -050088 <configuration>
89 <lineLength>120</lineLength>
90 </configuration>
Oleg Mitsura8c231292020-08-20 09:47:26 -040091 <executions>
92 <execution>
93 <id>format-pom</id>
94 <phase>process-sources</phase>
95 <goals>
96 <goal>pom</goal>
97 </goals>
98 <configuration>
99 <skip>${format.skipExecute}</skip>
100 </configuration>
101 </execution>
102 <execution>
103 <id>validate-pom</id>
104 <phase>validate</phase>
105 <goals>
106 <goal>check</goal>
107 </goals>
108 <configuration>
109 <skip>${format.skipValidate}</skip>
110 </configuration>
111 </execution>
112 </executions>
113 </plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400114
115 <!-- Plugin to Format/Validate Kotlin Files -->
116 <plugin>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-antrun-plugin</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400119 <version>${maven-antrun-plugin.version}</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400120 <executions>
121 <execution>
122 <id>validate-kotlin</id>
123 <phase>validate</phase>
124 <configuration>
125 <target name="ktlint">
126 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
127 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400128 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400129 </java>
130 </target>
131 <skip>${format.skipValidate}</skip>
132 </configuration>
133 <goals>
134 <goal>run</goal>
135 </goals>
136 </execution>
137 <execution>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400138 <id>format-kotlin</id>
139 <phase>process-sources</phase>
140 <configuration>
141 <target name="ktlint">
142 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
143 <arg value="-F"/>
144 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400145 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400146 </java>
147 </target>
148 <skip>${format.skipExecute}</skip>
149 </configuration>
150 <goals>
151 <goal>run</goal>
152 </goals>
153 </execution>
154 </executions>
155 <dependencies>
156 <dependency>
157 <groupId>com.pinterest</groupId>
158 <artifactId>ktlint</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400159 <version>0.39.0</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400160 </dependency>
161 </dependencies>
162 </plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400163
164 <!-- Plugin to identify root path of the project -->
165 <plugin>
166 <groupId>org.commonjava.maven.plugins</groupId>
167 <artifactId>directory-maven-plugin</artifactId>
168 <version>0.3</version>
169 <executions>
170 <execution>
171 <phase>validate</phase>
172 <id>directories</id>
173 <goals>
174 <goal>highest-basedir</goal>
175 </goals>
176 <configuration>
177 <property>baseDirPath</property>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182
183 <!-- Plugin to Format/Validate Java Classes -->
184 <plugin>
185 <groupId>net.revelc.code.formatter</groupId>
186 <artifactId>formatter-maven-plugin</artifactId>
Dan Timoney3763eb82021-12-13 15:06:43 -0500187 <version>2.17.1</version>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400188 <executions>
189 <execution>
190 <id>format-java</id>
191 <goals>
192 <goal>format</goal>
193 </goals>
194 <phase>process-sources</phase>
195 <configuration>
196 <lineEnding>LF</lineEnding>
197 <skip>${format.skipExecute}</skip>
198 <sourceDirectory>${project.basedir}</sourceDirectory>
199 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
200 <includes>
201 <include>src/**/*.java</include>
202 </includes>
203 </configuration>
204 </execution>
205 <execution>
206 <id>validate-java</id>
207 <goals>
208 <goal>validate</goal>
209 </goals>
210 <phase>validate</phase>
211 <configuration>
212 <lineEnding>LF</lineEnding>
213 <skip>${format.skipValidate}</skip>
214 <sourceDirectory>${project.basedir}</sourceDirectory>
215 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
216 <includes>
217 <include>src/**/*.java</include>
218 </includes>
219 </configuration>
220 </execution>
221 </executions>
222 <dependencies>
223 <dependency>
224 <groupId>com.fasterxml.jackson.core</groupId>
225 <artifactId>jackson-annotations</artifactId>
226 <version>${jackson-bom.version}</version>
227 </dependency>
228 </dependencies>
229 </plugin>
230
Oleg Mitsura8c231292020-08-20 09:47:26 -0400231 <plugin>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-surefire-plugin</artifactId>
234 <version>${maven-surefire-plugin.version}</version>
235 <configuration>
236 <!-- Sets the VM argument line used when unit tests are run. -->
237 <argLine>${surefireArgLine}</argLine>
238 <!-- Excludes integration tests when unit tests are run. -->
239 <excludes>
240 <exclude>**/IT*.java</exclude>
241 </excludes>
242 </configuration>
243 </plugin>
244 <plugin>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-failsafe-plugin</artifactId>
247 <version>${maven-failsafe-plugin.version}</version>
248 <executions>
249 <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
250 <execution>
251 <id>integration-tests</id>
252 <goals>
253 <goal>integration-test</goal>
254 <goal>verify</goal>
255 </goals>
256 <configuration>
257 <!-- Sets the VM argument line used when integration tests are run. -->
258 <argLine>${failsafeArgLine}</argLine>
259 </configuration>
260 </execution>
261 </executions>
262 </plugin>
263 <plugin>
264 <groupId>org.jetbrains.kotlin</groupId>
265 <artifactId>kotlin-maven-plugin</artifactId>
266 <version>${kotlin.maven.version}</version>
267 <configuration>
268 <jvmTarget>${java.version}</jvmTarget>
269 </configuration>
270 </plugin>
271 <plugin>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-compiler-plugin</artifactId>
274 <version>${maven-compiler-plugin.version}</version>
275 <configuration>
276 <release>${java.version}</release>
277 <!--explicitly remove source and target-->
278 <source combine.self="override"/>
279 <target combine.self="override"/>
280 </configuration>
281 </plugin>
282 </plugins>
283 </pluginManagement>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100284 <plugins>
285 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400286 <groupId>org.jacoco</groupId>
287 <artifactId>jacoco-maven-plugin</artifactId>
288 <version>${jacoco.version}</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100289 </plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500290 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400291 <groupId>org.codehaus.mojo</groupId>
292 <artifactId>tidy-maven-plugin</artifactId>
293 </plugin>
294 <plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-antrun-plugin</artifactId>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400297 </plugin>
298 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400299 <groupId>org.commonjava.maven.plugins</groupId>
300 <artifactId>directory-maven-plugin</artifactId>
301 </plugin>
302 <plugin>
303 <groupId>net.revelc.code.formatter</groupId>
304 <artifactId>formatter-maven-plugin</artifactId>
305 </plugin>
306 <plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-plugin</artifactId>
309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-failsafe-plugin</artifactId>
313 </plugin>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-compiler-plugin</artifactId>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500317 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100318 </plugins>
319 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530320
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100321 <profiles>
322 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400323 <id>blackduck</id>
324 <activation>
325 <property>
326 <name>blackduck-scan</name>
327 </property>
328 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100329 <build>
330 <plugins>
331 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400332 <groupId>com.blackducksoftware.integration</groupId>
333 <artifactId>hub-maven-plugin</artifactId>
334 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100335 <inherited>false</inherited>
336 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400337 <hubProjectName>${project.name}</hubProjectName>
338 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100339 </configuration>
340 <executions>
341 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400342 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100343 <phase>package</phase>
344 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400345 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100346 </goals>
347 </execution>
348 </executions>
349 </plugin>
350 </plugins>
351 </build>
352 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100353
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400354 <!-- Profile to format skip validate or execute -->
355 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000356 <id>format</id>
357 <properties>
358 <format.skipValidate>true</format.skipValidate>
359 <format.skipExecute>false</format.skipExecute>
360 </properties>
361 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500362 <profile>
363 <id>dependency-list</id>
364 <build>
365 <plugins>
366 <plugin>
367 <groupId>com.github.ferstl</groupId>
368 <artifactId>depgraph-maven-plugin</artifactId>
369 <executions>
370 <execution>
371 <phase>validate</phase>
372 <inherited>false</inherited>
373 <goals>
374 <goal>aggregate</goal>
375 </goals>
376 </execution>
377 </executions>
378 </plugin>
379 <plugin>
380 <groupId>org.codehaus.mojo</groupId>
381 <artifactId>build-helper-maven-plugin</artifactId>
382 <executions>
383 <execution>
384 <id>attach-artifacts</id>
385 <phase>package</phase>
386 <inherited>false</inherited>
387 <goals>
388 <goal>attach-artifact</goal>
389 </goals>
390 <configuration>
391 <artifacts>
392 <artifact>
393 <file>${dependency-list.file}</file>
394 <type>txt</type>
395 <classifier>dependencies</classifier>
396 </artifact>
397 </artifacts>
398 </configuration>
399 </execution>
400 </executions>
401 </plugin>
402 </plugins>
403 </build>
404 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000405 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400406</project>