blob: 1c76d5bf9a60f12cb502984cfcd2fd447048be26 [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 Timoney8edec222020-04-07 11:51:20 -040026 <version>2.0.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>
31 <artifactId>parent</artifactId>
Dan Timoney8edec222020-04-07 11:51:20 -040032 <version>1.0.0-SNAPSHOT</version>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040033 <packaging>pom</packaging>
34
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040035 <name>CDS Parent</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>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040065 </properties>
66
67 <build>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010068 <plugins>
69 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040070 <groupId>org.jacoco</groupId>
71 <artifactId>jacoco-maven-plugin</artifactId>
72 <version>${jacoco.version}</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +010073 </plugin>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000074
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -040075 <!-- Plugin to Format/Validate POM Files -->
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000076 <plugin>
77 <groupId>org.codehaus.mojo</groupId>
78 <artifactId>tidy-maven-plugin</artifactId>
79 <version>1.1.0</version>
80 <executions>
81 <execution>
82 <id>format-pom</id>
83 <phase>process-sources</phase>
84 <goals>
85 <goal>pom</goal>
86 </goals>
87 <configuration>
88 <skip>${format.skipExecute}</skip>
89 </configuration>
90 </execution>
91 <execution>
92 <id>validate-pom</id>
93 <phase>validate</phase>
94 <goals>
95 <goal>check</goal>
96 </goals>
97 <configuration>
98 <skip>${format.skipValidate}</skip>
99 </configuration>
100 </execution>
101 </executions>
102 </plugin>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500103
104 <!-- Plugin to Format/Validate Kotlin Files -->
105 <plugin>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-antrun-plugin</artifactId>
108 <version>1.7</version>
109 <executions>
110 <execution>
111 <id>validate-kotlin</id>
112 <phase>validate</phase>
113 <configuration>
114 <target name="ktlint">
Dan Timoney114c5c12020-03-18 09:59:18 -0400115 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500116 <arg value="src/**/*.kt"/>
117 </java>
118 </target>
119 <skip>${format.skipValidate}</skip>
120 </configuration>
121 <goals>
122 <goal>run</goal>
123 </goals>
124 </execution>
125 <execution>
126 <!-- Built-in formatter So that you wouldn't have to fix all style violations by hand.-->
127 <id>format-kotlin</id>
128 <phase>process-sources</phase>
129 <configuration>
130 <target name="ktlint">
Dan Timoney114c5c12020-03-18 09:59:18 -0400131 <java taskname="ktlint" dir="${project.basedir}" fork="true" failonerror="true" classname="com.pinterest.ktlint.Main" classpathref="maven.plugin.classpath">
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -0500132 <arg value="-F"/>
133 <arg value="src/**/*.kt"/>
134 </java>
135 </target>
136 <skip>${format.skipExecute}</skip>
137 </configuration>
138 <goals>
139 <goal>run</goal>
140 </goals>
141 </execution>
142 </executions>
143 <dependencies>
144 <dependency>
145 <groupId>com.pinterest</groupId>
146 <artifactId>ktlint</artifactId>
147 <version>0.35.0</version>
148 </dependency>
149 </dependencies>
150 </plugin>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100151 </plugins>
152 </build>
Arundathi Patil3d026852018-12-14 23:03:55 +0530153
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100154 <profiles>
155 <profile>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400156 <id>blackduck</id>
157 <activation>
158 <property>
159 <name>blackduck-scan</name>
160 </property>
161 </activation>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100162 <build>
163 <plugins>
164 <plugin>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400165 <groupId>com.blackducksoftware.integration</groupId>
166 <artifactId>hub-maven-plugin</artifactId>
167 <version>1.4.0</version>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100168 <inherited>false</inherited>
169 <configuration>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400170 <hubProjectName>${project.name}</hubProjectName>
171 <outputDirectory>${project.basedir}</outputDirectory>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100172 </configuration>
173 <executions>
174 <execution>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400175 <id>create-bdio-file</id>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100176 <phase>package</phase>
177 <goals>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400178 <goal>createHubOutput</goal>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100179 </goals>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
185 </profile>
Sylvain Desbureauxae7b27a2019-02-14 13:45:22 +0100186
Singal, Kapil (ks220y)71f561e2019-09-18 10:05:39 -0400187 <!-- Profile to format skip validate or execute -->
188 <profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000189 <id>format</id>
190 <properties>
191 <format.skipValidate>true</format.skipValidate>
192 <format.skipExecute>false</format.skipExecute>
193 </properties>
194 </profile>
Timoney, Dan (dt5972)dc863f42019-12-11 12:28:44 -0500195 <profile>
196 <id>dependency-list</id>
197 <build>
198 <plugins>
199 <plugin>
200 <groupId>com.github.ferstl</groupId>
201 <artifactId>depgraph-maven-plugin</artifactId>
202 <executions>
203 <execution>
204 <phase>validate</phase>
205 <inherited>false</inherited>
206 <goals>
207 <goal>aggregate</goal>
208 </goals>
209 </execution>
210 </executions>
211 </plugin>
212 <plugin>
213 <groupId>org.codehaus.mojo</groupId>
214 <artifactId>build-helper-maven-plugin</artifactId>
215 <executions>
216 <execution>
217 <id>attach-artifacts</id>
218 <phase>package</phase>
219 <inherited>false</inherited>
220 <goals>
221 <goal>attach-artifact</goal>
222 </goals>
223 <configuration>
224 <artifacts>
225 <artifact>
226 <file>${dependency-list.file}</file>
227 <type>txt</type>
228 <classifier>dependencies</classifier>
229 </artifact>
230 </artifacts>
231 </configuration>
232 </execution>
233 </executions>
234 </plugin>
235 </plugins>
236 </build>
237 </profile>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000238 </profiles>
Timoney, Dan (dt5972)84b361d2019-04-24 15:05:00 -0400239</project>