Migrate ccsdk/apps to ccsdk/cds
[ccsdk/cds.git] / pom.xml
1 <!--
2 Copyright (C) 2019 Bell Canada
3
4 Unless otherwise specified, all software contained herein is licensed
5 under the Apache License, Version 2.0 (the License);
6 you may not use this software except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17
18 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21     <parent>
22         <groupId>org.onap.ccsdk.parent</groupId>
23         <artifactId>odlparent-lite</artifactId>
24         <version>1.2.1</version>
25         <relativePath/>
26     </parent>
27
28     <modelVersion>4.0.0</modelVersion>
29
30     <groupId>org.onap.ccsdk.cds</groupId>
31     <artifactId>parent</artifactId>
32     <version>0.4.2-SNAPSHOT</version>
33     <packaging>pom</packaging>
34
35     <name>cds-parent</name>
36     <description>CCSDK Controller Design Studio</description>
37
38     <modules>
39         <!--<module>cds-ui</module>-->
40         <module>components</module>
41         <module>ms</module>
42     </modules>
43
44     <url>https://wiki.onap.org</url>
45     <organization>
46         <name>ONAP</name>
47     </organization>
48
49     <properties>
50         <!--Don't set any language to let sonar enable multi-language support-->
51         <sonar.language/>
52         <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
53         <sonar.sources>src/main</sonar.sources>
54         <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
55         <sonar.tests>src/test</sonar.tests>
56         <!--Only include java and kt files to the scan-->
57         <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
58         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report.
59         Note: coverage for now is invalid and is failing to load because of:
60         "Cannot import coverage information for file '{file}', coverage data is invalid."
61         see https://github.com/jacoco/jacoco/issues/763
62         That issue has been fixed in 0.8.3 , so we override the default ONAP
63         version here to pick up that fix -->
64         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
65         </sonar.coverage.jacoco.xmlReportPaths>
66         <jacoco.version>0.8.3</jacoco.version>
67     </properties>
68
69     <build>
70         <plugins>
71             <plugin>
72                 <groupId>org.jacoco</groupId>
73                 <artifactId>jacoco-maven-plugin</artifactId>
74                 <version>${jacoco.version}</version>
75             </plugin>
76         </plugins>
77     </build>
78
79     <profiles>
80         <profile>
81             <id>blackduck</id>
82             <activation>
83                 <property>
84                     <name>blackduck-scan</name>
85                 </property>
86             </activation>
87             <build>
88                 <plugins>
89                     <plugin>
90                         <groupId>com.blackducksoftware.integration</groupId>
91                         <artifactId>hub-maven-plugin</artifactId>
92                         <version>1.4.0</version>
93                         <inherited>false</inherited>
94                         <configuration>
95                             <hubProjectName>${project.name}</hubProjectName>
96                             <outputDirectory>${project.basedir}</outputDirectory>
97                         </configuration>
98                         <executions>
99                             <execution>
100                                 <id>create-bdio-file</id>
101                                 <phase>package</phase>
102                                 <goals>
103                                     <goal>createHubOutput</goal>
104                                 </goals>
105                             </execution>
106                         </executions>
107                     </plugin>
108                 </plugins>
109             </build>
110         </profile>
111     </profiles>
112
113 </project>