blob: f2ee54987f4560cac578bdb0a088a181b40d012a [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-->
Dan Timoney8edec222020-04-07 11:51:20 -040019
Timoney, Dan (dt5972)dfe52052019-07-17 11:07:44 -040020<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 +000021 <modelVersion>4.0.0</modelVersion>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040022
23 <parent>
24 <groupId>org.onap.ccsdk.parent</groupId>
Timoney, Dan (dt5972)da571512019-06-20 19:17:31 -040025 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney31ec7422020-09-22 15:56:18 -040026 <version>2.1.0-SNAPSHOT</version>
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040027 <relativePath/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040028 </parent>
29
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040030 <groupId>org.onap.ccsdk.cds</groupId>
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040031 <artifactId>cds-aggregator</artifactId>
Dan Timoney31ec7422020-09-22 15:56:18 -040032 <version>1.1.0-SNAPSHOT</version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040033 <packaging>pom</packaging>
34
Singal, Kapil (ks220y)8de37f92020-09-11 13:58:42 -040035 <name>Aggregator</name>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040036 <description>CCSDK Controller Design Studio</description>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000037 <url>https://wiki.onap.org</url>
38 <organization>
39 <name>ONAP</name>
40 </organization>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040041
42 <modules>
Alexis de Talhouët837f8492019-03-27 16:42:08 -040043 <module>ms</module>
Singal, Kapil (ks220y)615761d2020-02-13 11:37:37 -050044 <module>cds-ui</module>
Brinda Santh795ca3d2019-11-20 14:27:46 -050045 <module>components</module>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040046 </modules>
47
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040048 <properties>
49 <!--Don't set any language to let sonar enable multi-language support-->
Singal, Kapil (ks220y)d39d85b2019-09-18 12:23:42 -040050 <sonar.language/>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040051 <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
52 <sonar.sources>src/main</sonar.sources>
53 <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
54 <sonar.tests>src/test</sonar.tests>
55 <!--Only include java and kt files to the scan-->
56 <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
Alexis de Talhouëtd4b56bc2019-07-01 19:25:41 -040057 <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
Brinda Santh65bb9d02020-02-05 15:51:03 -050058 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
59 </sonar.coverage.jacoco.xmlReportPaths>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040060 <jacoco.version>0.8.3</jacoco.version>
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040061
62 <!-- Properties for POM Format -->
63 <format.skipValidate>false</format.skipValidate>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000064 <format.skipExecute>true</format.skipExecute>
Oleg Mitsura8c231292020-08-20 09:47:26 -040065 <java.version>11</java.version>
66 <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
67 <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
Singal, Kapil (ks220y)fbbc9bc2020-09-16 10:49:28 -040068
69 <!-- docker related properties -->
70 <docker.verbose>true</docker.verbose>
71 <docker.skip.push>false</docker.skip.push>
72 <docker.push.phase>deploy</docker.push.phase>
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>
82 <!--TODO: This plugin is broken. Find replacement-->
83 <!-- 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>
88 <executions>
89 <execution>
90 <id>format-pom</id>
91 <phase>process-sources</phase>
92 <goals>
93 <goal>pom</goal>
94 </goals>
95 <configuration>
96 <skip>${format.skipExecute}</skip>
97 </configuration>
98 </execution>
99 <execution>
100 <id>validate-pom</id>
101 <phase>validate</phase>
102 <goals>
103 <goal>check</goal>
104 </goals>
105 <configuration>
106 <skip>${format.skipValidate}</skip>
107 </configuration>
108 </execution>
109 </executions>
110 </plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400111
112 <!-- Plugin to Format/Validate Kotlin Files -->
113 <plugin>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-antrun-plugin</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400116 <version>${maven-antrun-plugin.version}</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400117 <executions>
118 <execution>
119 <id>validate-kotlin</id>
120 <phase>validate</phase>
121 <configuration>
122 <target name="ktlint">
123 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
124 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400125 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400126 </java>
127 </target>
128 <skip>${format.skipValidate}</skip>
129 </configuration>
130 <goals>
131 <goal>run</goal>
132 </goals>
133 </execution>
134 <execution>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400135 <id>format-kotlin</id>
136 <phase>process-sources</phase>
137 <configuration>
138 <target name="ktlint">
139 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
140 <arg value="-F"/>
141 <arg value="src/**/*.kt"/>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400142 <arg value="Scripts/**/*.kt"/>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400143 </java>
144 </target>
145 <skip>${format.skipExecute}</skip>
146 </configuration>
147 <goals>
148 <goal>run</goal>
149 </goals>
150 </execution>
151 </executions>
152 <dependencies>
153 <dependency>
154 <groupId>com.pinterest</groupId>
155 <artifactId>ktlint</artifactId>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400156 <version>0.39.0</version>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400157 </dependency>
158 </dependencies>
159 </plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400160
161 <!-- Plugin to identify root path of the project -->
162 <plugin>
163 <groupId>org.commonjava.maven.plugins</groupId>
164 <artifactId>directory-maven-plugin</artifactId>
165 <version>0.3</version>
166 <executions>
167 <execution>
168 <phase>validate</phase>
169 <id>directories</id>
170 <goals>
171 <goal>highest-basedir</goal>
172 </goals>
173 <configuration>
174 <property>baseDirPath</property>
175 </configuration>
176 </execution>
177 </executions>
178 </plugin>
179
180 <!-- Plugin to Format/Validate Java Classes -->
181 <plugin>
182 <groupId>net.revelc.code.formatter</groupId>
183 <artifactId>formatter-maven-plugin</artifactId>
184 <version>2.12.0</version>
185 <executions>
186 <execution>
187 <id>format-java</id>
188 <goals>
189 <goal>format</goal>
190 </goals>
191 <phase>process-sources</phase>
192 <configuration>
193 <lineEnding>LF</lineEnding>
194 <skip>${format.skipExecute}</skip>
195 <sourceDirectory>${project.basedir}</sourceDirectory>
196 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
197 <includes>
198 <include>src/**/*.java</include>
199 </includes>
200 </configuration>
201 </execution>
202 <execution>
203 <id>validate-java</id>
204 <goals>
205 <goal>validate</goal>
206 </goals>
207 <phase>validate</phase>
208 <configuration>
209 <lineEnding>LF</lineEnding>
210 <skip>${format.skipValidate}</skip>
211 <sourceDirectory>${project.basedir}</sourceDirectory>
212 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
213 <includes>
214 <include>src/**/*.java</include>
215 </includes>
216 </configuration>
217 </execution>
218 </executions>
219 <dependencies>
220 <dependency>
221 <groupId>com.fasterxml.jackson.core</groupId>
222 <artifactId>jackson-annotations</artifactId>
223 <version>${jackson-bom.version}</version>
224 </dependency>
225 </dependencies>
226 </plugin>
227
Oleg Mitsura8c231292020-08-20 09:47:26 -0400228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-surefire-plugin</artifactId>
231 <version>${maven-surefire-plugin.version}</version>
232 <configuration>
233 <!-- Sets the VM argument line used when unit tests are run. -->
234 <argLine>${surefireArgLine}</argLine>
235 <!-- Excludes integration tests when unit tests are run. -->
236 <excludes>
237 <exclude>**/IT*.java</exclude>
238 </excludes>
239 </configuration>
240 </plugin>
241 <plugin>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-failsafe-plugin</artifactId>
244 <version>${maven-failsafe-plugin.version}</version>
245 <executions>
246 <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
247 <execution>
248 <id>integration-tests</id>
249 <goals>
250 <goal>integration-test</goal>
251 <goal>verify</goal>
252 </goals>
253 <configuration>
254 <!-- Sets the VM argument line used when integration tests are run. -->
255 <argLine>${failsafeArgLine}</argLine>
256 </configuration>
257 </execution>
258 </executions>
259 </plugin>
260 <plugin>
261 <groupId>org.jetbrains.kotlin</groupId>
262 <artifactId>kotlin-maven-plugin</artifactId>
263 <version>${kotlin.maven.version}</version>
264 <configuration>
265 <jvmTarget>${java.version}</jvmTarget>
266 </configuration>
267 </plugin>
268 <plugin>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-compiler-plugin</artifactId>
271 <version>${maven-compiler-plugin.version}</version>
272 <configuration>
273 <release>${java.version}</release>
274 <!--explicitly remove source and target-->
275 <source combine.self="override"/>
276 <target combine.self="override"/>
277 </configuration>
278 </plugin>
279 </plugins>
280 </pluginManagement>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100281 <plugins>
282 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400283 <groupId>org.jacoco</groupId>
284 <artifactId>jacoco-maven-plugin</artifactId>
285 <version>${jacoco.version}</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100286 </plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500287 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400288 <groupId>org.codehaus.mojo</groupId>
289 <artifactId>tidy-maven-plugin</artifactId>
290 </plugin>
291 <plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-antrun-plugin</artifactId>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400294 </plugin>
295 <plugin>
Singal, Kapil (ks220y)10728672020-09-22 12:16:46 -0400296 <groupId>org.commonjava.maven.plugins</groupId>
297 <artifactId>directory-maven-plugin</artifactId>
298 </plugin>
299 <plugin>
300 <groupId>net.revelc.code.formatter</groupId>
301 <artifactId>formatter-maven-plugin</artifactId>
302 </plugin>
303 <plugin>
Oleg Mitsura8c231292020-08-20 09:47:26 -0400304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-surefire-plugin</artifactId>
306 </plugin>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-failsafe-plugin</artifactId>
310 </plugin>
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-compiler-plugin</artifactId>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500314 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100315 </plugins>
316 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530317
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100318 <profiles>
319 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400320 <id>blackduck</id>
321 <activation>
322 <property>
323 <name>blackduck-scan</name>
324 </property>
325 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100326 <build>
327 <plugins>
328 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400329 <groupId>com.blackducksoftware.integration</groupId>
330 <artifactId>hub-maven-plugin</artifactId>
331 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100332 <inherited>false</inherited>
333 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400334 <hubProjectName>${project.name}</hubProjectName>
335 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100336 </configuration>
337 <executions>
338 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400339 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100340 <phase>package</phase>
341 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400342 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100343 </goals>
344 </execution>
345 </executions>
346 </plugin>
347 </plugins>
348 </build>
349 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100350
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400351 <!-- Profile to format skip validate or execute -->
352 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000353 <id>format</id>
354 <properties>
355 <format.skipValidate>true</format.skipValidate>
356 <format.skipExecute>false</format.skipExecute>
357 </properties>
358 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500359 <profile>
360 <id>dependency-list</id>
361 <build>
362 <plugins>
363 <plugin>
364 <groupId>com.github.ferstl</groupId>
365 <artifactId>depgraph-maven-plugin</artifactId>
366 <executions>
367 <execution>
368 <phase>validate</phase>
369 <inherited>false</inherited>
370 <goals>
371 <goal>aggregate</goal>
372 </goals>
373 </execution>
374 </executions>
375 </plugin>
376 <plugin>
377 <groupId>org.codehaus.mojo</groupId>
378 <artifactId>build-helper-maven-plugin</artifactId>
379 <executions>
380 <execution>
381 <id>attach-artifacts</id>
382 <phase>package</phase>
383 <inherited>false</inherited>
384 <goals>
385 <goal>attach-artifact</goal>
386 </goals>
387 <configuration>
388 <artifacts>
389 <artifact>
390 <file>${dependency-list.file}</file>
391 <type>txt</type>
392 <classifier>dependencies</classifier>
393 </artifact>
394 </artifacts>
395 </configuration>
396 </execution>
397 </executions>
398 </plugin>
399 </plugins>
400 </build>
401 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000402 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400403</project>