Release version 1.6.0 maven artifacts
[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.6.1</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.6.1-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         <dependency>
101             <groupId>javax.servlet</groupId>
102             <artifactId>javax.servlet-api</artifactId>
103         </dependency>
104     </dependencies>
105     <!-- Tests require MariaDB4j , which does not currently support ARM64 -->
106     <profiles>
107         <profile>
108             <id>disable-test-on-ARM64</id>
109             <activation>
110                 <os>
111                     <arch>aarch64</arch>
112                 </os>
113             </activation>
114             <properties>
115                 <skipTests>true</skipTests>
116             </properties>
117         </profile>
118     </profiles>
119     <build>
120         <plugins>
121             <plugin>
122                 <groupId>com.github.alexcojocaru</groupId>
123                 <artifactId>elasticsearch-maven-plugin</artifactId>
124                 <configuration>
125                     <skip>${skipTests}</skip>
126                     <clusterName>testCluster</clusterName>
127                     <transportPort>49504</transportPort>
128                     <httpPort>${databaseport}</httpPort>
129                     <version>7.9.3</version>
130                 </configuration>
131                 <executions>
132                     <execution>
133                         <id>start-elasticsearch</id>
134                         <phase>process-test-classes</phase>
135                         <goals>
136                             <goal>runforked</goal>
137                         </goals>
138                     </execution>
139                     <execution>
140                         <id>stop-elasticsearch</id>
141                         <phase>prepare-package</phase>
142                         <goals>
143                             <goal>stop</goal>
144                         </goals>
145                     </execution>
146                 </executions>
147             </plugin>
148             <plugin>
149                 <groupId>org.apache.maven.plugins</groupId>
150                 <artifactId>maven-surefire-plugin</artifactId>
151                 <configuration>
152                     <systemProperties>
153                         <property>
154                             <name>databaseport</name>
155                             <value>${databaseport}</value>
156                         </property>
157                     </systemProperties>
158                 </configuration>
159             </plugin>
160             <plugin>
161                 <artifactId>maven-assembly-plugin</artifactId>
162                 <executions>
163                     <execution>
164                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
165                         <phase>package</phase>
166                         <goals>
167                             <goal>single</goal>
168                         </goals>
169                     </execution>
170                 </executions>
171                 <configuration>
172                     <appendAssemblyId>false</appendAssemblyId>
173                     <archive>
174                         <manifest>
175                             <mainClass>org.onap.ccsdk.features.sdnr.wt.dataprovider.setup.Program</mainClass>
176                         </manifest>
177                     </archive>
178                     <descriptorRefs>
179                         <descriptorRef>jar-with-dependencies</descriptorRef>
180                     </descriptorRefs>
181                 </configuration>
182             </plugin>
183         </plugins>
184     </build>
185 </project>