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