Refactoring multiple plugins
[ccsdk/features.git] / sdnr / wt / devicemanager-oran / provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ============LICENSE_START=======================================================
4     ONAP : CCSDK / SDNR / WT / devicemanager
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     <parent>
22         <groupId>org.onap.ccsdk.parent</groupId>
23         <artifactId>binding-parent</artifactId>
24         <version>1.5.1-SNAPSHOT</version>
25         <relativePath/>
26     </parent>
27
28     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
29     <artifactId>sdnr-wt-devicemanager-oran-provider</artifactId>
30     <version>0.7.0-SNAPSHOT</version>
31     <packaging>bundle</packaging>
32
33     <name>ccsdk-features :: ${project.artifactId}</name>
34     <licenses>
35         <license>
36             <name>Apache License, Version 2.0</name>
37             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
38         </license>
39     </licenses>
40
41     <properties>
42         <checkstyle.skip>true</checkstyle.skip> <!-- POM configuration -->
43         <maven.javadoc.skip>true</maven.javadoc.skip>
44         <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
45         <buildtime>${maven.build.timestamp} UTC</buildtime>
46         <elasticsearch.version>6.4.3</elasticsearch.version>
47         <databaseport>49400</databaseport>
48     </properties>
49
50     <dependencies>
51         <!-- begin for testing -->
52         <dependency>
53             <groupId>org.mockito</groupId>
54             <artifactId>mockito-core</artifactId>
55             <scope>test</scope>
56         </dependency>
57
58         <!-- end for testing -->
59         <dependency>
60             <groupId>${project.groupId}</groupId>
61             <artifactId>sdnr-wt-devicemanager-oran-model</artifactId>
62             <version>${project.version}</version>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
66             <artifactId>sdnr-wt-devicemanager-model</artifactId>
67             <version>${project.version}</version>
68             <scope>provided</scope>
69         </dependency>
70         <dependency>
71             <groupId>${project.groupId}</groupId>
72             <artifactId>sdnr-wt-netconfnode-state-service-model</artifactId>
73             <version>${project.version}</version>
74             <scope>provided</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.opendaylight.netconf</groupId>
78             <artifactId>sal-netconf-connector</artifactId>
79             <scope>provided</scope>
80         </dependency>
81         <dependency>
82             <groupId>org.opendaylight.mdsal</groupId>
83             <artifactId>mdsal-singleton-common-api</artifactId>
84             <scope>provided</scope>
85         </dependency>
86     </dependencies>
87
88     <build>
89         <resources>
90             <resource>
91                 <directory>src/main/resources</directory>
92                 <filtering>true</filtering>
93             </resource>
94         </resources>
95         <plugins>
96             <plugin>
97                 <groupId>org.jacoco</groupId>
98                 <artifactId>jacoco-maven-plugin</artifactId>
99                 <configuration>
100                     <excludes>
101                         <exclude>**/gen/**</exclude>
102                         <exclude>**/generated-sources/**</exclude>
103                         <exclude>**/yang-gen-sal/**</exclude>
104                         <exclude>**/pax/**</exclude>
105                     </excludes>
106                 </configuration>
107             </plugin>
108             <plugin>
109                 <groupId>org.codehaus.mojo</groupId>
110                 <artifactId>exec-maven-plugin</artifactId>
111                 <executions>
112                     <execution>
113                         <id>generateDTOs</id>
114                         <phase>generate-sources</phase>
115                         <goals>
116                             <goal>exec</goal>
117                         </goals>
118                         <configuration>
119                             <executable>bash</executable>
120                             <arguments>
121                                 <argument>${basedir}/../../data-provider/database/src/main/resources/es-init.sh</argument>
122                                 <argument>initfile</argument>
123                                 <argument>-f</argument>
124                                 <argument>${project.build.directory}/EsInit.script</argument>
125                             </arguments>
126                         </configuration>
127                     </execution>
128                 </executions>
129             </plugin>
130             <plugin>
131                 <groupId>com.github.alexcojocaru</groupId>
132                 <artifactId>elasticsearch-maven-plugin</artifactId>
133                 <version>6.16</version>
134                 <configuration>
135                     <clusterName>testCluster</clusterName>
136                     <transportPort>9500</transportPort>
137                     <httpPort>${databaseport}</httpPort>
138                     <version>6.5.0</version>
139                     <timeout>120</timeout>
140                     <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript>
141                     <skip>${skipTests}</skip>
142                 </configuration>
143                 <executions>
144                     <execution>
145                         <id>start-elasticsearch</id>
146                         <phase>process-test-classes</phase>
147                         <goals>
148                             <goal>runforked</goal>
149                         </goals>
150                     </execution>
151                     <execution>
152                         <id>stop-elasticsearch</id>
153                         <phase>prepare-package</phase>
154                         <goals>
155                             <goal>stop</goal>
156                         </goals>
157                     </execution>
158                 </executions>
159             </plugin>
160             <plugin>
161                 <groupId>org.apache.maven.plugins</groupId>
162                 <artifactId>maven-surefire-plugin</artifactId>
163                 <configuration>
164                     <systemProperties>
165                         <property>
166                             <name>databaseport</name>
167                             <value>${databaseport}</value>
168                         </property>
169                     </systemProperties>
170                 </configuration>
171             </plugin>
172         </plugins>
173     </build>
174 </project>