blob: de54eff2fbed49d9d49a9ca5a1021289873103f3 [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>
Timoney, Dan (dt5972)da571512019-06-20 19:17:31 -040024 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoneycd393592021-10-28 16:24:44 -040025 <version>2.3.0</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>
Dan Timoney702c0fa2021-09-21 13:11:13 -040031 <version>1.3.0-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>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040058 <jacoco.version>0.8.3</jacoco.version>
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040059
60 <!-- Properties for POM Format -->
Dan Timoney3763eb82021-12-13 15:06:43 -050061 <format.skipValidate>true</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
76 <ccsdk.cds.version>${project.version}</ccsdk.cds.version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040077 </properties>
78
79 <build>
Oleg Mitsura8c231292020-08-20 09:47:26 -040080 <pluginManagement>
81 <plugins>
Oleg Mitsura8c231292020-08-20 09:47:26 -040082 <!-- Plugin to Format/Validate POM Files -->
Oleg Mitsura8c231292020-08-20 09:47:26 -040083 <plugin>
84 <groupId>org.codehaus.mojo</groupId>
85 <artifactId>tidy-maven-plugin</artifactId>
86 <version>1.1.0</version>
Singal, Kapil (ks220y)cd4d9892020-11-20 18:51:05 -050087 <configuration>
88 <lineLength>120</lineLength>
89 </configuration>
Oleg Mitsura8c231292020-08-20 09:47:26 -040090 <executions>
91 <execution>
92 <id>format-pom</id>
93 <phase>process-sources</phase>
94 <goals>
95 <goal>pom</goal>
96 </goals>
97 <configuration>
98 <skip>${format.skipExecute}</skip>
99 </configuration>
100 </execution>
101 <execution>
102 <id>validate-pom</id>
103 <phase>validate</phase>
104 <goals>
105 <goal>check</goal>
106 </goals>
107 <configuration>
108 <skip>${format.skipValidate}</skip>
109 </configuration>
110 </execution>
111 </executions>
112 </plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400113
114 <!-- Plugin to Format/Validate Kotlin Files -->
115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-antrun-plugin</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400118 <version>${maven-antrun-plugin.version}</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400119 <executions>
120 <execution>
121 <id>validate-kotlin</id>
122 <phase>validate</phase>
123 <configuration>
124 <target name="ktlint">
125 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
126 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400127 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400128 </java>
129 </target>
130 <skip>${format.skipValidate}</skip>
131 </configuration>
132 <goals>
133 <goal>run</goal>
134 </goals>
135 </execution>
136 <execution>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400137 <id>format-kotlin</id>
138 <phase>process-sources</phase>
139 <configuration>
140 <target name="ktlint">
141 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
142 <arg value="-F"/>
143 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400144 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400145 </java>
146 </target>
147 <skip>${format.skipExecute}</skip>
148 </configuration>
149 <goals>
150 <goal>run</goal>
151 </goals>
152 </execution>
153 </executions>
154 <dependencies>
155 <dependency>
156 <groupId>com.pinterest</groupId>
157 <artifactId>ktlint</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400158 <version>0.39.0</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400159 </dependency>
160 </dependencies>
161 </plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400162
163 <!-- Plugin to identify root path of the project -->
164 <plugin>
165 <groupId>org.commonjava.maven.plugins</groupId>
166 <artifactId>directory-maven-plugin</artifactId>
167 <version>0.3</version>
168 <executions>
169 <execution>
170 <phase>validate</phase>
171 <id>directories</id>
172 <goals>
173 <goal>highest-basedir</goal>
174 </goals>
175 <configuration>
176 <property>baseDirPath</property>
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
181
182 <!-- Plugin to Format/Validate Java Classes -->
183 <plugin>
184 <groupId>net.revelc.code.formatter</groupId>
185 <artifactId>formatter-maven-plugin</artifactId>
Dan Timoney3763eb82021-12-13 15:06:43 -0500186 <version>2.17.1</version>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400187 <executions>
188 <execution>
189 <id>format-java</id>
190 <goals>
191 <goal>format</goal>
192 </goals>
193 <phase>process-sources</phase>
194 <configuration>
195 <lineEnding>LF</lineEnding>
196 <skip>${format.skipExecute}</skip>
197 <sourceDirectory>${project.basedir}</sourceDirectory>
198 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
199 <includes>
200 <include>src/**/*.java</include>
201 </includes>
202 </configuration>
203 </execution>
204 <execution>
205 <id>validate-java</id>
206 <goals>
207 <goal>validate</goal>
208 </goals>
209 <phase>validate</phase>
210 <configuration>
211 <lineEnding>LF</lineEnding>
212 <skip>${format.skipValidate}</skip>
213 <sourceDirectory>${project.basedir}</sourceDirectory>
214 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
215 <includes>
216 <include>src/**/*.java</include>
217 </includes>
218 </configuration>
219 </execution>
220 </executions>
221 <dependencies>
222 <dependency>
223 <groupId>com.fasterxml.jackson.core</groupId>
224 <artifactId>jackson-annotations</artifactId>
225 <version>${jackson-bom.version}</version>
226 </dependency>
227 </dependencies>
228 </plugin>
229
Oleg Mitsura8c231292020-08-20 09:47:26 -0400230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-surefire-plugin</artifactId>
233 <version>${maven-surefire-plugin.version}</version>
234 <configuration>
235 <!-- Sets the VM argument line used when unit tests are run. -->
236 <argLine>${surefireArgLine}</argLine>
237 <!-- Excludes integration tests when unit tests are run. -->
238 <excludes>
239 <exclude>**/IT*.java</exclude>
240 </excludes>
241 </configuration>
242 </plugin>
243 <plugin>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-failsafe-plugin</artifactId>
246 <version>${maven-failsafe-plugin.version}</version>
247 <executions>
248 <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
249 <execution>
250 <id>integration-tests</id>
251 <goals>
252 <goal>integration-test</goal>
253 <goal>verify</goal>
254 </goals>
255 <configuration>
256 <!-- Sets the VM argument line used when integration tests are run. -->
257 <argLine>${failsafeArgLine}</argLine>
258 </configuration>
259 </execution>
260 </executions>
261 </plugin>
262 <plugin>
263 <groupId>org.jetbrains.kotlin</groupId>
264 <artifactId>kotlin-maven-plugin</artifactId>
265 <version>${kotlin.maven.version}</version>
266 <configuration>
267 <jvmTarget>${java.version}</jvmTarget>
268 </configuration>
269 </plugin>
270 <plugin>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-compiler-plugin</artifactId>
273 <version>${maven-compiler-plugin.version}</version>
274 <configuration>
275 <release>${java.version}</release>
276 <!--explicitly remove source and target-->
277 <source combine.self="override"/>
278 <target combine.self="override"/>
279 </configuration>
280 </plugin>
281 </plugins>
282 </pluginManagement>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100283 <plugins>
284 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400285 <groupId>org.jacoco</groupId>
286 <artifactId>jacoco-maven-plugin</artifactId>
287 <version>${jacoco.version}</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100288 </plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500289 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400290 <groupId>org.codehaus.mojo</groupId>
291 <artifactId>tidy-maven-plugin</artifactId>
292 </plugin>
293 <plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-antrun-plugin</artifactId>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400296 </plugin>
297 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400298 <groupId>org.commonjava.maven.plugins</groupId>
299 <artifactId>directory-maven-plugin</artifactId>
300 </plugin>
301 <plugin>
302 <groupId>net.revelc.code.formatter</groupId>
303 <artifactId>formatter-maven-plugin</artifactId>
304 </plugin>
305 <plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-surefire-plugin</artifactId>
308 </plugin>
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-failsafe-plugin</artifactId>
312 </plugin>
313 <plugin>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-compiler-plugin</artifactId>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500316 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100317 </plugins>
318 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530319
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100320 <profiles>
321 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400322 <id>blackduck</id>
323 <activation>
324 <property>
325 <name>blackduck-scan</name>
326 </property>
327 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100328 <build>
329 <plugins>
330 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400331 <groupId>com.blackducksoftware.integration</groupId>
332 <artifactId>hub-maven-plugin</artifactId>
333 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100334 <inherited>false</inherited>
335 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400336 <hubProjectName>${project.name}</hubProjectName>
337 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100338 </configuration>
339 <executions>
340 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400341 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100342 <phase>package</phase>
343 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400344 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100345 </goals>
346 </execution>
347 </executions>
348 </plugin>
349 </plugins>
350 </build>
351 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100352
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400353 <!-- Profile to format skip validate or execute -->
354 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000355 <id>format</id>
356 <properties>
357 <format.skipValidate>true</format.skipValidate>
358 <format.skipExecute>false</format.skipExecute>
359 </properties>
360 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500361 <profile>
362 <id>dependency-list</id>
363 <build>
364 <plugins>
365 <plugin>
366 <groupId>com.github.ferstl</groupId>
367 <artifactId>depgraph-maven-plugin</artifactId>
368 <executions>
369 <execution>
370 <phase>validate</phase>
371 <inherited>false</inherited>
372 <goals>
373 <goal>aggregate</goal>
374 </goals>
375 </execution>
376 </executions>
377 </plugin>
378 <plugin>
379 <groupId>org.codehaus.mojo</groupId>
380 <artifactId>build-helper-maven-plugin</artifactId>
381 <executions>
382 <execution>
383 <id>attach-artifacts</id>
384 <phase>package</phase>
385 <inherited>false</inherited>
386 <goals>
387 <goal>attach-artifact</goal>
388 </goals>
389 <configuration>
390 <artifacts>
391 <artifact>
392 <file>${dependency-list.file}</file>
393 <type>txt</type>
394 <classifier>dependencies</classifier>
395 </artifact>
396 </artifacts>
397 </configuration>
398 </execution>
399 </executions>
400 </plugin>
401 </plugins>
402 </build>
403 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000404 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400405</project>