Creation of server module
[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 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.1.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>2.17</version>
61                         <dependencies>
62                             <dependency>
63                                 <groupId>org.onap.oparent</groupId>
64                                 <artifactId>checkstyle</artifactId>
65                                 <version>1.1.1</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}" fork="true" failonerror="true"
104                                                 classname="io.gitlab.arturbosch.detekt.cli.Main"
105                                                 classpathref="maven.plugin.classpath">
106                                             <arg value="--input"/>
107                                             <arg value="${basedir}/src/main/kotlin"/>
108                                             <arg value="--config-resource"/>
109                                             <arg value="onap-detekt-config.yml"/>
110                                             <arg value="--filters"/>
111                                             <arg value=".*/target/.*,.*/resources/.*"/>
112                                             <arg value="--report"/>
113                                             <arg value="html:${basedir}/target/detekt-report.html"/>
114                                         </java>
115                                     </target>
116                                 </configuration>
117                             </execution>
118                         </executions>
119                         <dependencies>
120                             <dependency>
121                                 <groupId>io.gitlab.arturbosch.detekt</groupId>
122                                 <artifactId>detekt-cli</artifactId>
123                                 <version>${detekt.version}</version>
124                             </dependency>
125                             <dependency>
126                                 <groupId>${project.groupId}</groupId>
127                                 <artifactId>hv-collector-analysis</artifactId>
128                                 <version>1.1.0-SNAPSHOT</version>
129                             </dependency>
130                         </dependencies>
131                     </plugin>
132                 </plugins>
133             </build>
134         </profile>
135     </profiles>
136
137     <modules>
138         <module>hv-collector-commandline</module>
139         <module>hv-collector-configuration</module>
140         <module>hv-collector-core</module>
141         <module>hv-collector-ct</module>
142         <module>hv-collector-dcae-app-simulator</module>
143         <module>hv-collector-domain</module>
144         <module>hv-collector-health-check</module>
145         <module>hv-collector-main</module>
146         <module>hv-collector-server</module>
147         <module>hv-collector-ssl</module>
148         <module>hv-collector-test-utils</module>
149         <module>hv-collector-utils</module>
150         <module>hv-collector-ves-message-generator</module>
151         <module>hv-collector-xnf-simulator</module>
152     </modules>
153 </project>