Merge "Add client-frankfurt skeleton project"
[ccsdk/cds.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2019 Bell Canada
4
5 Unless otherwise specified, all software contained herein is licensed
6 under the Apache License, Version 2.0 (the License);
7 you may not use this software except in compliance with the License.
8 You may obtain a copy of the License at
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <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">
19     <modelVersion>4.0.0</modelVersion>
20
21     <parent>
22         <groupId>org.onap.ccsdk.parent</groupId>
23         <artifactId>spring-boot-starter-parent</artifactId>
24         <version>1.5.0</version>
25         <relativePath/>
26     </parent>
27
28     <groupId>org.onap.ccsdk.cds</groupId>
29     <artifactId>parent</artifactId>
30     <version>0.7.0-SNAPSHOT</version>
31     <packaging>pom</packaging>
32
33     <name>CDS Parent</name>
34     <description>CCSDK Controller Design Studio</description>
35     <url>https://wiki.onap.org</url>
36     <organization>
37         <name>ONAP</name>
38     </organization>
39
40     <modules>
41         <module>ms</module>
42         <module>cds-ui</module>
43     </modules>
44
45     <properties>
46         <!--Don't set any language to let sonar enable multi-language support-->
47         <sonar.language/>
48         <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
49         <sonar.sources>src/main</sonar.sources>
50         <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
51         <sonar.tests>src/test</sonar.tests>
52         <!--Only include java and kt files to the scan-->
53         <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
54         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
55         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
56         <jacoco.version>0.8.3</jacoco.version>
57
58         <!-- Properties for POM Format -->
59         <format.skipValidate>false</format.skipValidate>
60         <format.skipExecute>true</format.skipExecute>
61     </properties>
62
63     <build>
64         <plugins>
65             <plugin>
66                 <groupId>org.jacoco</groupId>
67                 <artifactId>jacoco-maven-plugin</artifactId>
68                 <version>${jacoco.version}</version>
69             </plugin>
70
71             <!-- Plugin to Format/Validate POM Files -->
72             <plugin>
73                 <groupId>org.codehaus.mojo</groupId>
74                 <artifactId>tidy-maven-plugin</artifactId>
75                 <version>1.1.0</version>
76                 <executions>
77                     <execution>
78                         <id>format-pom</id>
79                         <phase>process-sources</phase>
80                         <goals>
81                             <goal>pom</goal>
82                         </goals>
83                         <configuration>
84                             <skip>${format.skipExecute}</skip>
85                         </configuration>
86                     </execution>
87                     <execution>
88                         <id>validate-pom</id>
89                         <phase>validate</phase>
90                         <goals>
91                             <goal>check</goal>
92                         </goals>
93                         <configuration>
94                             <skip>${format.skipValidate}</skip>
95                         </configuration>
96                     </execution>
97                 </executions>
98             </plugin>
99         </plugins>
100     </build>
101
102     <profiles>
103         <profile>
104             <id>blackduck</id>
105             <activation>
106                 <property>
107                     <name>blackduck-scan</name>
108                 </property>
109             </activation>
110             <build>
111                 <plugins>
112                     <plugin>
113                         <groupId>com.blackducksoftware.integration</groupId>
114                         <artifactId>hub-maven-plugin</artifactId>
115                         <version>1.4.0</version>
116                         <inherited>false</inherited>
117                         <configuration>
118                             <hubProjectName>${project.name}</hubProjectName>
119                             <outputDirectory>${project.basedir}</outputDirectory>
120                         </configuration>
121                         <executions>
122                             <execution>
123                                 <id>create-bdio-file</id>
124                                 <phase>package</phase>
125                                 <goals>
126                                     <goal>createHubOutput</goal>
127                                 </goals>
128                             </execution>
129                         </executions>
130                     </plugin>
131                 </plugins>
132             </build>
133         </profile>
134
135         <!-- Profile to format skip validate or execute -->
136         <profile>
137             <id>format</id>
138             <properties>
139                 <format.skipValidate>true</format.skipValidate>
140                 <format.skipExecute>false</format.skipExecute>
141             </properties>
142         </profile>
143     </profiles>
144 </project>