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