e3c82dc2c310f6f0eaab91944c8e9be9852a4aa5
[dcaegen2/collectors/hv-ves.git] / sources / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ dcaegen2-collectors-veshv
5   ~ ================================================================================
6   ~ Copyright (C) 2018-2021 NOKIA
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~      http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=========================================================
20   -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
24     <modelVersion>4.0.0</modelVersion>
25
26     <licenses>
27         <license>
28             <name>The Apache Software License, Version 2.0</name>
29             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
30         </license>
31     </licenses>
32
33     <parent>
34         <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
35         <artifactId>ves-hv-collector</artifactId>
36         <version>1.9.0-SNAPSHOT</version>
37         <relativePath>..</relativePath>
38     </parent>
39
40     <artifactId>hv-collector-sources</artifactId>
41     <description>VES HighVolume Collector :: Sources</description>
42     <packaging>pom</packaging>
43
44     <properties>
45         <skipAnalysis>false</skipAnalysis>
46     </properties>
47
48     <profiles>
49         <profile>
50             <id>analysis</id>
51             <activation>
52                 <file>
53                     <exists>src/main/kotlin</exists>
54                 </file>
55             </activation>
56             <build>
57                 <plugins>
58                     <plugin>
59                         <artifactId>maven-checkstyle-plugin</artifactId>
60                         <version>3.1.0</version>
61                         <dependencies>
62                             <dependency>
63                                 <groupId>org.onap.oparent</groupId>
64                                 <artifactId>checkstyle</artifactId>
65                                 <version>3.0.0</version>
66                             </dependency>
67                         </dependencies>
68                         <executions>
69                             <execution>
70                                 <!-- To override oparent configuration different id must be used
71                                      We need to override it to include .kt files in check. -->
72                                 <id>check-license-kotlin</id>
73                                 <goals>
74                                     <goal>check</goal>
75                                 </goals>
76                                 <phase>process-sources</phase>
77                                 <configuration>
78                                     <configLocation>onap-checkstyle/check-license.xml</configLocation>
79                                     <includeResources>false</includeResources>
80                                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
81                                     <includeTestResources>false</includeTestResources>
82                                     <includes>**\/*.kt</includes>
83                                     <consoleOutput>true</consoleOutput>
84                                     <!--<failOnViolation>false</failOnViolation>-->
85                                 </configuration>
86                             </execution>
87                         </executions>
88                     </plugin>
89                     <plugin>
90                         <groupId>org.apache.maven.plugins</groupId>
91                         <artifactId>maven-antrun-plugin</artifactId>
92                         <version>1.8</version>
93                         <executions>
94                             <execution>
95                                 <!-- This can be run separately with mvn antrun:run@detekt -->
96                                 <id>detekt</id>
97                                 <phase>verify</phase>
98                                 <goals>
99                                     <goal>run</goal>
100                                 </goals>
101                                 <configuration>
102                                     <target name="detekt" unless="${skipAnalysis}">
103                                         <java taskname="detekt" dir="${basedir}"
104                                               fork="true"
105                                               failonerror="true"
106                                               classname="io.gitlab.arturbosch.detekt.cli.Main"
107                                               classpathref="maven.plugin.classpath">
108                                             <arg value="--input"/>
109                                             <arg value="${basedir}/src/main/kotlin"/>
110                                             <arg value="--config-resource"/>
111                                             <arg value="onap-detekt-config.yml"/>
112                                             <arg value="--report"/>
113                                             <arg value="html:${basedir}/target/detekt-report.html"/>
114                                             <arg value="--auto-correct"/>
115                                         </java>
116                                     </target>
117                                 </configuration>
118                             </execution>
119                         </executions>
120                         <dependencies>
121                             <dependency>
122                                 <groupId>io.gitlab.arturbosch.detekt</groupId>
123                                 <artifactId>detekt-cli</artifactId>
124                                 <version>${detekt.version}</version>
125                             </dependency>
126                             <dependency>
127                                 <groupId>${project.groupId}</groupId>
128                                 <artifactId>hv-collector-analysis</artifactId>
129                                 <version>1.9.0-SNAPSHOT</version>
130                             </dependency>
131                         </dependencies>
132                     </plugin>
133                 </plugins>
134             </build>
135         </profile>
136     </profiles>
137
138     <modules>
139         <module>hv-collector-commandline</module>
140         <module>hv-collector-configuration</module>
141         <module>hv-collector-core</module>
142         <module>hv-collector-ct</module>
143         <module>hv-collector-dcae-app-simulator</module>
144         <module>hv-collector-domain</module>
145         <module>hv-collector-health-check</module>
146         <module>hv-collector-kafka</module>
147         <module>hv-collector-kafka-consumer</module>
148         <module>hv-collector-main</module>
149         <module>hv-collector-server</module>
150         <module>hv-collector-ssl</module>
151         <module>hv-collector-test-utils</module>
152         <module>hv-collector-utils</module>
153         <module>hv-collector-ves-message-generator</module>
154         <module>hv-collector-xnf-simulator</module>
155     </modules>
156 </project>