Use latest released parent pom
[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
26 <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">
27     <modelVersion>4.0.0</modelVersion>
28
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>binding-parent</artifactId>
32         <version>2.4.4</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
37     <artifactId>sdnr-wt-data-provider-setup</artifactId>
38     <version>1.4.1-SNAPSHOT</version>
39     <packaging>jar</packaging>
40
41     <name>ccsdk-features :: ${project.artifactId}</name>
42     <licenses>
43         <license>
44             <name>Apache License, Version 2.0</name>
45             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
46         </license>
47     </licenses>
48
49     <properties>
50         <maven.javadoc.skip>true</maven.javadoc.skip>
51         <databaseport>49404</databaseport>
52     </properties>
53
54     <dependencies>
55         <dependency>
56             <groupId>org.mockito</groupId>
57             <artifactId>mockito-core</artifactId>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>ch.vorburger.mariaDB4j</groupId>
62             <artifactId>mariaDB4j</artifactId>
63             <scope>test</scope>
64         </dependency>
65         <dependency>
66             <groupId>commons-cli</groupId>
67             <artifactId>commons-cli</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.slf4j</groupId>
71             <artifactId>slf4j-api</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.slf4j</groupId>
75             <artifactId>slf4j-log4j12</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>${project.groupId}</groupId>
79             <artifactId>sdnr-wt-common</artifactId>
80             <version>${project.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>${project.groupId}</groupId>
84             <artifactId>sdnr-wt-yang-utils</artifactId>
85             <version>${project.version}</version>
86         </dependency>
87         <dependency>
88             <groupId>${project.groupId}</groupId>
89             <artifactId>sdnr-wt-data-provider-model</artifactId>
90             <version>${project.version}</version>
91         </dependency>
92         <dependency>
93             <groupId>${project.groupId}</groupId>
94             <artifactId>sdnr-wt-data-provider-dblib</artifactId>
95             <version>${project.version}</version>
96         </dependency>
97         <dependency>
98             <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId>
99             <artifactId>rfc6991-ietf-yang-types</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>javax.servlet</groupId>
103             <artifactId>javax.servlet-api</artifactId>
104         </dependency>
105     </dependencies>
106     <build>
107         <plugins>
108             <plugin>
109                 <groupId>com.github.alexcojocaru</groupId>
110                 <artifactId>elasticsearch-maven-plugin</artifactId>
111                 <configuration>
112                     <skip>${skipTests}</skip>
113                     <clusterName>testCluster</clusterName>
114                     <transportPort>49504</transportPort>
115                     <httpPort>${databaseport}</httpPort>
116                     <version>7.9.3</version>
117                 </configuration>
118                 <executions>
119                     <execution>
120                         <id>start-elasticsearch</id>
121                         <phase>process-test-classes</phase>
122                         <goals>
123                             <goal>runforked</goal>
124                         </goals>
125                     </execution>
126                     <execution>
127                         <id>stop-elasticsearch</id>
128                         <phase>prepare-package</phase>
129                         <goals>
130                             <goal>stop</goal>
131                         </goals>
132                     </execution>
133                 </executions>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-surefire-plugin</artifactId>
138                 <configuration>
139                     <systemProperties>
140                         <property>
141                             <name>databaseport</name>
142                             <value>${databaseport}</value>
143                         </property>
144                     </systemProperties>
145                 </configuration>
146             </plugin>
147             <plugin>
148                 <artifactId>maven-assembly-plugin</artifactId>
149                 <executions>
150                     <execution>
151                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
152                         <phase>package</phase>
153                         <goals>
154                             <goal>single</goal>
155                         </goals>
156                     </execution>
157                 </executions>
158                 <configuration>
159                     <appendAssemblyId>false</appendAssemblyId>
160                     <archive>
161                         <manifest>
162                             <mainClass>org.onap.ccsdk.features.sdnr.wt.dataprovider.setup.Program</mainClass>
163                         </manifest>
164                     </archive>
165                     <descriptorRefs>
166                         <descriptorRef>jar-with-dependencies</descriptorRef>
167                     </descriptorRefs>
168                 </configuration>
169             </plugin>
170         </plugins>
171     </build>
172 </project>