793b93c01e1b7585760fd91721b2e14c278b6212
[ccsdk/apps.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.ccsdk.parent</groupId>
7         <artifactId>spring-boot-25-starter-parent</artifactId>
8         <version>2.4.0</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.apps</groupId>
13     <artifactId>ccsdk-apps</artifactId>
14     <version>1.4.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>ccsdk-apps</name>
18     <description>CCSDK applications</description>
19     <url>https://wiki.onap.org</url>
20     <organization>
21         <name>ONAP</name>
22     </organization>
23
24     <modules>
25         <module>services</module>
26         <module>ms</module>
27     </modules>
28
29     <scm>
30         <connection>scm:git:ssh://git@${onap.git.host}/apps.git</connection>
31         <developerConnection>scm:git:ssh://${onap.git.host}:${onap.git.port}/${onap.git.project}/apps.git</developerConnection>
32         <url>${onap.git.protocol}://${onap.git.host}/projects/${onap.git.project}/repos/apps/browse</url>
33     </scm>
34
35     <properties>
36         <!--Don't set any language to let sonar enable multi-language support-->
37         <sonar.language/>
38         <!--Provide src/main as source path so both src/main/java and src/main/kotlin are scanned-->
39         <sonar.sources>src/main</sonar.sources>
40         <!--Provide src/test as source path for test so both src/test/java and src/test/kotlin are scanned-->
41         <sonar.tests>src/test</sonar.tests>
42         <!--Only include java and kt files to the scan-->
43         <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
44         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report.
45         Note: coverage for now is invalid and is failing to load because of:
46         "Cannot import coverage information for file '{file}', coverage data is invalid."
47         see https://github.com/jacoco/jacoco/issues/763
48         That issue has been fixed in 0.8.3 , so we override the default ONAP
49         version here to pick up that fix -->
50         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
51         <jacoco.version>0.8.3</jacoco.version>
52         <ccsdk.sli.version>1.5.0-SNAPSHOT</ccsdk.sli.version>
53     </properties>
54
55     <build>
56         <plugins>
57             <plugin>
58                 <groupId>org.jacoco</groupId>
59                 <artifactId>jacoco-maven-plugin</artifactId>
60                 <version>${jacoco.version}</version>
61             </plugin>
62         </plugins>
63     </build>
64
65     <profiles>
66         <profile>
67             <id>blackduck</id>
68             <activation>
69                 <property>
70                     <name>blackduck-scan</name>
71                 </property>
72             </activation>
73             <build>
74                 <plugins>
75                     <plugin>
76                         <groupId>com.blackducksoftware.integration</groupId>
77                         <artifactId>hub-maven-plugin</artifactId>
78                         <version>1.4.0</version>
79                         <inherited>false</inherited>
80                         <configuration>
81                             <hubProjectName>${project.name}</hubProjectName>
82                             <outputDirectory>${project.basedir}</outputDirectory>
83                         </configuration>
84                         <executions>
85                             <execution>
86                                 <id>create-bdio-file</id>
87                                 <phase>package</phase>
88                                 <goals>
89                                     <goal>createHubOutput</goal>
90                                 </goals>
91                             </execution>
92                         </executions>
93                     </plugin>
94                 </plugins>
95             </build>
96         </profile>
97         <profile>
98             <id>dependency-list</id>
99             <build>
100                 <plugins>
101                     <plugin>
102                         <groupId>com.github.ferstl</groupId>
103                         <artifactId>depgraph-maven-plugin</artifactId>
104                         <executions>
105                             <execution>
106                                 <phase>validate</phase>
107                                 <inherited>false</inherited>
108                                 <goals>
109                                     <goal>aggregate</goal>
110                                 </goals>
111                             </execution>
112                         </executions>
113                     </plugin>
114                     <plugin>
115                         <groupId>org.codehaus.mojo</groupId>
116                         <artifactId>build-helper-maven-plugin</artifactId>
117                         <executions>
118                             <execution>
119                                 <id>attach-artifacts</id>
120                                 <phase>package</phase>
121                                 <inherited>false</inherited>
122                                 <goals>
123                                     <goal>attach-artifact</goal>
124                                 </goals>
125                                 <configuration>
126                                     <artifacts>
127                                         <artifact>
128                                             <file>${dependency-list.file}</file>
129                                             <type>txt</type>
130                                             <classifier>dependencies</classifier>
131                                         </artifact>
132                                     </artifacts>
133                                 </configuration>
134                             </execution>
135                         </executions>
136                     </plugin>
137                 </plugins>
138             </build>
139         </profile>
140     </profiles>
141 </project>