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