YANG Model update for A1 Adapter
[ccsdk/features.git] / sdnr / wt / common / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ============LICENSE_START=======================================================
4     ONAP : CCSDK / SDNR / WT / common
5     ================================================================================
6     Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All
7     rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License"); you may not
10     use this file except in compliance with the License. You may obtain a copy
11     of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
12     by applicable law or agreed to in writing, software distributed under the
13     License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
14     OF ANY KIND, either express or implied. See the License for the specific
15     language governing permissions and limitations under the License.
16     ============LICENSE_END=========================================================
17 -->
18 <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">
19         <modelVersion>4.0.0</modelVersion>
20
21         <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
22         <artifactId>sdnr-wt-common</artifactId>
23         <version>0.7.0-SNAPSHOT</version>
24         <name>ccsdk-features-sdnr-wt :: ${project.artifactId}</name>
25         <packaging>jar</packaging>
26
27         <parent>
28                 <groupId>org.onap.ccsdk.parent</groupId>
29                 <artifactId>binding-parent</artifactId>
30                 <version>1.5.1-SNAPSHOT</version>
31                 <relativePath/>
32         </parent>
33
34         <properties>
35                 <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
36                 <maven.javadoc.skip>true</maven.javadoc.skip>
37                 <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
38                 <buildtime>${maven.build.timestamp} UTC</buildtime>
39                 <elasticsearch.version>6.4.3</elasticsearch.version>
40                 <databaseport>49400</databaseport>
41         </properties>
42
43         <licenses>
44                 <license>
45                         <name>Apache License, Version 2.0</name>
46                         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
47                 </license>
48         </licenses>
49
50         <dependencies>
51                 <dependency>
52                         <groupId>org.mockito</groupId>
53                         <artifactId>mockito-core</artifactId>
54                         <scope>test</scope>
55                 </dependency>
56                 <dependency>
57                         <groupId>org.osgi</groupId>
58                         <artifactId>org.osgi.core</artifactId>
59                         <scope>provided</scope>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.json</groupId>
63                         <artifactId>json</artifactId>
64                 </dependency>
65                 <dependency>
66                         <groupId>org.elasticsearch.client</groupId>
67                         <artifactId>elasticsearch-rest-client</artifactId>
68                         <version>${elasticsearch.version}</version>
69                 </dependency>
70                 <dependency>
71                         <groupId>com.fasterxml.jackson.core</groupId>
72                         <artifactId>jackson-core</artifactId>
73                 </dependency>
74                 <dependency>
75                         <groupId>com.fasterxml.jackson.core</groupId>
76                         <artifactId>jackson-annotations</artifactId>
77                 </dependency>
78                 <dependency>
79                         <groupId>com.fasterxml.jackson.core</groupId>
80                         <artifactId>jackson-databind</artifactId>
81                 </dependency>
82
83
84         </dependencies>
85         <build>
86                 <plugins>
87                         <plugin>
88                                 <groupId>org.jacoco</groupId>
89                                 <artifactId>jacoco-maven-plugin</artifactId>
90                                 <configuration>
91                                         <excludes>
92                                                 <exclude>**/gen/**</exclude>
93                                                 <exclude>**/generated-sources/**</exclude>
94                                                 <exclude>**/yang-gen-sal/**</exclude>
95                                                 <exclude>**/pax/**</exclude>
96                                         </excludes>
97                                 </configuration>
98                         </plugin>
99                         <plugin>
100                                 <groupId>org.codehaus.mojo</groupId>
101                                 <artifactId>exec-maven-plugin</artifactId>
102                                 <executions>
103                                         <execution>
104                                                 <id>generateDTOs</id>
105                                                 <phase>generate-sources</phase>
106                                                 <goals>
107                                                         <goal>exec</goal>
108                                                 </goals>
109                                                 <configuration>
110                                                         <executable>${basedir}/../data-provider/database/src/main/resources/es-init.sh</executable>
111                                                         <arguments>
112                                                                 <argument>initfile</argument>
113                                                                 <argument>-f</argument>
114                                                                 <argument>${project.build.directory}/EsInit.script</argument>
115                                                         </arguments>
116                                                 </configuration>
117                                         </execution>
118                                 </executions>
119                         </plugin>
120                         <plugin>
121                                 <groupId>com.github.alexcojocaru</groupId>
122                                 <artifactId>elasticsearch-maven-plugin</artifactId>
123                                 <version>6.14</version>
124                                 <configuration>
125                                         <clusterName>testCluster</clusterName>
126                                         <transportPort>9500</transportPort>
127                                         <httpPort>${databaseport}</httpPort>
128                                         <version>6.4.3</version>
129                                         <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
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                 </plugins>
161         </build>
162 </project>