Updating parent pom version to 2.1.1-SNAPSHOT
[ccsdk/cds.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2019 Bell Canada
4 Modification Copyright © 2018-2019 AT&T Intellectual Property.
5
6 Unless otherwise specified, all software contained herein is licensed
7 under the Apache License, Version 2.0 (the License);
8 you may not use this software except in compliance with the License.
9 You may obtain a copy of the License at
10
11     http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -->
19
20 <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">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.onap.ccsdk.parent</groupId>
25         <artifactId>spring-boot-starter-parent</artifactId>
26         <version>2.1.1-SNAPSHOT</version>
27         <relativePath/>
28     </parent>
29
30     <groupId>org.onap.ccsdk.cds</groupId>
31     <artifactId>cds-aggregator</artifactId>
32     <version>1.1.0-SNAPSHOT</version>
33     <packaging>pom</packaging>
34
35     <name>Aggregator</name>
36     <description>CCSDK Controller Design Studio</description>
37     <url>https://wiki.onap.org</url>
38     <organization>
39         <name>ONAP</name>
40     </organization>
41
42     <modules>
43         <module>ms</module>
44         <module>cds-ui</module>
45         <module>components</module>
46     </modules>
47
48     <properties>
49         <!--Don't set any language to let sonar enable multi-language support-->
50         <sonar.language/>
51         <!--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>
57         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
58         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
59         </sonar.coverage.jacoco.xmlReportPaths>
60         <jacoco.version>0.8.3</jacoco.version>
61
62         <!-- Properties for POM Format -->
63         <format.skipValidate>false</format.skipValidate>
64         <format.skipExecute>true</format.skipExecute>
65         <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>
68
69         <!-- docker related properties -->
70         <docker.verbose>true</docker.verbose>
71         <docker.skip.push>false</docker.skip.push>
72         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
73         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
74
75         <ccsdk.cds.version>${project.version}</ccsdk.cds.version>
76     </properties>
77
78     <build>
79         <pluginManagement>
80             <plugins>
81                 <!-- Plugin to Format/Validate POM Files -->
82                 <plugin>
83                     <groupId>org.codehaus.mojo</groupId>
84                     <artifactId>tidy-maven-plugin</artifactId>
85                     <version>1.1.0</version>
86                     <configuration>
87                         <lineLength>120</lineLength>
88                     </configuration>
89                     <executions>
90                         <execution>
91                             <id>format-pom</id>
92                             <phase>process-sources</phase>
93                             <goals>
94                                 <goal>pom</goal>
95                             </goals>
96                             <configuration>
97                                 <skip>${format.skipExecute}</skip>
98                             </configuration>
99                         </execution>
100                         <execution>
101                             <id>validate-pom</id>
102                             <phase>validate</phase>
103                             <goals>
104                                 <goal>check</goal>
105                             </goals>
106                             <configuration>
107                                 <skip>${format.skipValidate}</skip>
108                             </configuration>
109                         </execution>
110                     </executions>
111                 </plugin>
112
113                 <!-- Plugin to Format/Validate Kotlin Files -->
114                 <plugin>
115                     <groupId>org.apache.maven.plugins</groupId>
116                     <artifactId>maven-antrun-plugin</artifactId>
117                     <version>${maven-antrun-plugin.version}</version>
118                     <executions>
119                         <execution>
120                             <id>validate-kotlin</id>
121                             <phase>validate</phase>
122                             <configuration>
123                                 <target name="ktlint">
124                                     <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
125                                         <arg value="src/**/*.kt"/>
126                                         <arg value="Scripts/**/*.kt"/>
127                                     </java>
128                                 </target>
129                                 <skip>${format.skipValidate}</skip>
130                             </configuration>
131                             <goals>
132                                 <goal>run</goal>
133                             </goals>
134                         </execution>
135                         <execution>
136                             <id>format-kotlin</id>
137                             <phase>process-sources</phase>
138                             <configuration>
139                                 <target name="ktlint">
140                                     <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
141                                         <arg value="-F"/>
142                                         <arg value="src/**/*.kt"/>
143                                         <arg value="Scripts/**/*.kt"/>
144                                     </java>
145                                 </target>
146                                 <skip>${format.skipExecute}</skip>
147                             </configuration>
148                             <goals>
149                                 <goal>run</goal>
150                             </goals>
151                         </execution>
152                     </executions>
153                     <dependencies>
154                         <dependency>
155                             <groupId>com.pinterest</groupId>
156                             <artifactId>ktlint</artifactId>
157                             <version>0.39.0</version>
158                         </dependency>
159                     </dependencies>
160                 </plugin>
161
162                 <!-- Plugin to identify root path of the project -->
163                 <plugin>
164                     <groupId>org.commonjava.maven.plugins</groupId>
165                     <artifactId>directory-maven-plugin</artifactId>
166                     <version>0.3</version>
167                     <executions>
168                         <execution>
169                             <phase>validate</phase>
170                             <id>directories</id>
171                             <goals>
172                                 <goal>highest-basedir</goal>
173                             </goals>
174                             <configuration>
175                                 <property>baseDirPath</property>
176                             </configuration>
177                         </execution>
178                     </executions>
179                 </plugin>
180
181                 <!-- Plugin to Format/Validate Java Classes -->
182                 <plugin>
183                     <groupId>net.revelc.code.formatter</groupId>
184                     <artifactId>formatter-maven-plugin</artifactId>
185                     <version>2.12.0</version>
186                     <executions>
187                         <execution>
188                             <id>format-java</id>
189                             <goals>
190                                 <goal>format</goal>
191                             </goals>
192                             <phase>process-sources</phase>
193                             <configuration>
194                                 <lineEnding>LF</lineEnding>
195                                 <skip>${format.skipExecute}</skip>
196                                 <sourceDirectory>${project.basedir}</sourceDirectory>
197                                 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
198                                 <includes>
199                                     <include>src/**/*.java</include>
200                                 </includes>
201                             </configuration>
202                         </execution>
203                         <execution>
204                             <id>validate-java</id>
205                             <goals>
206                                 <goal>validate</goal>
207                             </goals>
208                             <phase>validate</phase>
209                             <configuration>
210                                 <lineEnding>LF</lineEnding>
211                                 <skip>${format.skipValidate}</skip>
212                                 <sourceDirectory>${project.basedir}</sourceDirectory>
213                                 <configFile>${baseDirPath}/ONAP-Java-Code-Style.xml</configFile>
214                                 <includes>
215                                     <include>src/**/*.java</include>
216                                 </includes>
217                             </configuration>
218                         </execution>
219                     </executions>
220                     <dependencies>
221                         <dependency>
222                             <groupId>com.fasterxml.jackson.core</groupId>
223                             <artifactId>jackson-annotations</artifactId>
224                             <version>${jackson-bom.version}</version>
225                         </dependency>
226                     </dependencies>
227                 </plugin>
228
229                 <plugin>
230                     <groupId>org.apache.maven.plugins</groupId>
231                     <artifactId>maven-surefire-plugin</artifactId>
232                     <version>${maven-surefire-plugin.version}</version>
233                     <configuration>
234                         <!-- Sets the VM argument line used when unit tests are run. -->
235                         <argLine>${surefireArgLine}</argLine>
236                         <!-- Excludes integration tests when unit tests are run. -->
237                         <excludes>
238                             <exclude>**/IT*.java</exclude>
239                         </excludes>
240                     </configuration>
241                 </plugin>
242                 <plugin>
243                     <groupId>org.apache.maven.plugins</groupId>
244                     <artifactId>maven-failsafe-plugin</artifactId>
245                     <version>${maven-failsafe-plugin.version}</version>
246                     <executions>
247                         <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
248                         <execution>
249                             <id>integration-tests</id>
250                             <goals>
251                                 <goal>integration-test</goal>
252                                 <goal>verify</goal>
253                             </goals>
254                             <configuration>
255                                 <!-- Sets the VM argument line used when integration tests are run. -->
256                                 <argLine>${failsafeArgLine}</argLine>
257                             </configuration>
258                         </execution>
259                     </executions>
260                 </plugin>
261                 <plugin>
262                     <groupId>org.jetbrains.kotlin</groupId>
263                     <artifactId>kotlin-maven-plugin</artifactId>
264                     <version>${kotlin.maven.version}</version>
265                     <configuration>
266                         <jvmTarget>${java.version}</jvmTarget>
267                     </configuration>
268                 </plugin>
269                 <plugin>
270                     <groupId>org.apache.maven.plugins</groupId>
271                     <artifactId>maven-compiler-plugin</artifactId>
272                     <version>${maven-compiler-plugin.version}</version>
273                     <configuration>
274                         <release>${java.version}</release>
275                         <!--explicitly remove source and target-->
276                         <source combine.self="override"/>
277                         <target combine.self="override"/>
278                     </configuration>
279                 </plugin>
280             </plugins>
281         </pluginManagement>
282         <plugins>
283             <plugin>
284                 <groupId>org.jacoco</groupId>
285                 <artifactId>jacoco-maven-plugin</artifactId>
286                 <version>${jacoco.version}</version>
287             </plugin>
288             <plugin>
289                 <groupId>org.codehaus.mojo</groupId>
290                 <artifactId>tidy-maven-plugin</artifactId>
291             </plugin>
292             <plugin>
293                 <groupId>org.apache.maven.plugins</groupId>
294                 <artifactId>maven-antrun-plugin</artifactId>
295             </plugin>
296             <plugin>
297                 <groupId>org.commonjava.maven.plugins</groupId>
298                 <artifactId>directory-maven-plugin</artifactId>
299             </plugin>
300             <plugin>
301                 <groupId>net.revelc.code.formatter</groupId>
302                 <artifactId>formatter-maven-plugin</artifactId>
303             </plugin>
304             <plugin>
305                 <groupId>org.apache.maven.plugins</groupId>
306                 <artifactId>maven-surefire-plugin</artifactId>
307             </plugin>
308             <plugin>
309                 <groupId>org.apache.maven.plugins</groupId>
310                 <artifactId>maven-failsafe-plugin</artifactId>
311             </plugin>
312             <plugin>
313                 <groupId>org.apache.maven.plugins</groupId>
314                 <artifactId>maven-compiler-plugin</artifactId>
315             </plugin>
316         </plugins>
317     </build>
318
319     <profiles>
320         <profile>
321             <id>blackduck</id>
322             <activation>
323                 <property>
324                     <name>blackduck-scan</name>
325                 </property>
326             </activation>
327             <build>
328                 <plugins>
329                     <plugin>
330                         <groupId>com.blackducksoftware.integration</groupId>
331                         <artifactId>hub-maven-plugin</artifactId>
332                         <version>1.4.0</version>
333                         <inherited>false</inherited>
334                         <configuration>
335                             <hubProjectName>${project.name}</hubProjectName>
336                             <outputDirectory>${project.basedir}</outputDirectory>
337                         </configuration>
338                         <executions>
339                             <execution>
340                                 <id>create-bdio-file</id>
341                                 <phase>package</phase>
342                                 <goals>
343                                     <goal>createHubOutput</goal>
344                                 </goals>
345                             </execution>
346                         </executions>
347                     </plugin>
348                 </plugins>
349             </build>
350         </profile>
351
352         <!-- Profile to format skip validate or execute -->
353         <profile>
354             <id>format</id>
355             <properties>
356                 <format.skipValidate>true</format.skipValidate>
357                 <format.skipExecute>false</format.skipExecute>
358             </properties>
359         </profile>
360         <profile>
361             <id>dependency-list</id>
362             <build>
363                 <plugins>
364                     <plugin>
365                         <groupId>com.github.ferstl</groupId>
366                         <artifactId>depgraph-maven-plugin</artifactId>
367                         <executions>
368                             <execution>
369                                 <phase>validate</phase>
370                                 <inherited>false</inherited>
371                                 <goals>
372                                     <goal>aggregate</goal>
373                                 </goals>
374                             </execution>
375                         </executions>
376                     </plugin>
377                     <plugin>
378                         <groupId>org.codehaus.mojo</groupId>
379                         <artifactId>build-helper-maven-plugin</artifactId>
380                         <executions>
381                             <execution>
382                                 <id>attach-artifacts</id>
383                                 <phase>package</phase>
384                                 <inherited>false</inherited>
385                                 <goals>
386                                     <goal>attach-artifact</goal>
387                                 </goals>
388                                 <configuration>
389                                     <artifacts>
390                                         <artifact>
391                                             <file>${dependency-list.file}</file>
392                                             <type>txt</type>
393                                             <classifier>dependencies</classifier>
394                                         </artifact>
395                                     </artifacts>
396                                 </configuration>
397                             </execution>
398                         </executions>
399                     </plugin>
400                 </plugins>
401             </build>
402         </profile>
403     </profiles>
404 </project>