Release version 1.3.1
[ccsdk/features.git] / sdnr / wt / data-provider / setup / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2019 highstreet technologies GmbH Intellectual Property.
7   ~ All rights reserved.
8   ~ ================================================================================
9   ~ Update Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
10   ~ ================================================================================
11   ~ Licensed under the Apache License, Version 2.0 (the "License");
12   ~ you may not use this file except in compliance with the License.
13   ~ You may obtain a copy of the License at
14   ~
15   ~     http://www.apache.org/licenses/LICENSE-2.0
16   ~
17   ~ Unless required by applicable law or agreed to in writing, software
18   ~ distributed under the License is distributed on an "AS IS" BASIS,
19   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20   ~ See the License for the specific language governing permissions and
21   ~ limitations under the License.
22   ~ ============LICENSE_END=======================================================
23   ~
24   -->
25 <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">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>binding-parent</artifactId>
31         <version>2.3.3</version>
32         <relativePath/>
33     </parent>
34
35     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
36     <artifactId>sdnr-wt-data-provider-setup</artifactId>
37     <version>1.3.2-SNAPSHOT</version>
38     <packaging>jar</packaging>
39
40     <name>ccsdk-features :: ${project.artifactId}</name>
41     <licenses>
42         <license>
43             <name>Apache License, Version 2.0</name>
44             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
45         </license>
46     </licenses>
47
48     <properties>
49         <maven.javadoc.skip>true</maven.javadoc.skip>
50         <databaseport>49404</databaseport>
51     </properties>
52
53     <dependencies>
54         <dependency>
55             <groupId>org.mockito</groupId>
56             <artifactId>mockito-core</artifactId>
57             <scope>test</scope>
58         </dependency>
59         <dependency>
60             <groupId>ch.vorburger.mariaDB4j</groupId>
61             <artifactId>mariaDB4j</artifactId>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>commons-cli</groupId>
66             <artifactId>commons-cli</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.slf4j</groupId>
70             <artifactId>slf4j-api</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.slf4j</groupId>
74             <artifactId>slf4j-log4j12</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>${project.groupId}</groupId>
78             <artifactId>sdnr-wt-common</artifactId>
79             <version>${project.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>${project.groupId}</groupId>
83             <artifactId>sdnr-wt-yang-utils</artifactId>
84             <version>${project.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>${project.groupId}</groupId>
88             <artifactId>sdnr-wt-data-provider-model</artifactId>
89             <version>${project.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>${project.groupId}</groupId>
93             <artifactId>sdnr-wt-data-provider-dblib</artifactId>
94             <version>${project.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
98             <artifactId>rfc6991-ietf-yang-types</artifactId>
99         </dependency>
100     </dependencies>
101     <build>
102         <plugins>
103             <plugin>
104                 <groupId>com.github.alexcojocaru</groupId>
105                 <artifactId>elasticsearch-maven-plugin</artifactId>
106                 <configuration>
107                     <skip>${skipTests}</skip>
108                     <clusterName>testCluster</clusterName>
109                     <transportPort>49504</transportPort>
110                     <httpPort>${databaseport}</httpPort>
111                     <version>7.9.3</version>
112                 </configuration>
113                 <executions>
114                     <execution>
115                         <id>start-elasticsearch</id>
116                         <phase>process-test-classes</phase>
117                         <goals>
118                             <goal>runforked</goal>
119                         </goals>
120                     </execution>
121                     <execution>
122                         <id>stop-elasticsearch</id>
123                         <phase>prepare-package</phase>
124                         <goals>
125                             <goal>stop</goal>
126                         </goals>
127                     </execution>
128                 </executions>
129             </plugin>
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-surefire-plugin</artifactId>
133                 <configuration>
134                     <systemProperties>
135                         <property>
136                             <name>databaseport</name>
137                             <value>${databaseport}</value>
138                         </property>
139                     </systemProperties>
140                 </configuration>
141             </plugin>
142             <plugin>
143                 <artifactId>maven-assembly-plugin</artifactId>
144                 <executions>
145                     <execution>
146                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
147                         <phase>package</phase>
148                         <goals>
149                             <goal>single</goal>
150                         </goals>
151                     </execution>
152                 </executions>
153                 <configuration>
154                     <appendAssemblyId>false</appendAssemblyId>
155                     <archive>
156                         <manifest>
157                             <mainClass>org.onap.ccsdk.features.sdnr.wt.dataprovider.setup.Program</mainClass>
158                         </manifest>
159                     </archive>
160                     <descriptorRefs>
161                         <descriptorRef>jar-with-dependencies</descriptorRef>
162                     </descriptorRefs>
163                 </configuration>
164             </plugin>
165         </plugins>
166     </build>
167 </project>