herbert | d77d01b | 2020-01-30 10:15:11 +0100 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ONAP : CCSDK / SDNR / WT / data-provider |
| 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.2-SNAPSHOT</version> |
| 25 | <relativePath /> |
| 26 | </parent> |
| 27 | |
| 28 | <groupId>org.onap.ccsdk.features.sdnr.wt</groupId> |
| 29 | <artifactId>sdnr-wt-data-provider-provider</artifactId> |
| 30 | <version>0.7.1-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}</buildtime> |
| 46 | <databaseport>49402</databaseport> |
| 47 | <odlux.buildno>39.0e1988b(20/01/12)</odlux.buildno> |
| 48 | </properties> |
| 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>${project.groupId}</groupId> |
| 58 | <artifactId>sdnr-wt-common</artifactId> |
| 59 | <version>${project.version}</version> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>${project.groupId}</groupId> |
| 63 | <artifactId>sdnr-wt-data-provider-model</artifactId> |
| 64 | <version>${project.version}</version> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>javax.servlet</groupId> |
| 68 | <artifactId>servlet-api</artifactId> |
| 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>org.osgi</groupId> |
| 72 | <artifactId>org.osgi.core</artifactId> |
| 73 | <scope>provided</scope> |
| 74 | </dependency> |
| 75 | <dependency> |
| 76 | <groupId>org.apache.karaf.shell</groupId> |
| 77 | <artifactId>org.apache.karaf.shell.core</artifactId> |
| 78 | <scope>provided</scope> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.opendaylight.netconf</groupId> |
| 82 | <artifactId>sal-netconf-connector</artifactId> |
| 83 | <scope>provided</scope> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.opendaylight.mdsal.binding.model.ietf</groupId> |
| 87 | <artifactId>rfc6991-ietf-yang-types</artifactId> |
| 88 | <scope>provided</scope> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>org.opendaylight.mdsal</groupId> |
| 92 | <artifactId>yang-binding</artifactId> |
| 93 | <scope>provided</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.opendaylight.mdsal</groupId> |
| 97 | <artifactId>mdsal-singleton-common-api</artifactId> |
| 98 | <scope>provided</scope> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>org.json</groupId> |
| 102 | <artifactId>json</artifactId> |
| 103 | <scope>provided</scope> |
| 104 | </dependency> |
| 105 | </dependencies> |
| 106 | |
| 107 | <build> |
| 108 | <plugins> |
| 109 | <plugin> |
| 110 | <groupId>org.jacoco</groupId> |
| 111 | <artifactId>jacoco-maven-plugin</artifactId> |
| 112 | <configuration> |
| 113 | <excludes> |
| 114 | <exclude>**/gen/**</exclude> |
| 115 | <exclude>**/generated-sources/**</exclude> |
| 116 | <exclude>**/yang-gen-sal/**</exclude> |
| 117 | <exclude>**/pax/**</exclude> |
| 118 | </excludes> |
| 119 | </configuration> |
| 120 | </plugin> |
| 121 | <plugin> |
| 122 | <groupId>org.codehaus.mojo</groupId> |
| 123 | <artifactId>exec-maven-plugin</artifactId> |
| 124 | <executions> |
| 125 | <execution> |
| 126 | <id>generateDTOs</id> |
| 127 | <phase>generate-sources</phase> |
| 128 | <goals> |
| 129 | <goal>exec</goal> |
| 130 | </goals> |
| 131 | <configuration> |
| 132 | <executable>bash</executable> |
| 133 | <arguments> |
| 134 | <argument>${basedir}/../../data-provider/provider/src/main/resources/es-init.sh</argument> |
| 135 | <argument>initfile</argument> |
| 136 | <argument>-f</argument> |
| 137 | <argument>${project.build.directory}/EsInit.script</argument> |
| 138 | </arguments> |
| 139 | </configuration> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
| 143 | <plugin> |
| 144 | <groupId>com.github.alexcojocaru</groupId> |
| 145 | <artifactId>elasticsearch-maven-plugin</artifactId> |
| 146 | <version>6.16</version> |
| 147 | <configuration> |
| 148 | <skip>${skipTests}</skip> |
| 149 | <clusterName>testCluster</clusterName> |
| 150 | <transportPort>9500</transportPort> |
| 151 | <httpPort>${databaseport}</httpPort> |
| 152 | <version>6.5.0</version> |
| 153 | <timeout>120</timeout> |
| 154 | <pathInitScript>${project.build.directory}/EsInit.script</pathInitScript> |
| 155 | </configuration> |
| 156 | <executions> |
| 157 | <execution> |
| 158 | <id>start-elasticsearch</id> |
| 159 | <phase>process-test-classes</phase> |
| 160 | <goals> |
| 161 | <goal>runforked</goal> |
| 162 | </goals> |
| 163 | </execution> |
| 164 | <execution> |
| 165 | <id>stop-elasticsearch</id> |
| 166 | <phase>prepare-package</phase> |
| 167 | <goals> |
| 168 | <goal>stop</goal> |
| 169 | </goals> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | <plugin> |
| 174 | <groupId>org.apache.maven.plugins</groupId> |
| 175 | <artifactId>maven-surefire-plugin</artifactId> |
| 176 | <configuration> |
| 177 | <systemProperties> |
| 178 | <property> |
| 179 | <name>databaseport</name> |
| 180 | <value>${databaseport}</value> |
| 181 | </property> |
| 182 | </systemProperties> |
| 183 | </configuration> |
| 184 | </plugin> |
| 185 | </plugins> |
| 186 | </build> |
| 187 | </project> |