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