Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 6 | <groupId>org.onap.vid</groupId> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 7 | <artifactId>vid-ext-services-simulator</artifactId> |
| 8 | <version>1.0.0</version> |
| 9 | <name>VID Simulator</name> |
| 10 | <packaging>war</packaging> |
| 11 | <description>VID Simulator for mocking external peers</description> |
| 12 | |
| 13 | <properties> |
| 14 | <encoding>UTF-8</encoding> |
Ittay Stern | fb924bf | 2020-02-26 18:26:07 +0200 | [diff] [blame] | 15 | <springframework.version>5.2.3.RELEASE</springframework.version> |
Ittay Stern | cb8baa2 | 2019-03-11 15:50:07 +0200 | [diff] [blame] | 16 | <hibernate.version>5.3.4.Final</hibernate.version> |
Ittay Stern | 0f8e77d | 2020-02-24 13:55:38 +0200 | [diff] [blame] | 17 | <jaxb.version>2.3.2</jaxb.version> |
Ittay Stern | 759686a | 2020-02-26 18:22:30 +0200 | [diff] [blame] | 18 | <jackson.version>2.10.2</jackson.version> |
| 19 | <jackson.databind.version>2.10.2</jackson.databind.version> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 20 | <!-- Skip assembling the zip by default --> |
| 21 | <skipassembly>true</skipassembly> |
| 22 | <!-- Tests usually require some setup that maven cannot do, so skip. --> |
| 23 | <skiptests>true</skiptests> |
| 24 | <!-- this should be commented for local debugging --> |
| 25 | <!-- <deployenv>local</deployenv> --> |
| 26 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 27 | <stagingNexusPath>content/repositories/staging/</stagingNexusPath> |
| 28 | <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> |
| 29 | <releaseNexusPath>content/repositories/releases/</releaseNexusPath> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 30 | |
| 31 | <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it --> |
| 32 | <coberturaBuildPhase>none</coberturaBuildPhase> |
Ittay Stern | b460da4 | 2019-07-03 05:30:04 +0300 | [diff] [blame] | 33 | |
| 34 | <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it --> |
| 35 | <skipDockerBuild>false</skipDockerBuild> |
| 36 | <dockerBuildPhase>package</dockerBuildPhase> |
| 37 | <dockerPushPhase>deploy</dockerPushPhase> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 38 | </properties> |
| 39 | |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 40 | <profiles> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 41 | <profile> |
| 42 | <id>onap</id> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 43 | <properties> |
| 44 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 45 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 46 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
Ittay Stern | b93b96b | 2019-06-19 14:39:39 +0300 | [diff] [blame] | 47 | <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath> |
| 48 | <releaseNexusPath>content/repositories/releases/</releaseNexusPath> |
| 49 | <stagingNexusPath>content/repositories/staging/</stagingNexusPath> |
| 50 | <sitePath>content/sites/site/org/openecomp/vid/${project.version}</sitePath> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 51 | </properties> |
| 52 | |
| 53 | <repositories> |
| 54 | <repository> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 55 | <id>oss-snapshots</id> |
| 56 | <name>oss Central - Snapshots</name> |
| 57 | <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url> |
| 58 | </repository> |
| 59 | </repositories> |
| 60 | </profile> |
| 61 | |
| 62 | <profile> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 63 | <id>default</id> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 64 | </profile> |
| 65 | |
| 66 | <!-- disable doclint, a new feature in Java 8, when generating javadoc --> |
| 67 | <profile> |
| 68 | <id>doclint-java8-disable</id> |
| 69 | <activation> |
| 70 | <jdk>[1.8,)</jdk> |
| 71 | </activation> |
| 72 | <build> |
| 73 | <plugins> |
| 74 | <plugin> |
| 75 | <groupId>org.apache.maven.plugins</groupId> |
| 76 | <artifactId>maven-javadoc-plugin</artifactId> |
| 77 | <version>2.10.4</version> |
| 78 | <configuration> |
| 79 | <additionalparam>-Xdoclint:none</additionalparam> |
| 80 | </configuration> |
| 81 | </plugin> |
| 82 | </plugins> |
| 83 | </build> |
| 84 | </profile> |
| 85 | |
| 86 | <profile> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 87 | <id>cobertura</id> |
| 88 | <properties> |
| 89 | <coberturaBuildPhase>package</coberturaBuildPhase> |
| 90 | </properties> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 91 | </profile> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 92 | |
| 93 | <profile> |
Ittay Stern | b460da4 | 2019-07-03 05:30:04 +0300 | [diff] [blame] | 94 | <id>no-docker</id> |
| 95 | <properties> |
| 96 | <skipDockerBuild>true</skipDockerBuild> |
| 97 | <dockerBuildPhase>none</dockerBuildPhase> |
| 98 | <dockerPushPhase>none</dockerPushPhase> |
| 99 | </properties> |
| 100 | </profile> |
| 101 | |
| 102 | <profile> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 103 | <id>docker-proxy</id> |
| 104 | <!-- activate profile if environment variable `http_proxy` is set --> |
| 105 | <activation> |
| 106 | <property> |
| 107 | <name>env.http_proxy</name> |
| 108 | </property> |
| 109 | </activation> |
| 110 | <properties> |
| 111 | <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy> |
| 112 | </properties> |
| 113 | </profile> |
| 114 | |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 115 | </profiles> |
| 116 | |
| 117 | <dependencies> |
| 118 | <!-- mockserver --> |
| 119 | <dependency> |
| 120 | <groupId>org.mock-server</groupId> |
| 121 | <artifactId>mockserver-netty</artifactId> |
| 122 | <version>3.11</version> |
| 123 | </dependency> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 124 | <dependency> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 125 | <groupId>org.springframework</groupId> |
| 126 | <artifactId>spring-web</artifactId> |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 127 | <version>${springframework.version}</version> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 128 | </dependency> |
| 129 | <dependency> |
| 130 | <groupId>org.springframework</groupId> |
| 131 | <artifactId>spring-webmvc</artifactId> |
Ittay Stern | 6ad41e3 | 2018-12-31 17:21:27 +0200 | [diff] [blame] | 132 | <version>${springframework.version}</version> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 133 | </dependency> |
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 134 | <dependency> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 135 | <groupId>com.fasterxml.jackson.core</groupId> |
Einat Vinouze | d719259 | 2019-07-07 14:15:07 +0300 | [diff] [blame] | 136 | <artifactId>jackson-core</artifactId> |
| 137 | <version>${jackson.version}</version> |
| 138 | </dependency> |
| 139 | <dependency> |
| 140 | <groupId>com.fasterxml.jackson.core</groupId> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 141 | <artifactId>jackson-annotations</artifactId> |
Einat Vinouze | d719259 | 2019-07-07 14:15:07 +0300 | [diff] [blame] | 142 | <version>${jackson.version}</version> |
| 143 | </dependency> |
| 144 | <dependency> |
| 145 | <groupId>com.fasterxml.jackson.core</groupId> |
| 146 | <artifactId>jackson-databind</artifactId> |
Amichai Hemli | 9879461 | 2019-09-16 10:53:47 +0300 | [diff] [blame] | 147 | <version>${jackson.databind.version}</version> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 148 | </dependency> |
Ittay Stern | 0f8e77d | 2020-02-24 13:55:38 +0200 | [diff] [blame] | 149 | <!-- https://eclipse-ee4j.github.io/jaxb-ri/#maven-artifacts --> |
| 150 | <!-- API --> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 151 | <dependency> |
Ittay Stern | 0f8e77d | 2020-02-24 13:55:38 +0200 | [diff] [blame] | 152 | <groupId>jakarta.xml.bind</groupId> |
| 153 | <artifactId>jakarta.xml.bind-api</artifactId> |
| 154 | <version>${jaxb.version}</version> |
| 155 | </dependency> |
| 156 | <!-- Runtime --> |
| 157 | <dependency> |
| 158 | <groupId>org.glassfish.jaxb</groupId> |
| 159 | <artifactId>jaxb-runtime</artifactId> |
| 160 | <version>${jaxb.version}</version> |
Sonsino, Ofir (os0695) | 8f848c6 | 2018-08-12 15:23:14 +0300 | [diff] [blame] | 161 | </dependency> |
Ittay Stern | cb8baa2 | 2019-03-11 15:50:07 +0200 | [diff] [blame] | 162 | |
| 163 | <dependency> |
| 164 | <groupId>org.hibernate</groupId> |
| 165 | <artifactId>hibernate-entitymanager</artifactId> |
| 166 | <version>${hibernate.version}</version> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>org.hibernate</groupId> |
| 170 | <artifactId>hibernate-core</artifactId> |
| 171 | <version>${hibernate.version}</version> |
| 172 | </dependency> |
Ittay Stern | efefd95 | 2020-03-23 06:47:25 +0200 | [diff] [blame] | 173 | <dependency> |
| 174 | <groupId>org.hibernate</groupId> |
| 175 | <artifactId>hibernate-c3p0</artifactId> |
| 176 | <version>${hibernate.version}</version> |
| 177 | </dependency> |
Ittay Stern | cb8baa2 | 2019-03-11 15:50:07 +0200 | [diff] [blame] | 178 | |
| 179 | <dependency> |
| 180 | <groupId>org.mariadb.jdbc</groupId> |
| 181 | <artifactId>mariadb-java-client</artifactId> |
| 182 | <version>2.2.6</version> |
| 183 | </dependency> |
| 184 | |
| 185 | <dependency> |
| 186 | <groupId>org.hibernate.javax.persistence</groupId> |
| 187 | <artifactId>hibernate-jpa-2.1-api</artifactId> |
| 188 | <version>1.0.0.Final</version> |
| 189 | </dependency> |
| 190 | |
| 191 | <dependency> |
| 192 | <groupId>com.google.code.gson</groupId> |
| 193 | <artifactId>gson</artifactId> |
| 194 | <version>2.8.0</version> |
| 195 | </dependency> |
| 196 | |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 197 | </dependencies> |
| 198 | |
| 199 | <build> |
| 200 | <finalName>vidSimulator</finalName> |
| 201 | <plugins> |
| 202 | <plugin> |
| 203 | <groupId>org.apache.maven.plugins</groupId> |
| 204 | <artifactId>maven-compiler-plugin</artifactId> |
Ittay Stern | 9ba4d06 | 2020-02-27 13:40:28 +0200 | [diff] [blame] | 205 | <version>3.8.1</version> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 206 | <configuration> |
| 207 | <source>1.8</source> |
| 208 | <target>1.8</target> |
| 209 | </configuration> |
| 210 | </plugin> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 211 | |
| 212 | <plugin> |
| 213 | <groupId>io.fabric8</groupId> |
| 214 | <artifactId>docker-maven-plugin</artifactId> |
| 215 | <version>0.27.2</version> |
| 216 | |
| 217 | <configuration> |
Ittay Stern | b460da4 | 2019-07-03 05:30:04 +0300 | [diff] [blame] | 218 | <skip>${skipDockerBuild}</skip> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 219 | <images> |
| 220 | <image> |
| 221 | <name>onap/vid-simulator</name> |
| 222 | <build> |
| 223 | <cleanup>remove</cleanup> |
| 224 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 225 | <tags> |
| 226 | <tag>${project.version}</tag> |
| 227 | <tag>latest</tag> |
| 228 | </tags> |
| 229 | </build> |
| 230 | </image> |
| 231 | </images> |
| 232 | </configuration> |
| 233 | |
| 234 | <executions> |
| 235 | <execution> |
| 236 | <id>generate-image</id> |
Ittay Stern | b460da4 | 2019-07-03 05:30:04 +0300 | [diff] [blame] | 237 | <phase>${dockerBuildPhase}</phase> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 238 | <goals> |
| 239 | <goal>build</goal> |
| 240 | </goals> |
| 241 | </execution> |
| 242 | |
| 243 | <execution> |
| 244 | <id>push-image</id> |
Ittay Stern | b460da4 | 2019-07-03 05:30:04 +0300 | [diff] [blame] | 245 | <phase>${dockerPushPhase}</phase> |
kurczews | 178ff25 | 2018-11-14 08:14:58 +0100 | [diff] [blame] | 246 | <goals> |
| 247 | <goal>build</goal> |
| 248 | <goal>push</goal> |
| 249 | </goals> |
| 250 | </execution> |
| 251 | </executions> |
| 252 | |
| 253 | </plugin> |
| 254 | |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 255 | </plugins> |
| 256 | </build> |
Ofir Sonsino | 1cfb087 | 2018-01-31 17:19:00 +0200 | [diff] [blame] | 257 | </project> |