vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 4 | |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 5 | |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 6 | <modelVersion>4.0.0</modelVersion> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 7 | <artifactId>webseal-simulator</artifactId> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 8 | <packaging>war</packaging> |
| 9 | |
| 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
MichaelMorris | e3f4b96 | 2023-02-27 16:57:32 +0000 | [diff] [blame] | 13 | <version>1.12.3-SNAPSHOT</version> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 14 | <relativePath>../../</relativePath> |
| 15 | </parent> |
| 16 | |
| 17 | <properties> |
| 18 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 19 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
| 20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 21 | <sonar.skip>true</sonar.skip> |
| 22 | </properties> |
| 23 | |
| 24 | <dependencies> |
| 25 | <dependency> |
vasraz | fc768c6 | 2022-10-14 10:51:11 +0100 | [diff] [blame] | 26 | <groupId>org.hibernate.validator</groupId> |
| 27 | <artifactId>hibernate-validator</artifactId> |
| 28 | <version>${hibernate.validator.version}</version> |
| 29 | </dependency> |
| 30 | <dependency> |
| 31 | <groupId>org.eclipse.jetty</groupId> |
| 32 | <artifactId>jetty-server</artifactId> |
| 33 | <version>${jetty.version}</version> |
| 34 | <scope>compile</scope> |
| 35 | <exclusions> |
| 36 | <exclusion> |
| 37 | <groupId>org.eclipse.jetty</groupId> |
| 38 | <artifactId>jetty-http</artifactId> |
| 39 | </exclusion> |
vasraz | 99ac5dc | 2023-03-06 15:56:57 +0000 | [diff] [blame] | 40 | <exclusion> |
| 41 | <groupId>javax.servlet</groupId> |
| 42 | <artifactId>javax.servlet-api</artifactId> |
| 43 | </exclusion> |
vasraz | fc768c6 | 2022-10-14 10:51:11 +0100 | [diff] [blame] | 44 | </exclusions> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.eclipse.jetty</groupId> |
| 48 | <artifactId>jetty-servlet</artifactId> |
| 49 | <version>${jetty.version}</version> |
| 50 | <scope>compile</scope> |
| 51 | <exclusions> |
| 52 | <exclusion> |
| 53 | <groupId>org.eclipse.jetty</groupId> |
| 54 | <artifactId>jetty-security</artifactId> |
| 55 | </exclusion> |
| 56 | </exclusions> |
| 57 | </dependency> |
| 58 | <dependency> |
vasraz | 0899720 | 2022-10-04 18:16:26 +0100 | [diff] [blame] | 59 | <groupId>org.openecomp.sdc</groupId> |
| 60 | <artifactId>common-app-api</artifactId> |
| 61 | <version>${project.version}</version> |
| 62 | <scope>compile</scope> |
| 63 | <exclusions> |
| 64 | <exclusion> |
| 65 | <groupId>org.apache.httpcomponents</groupId> |
| 66 | <artifactId>httpcore</artifactId> |
| 67 | </exclusion> |
| 68 | </exclusions> |
| 69 | </dependency> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 70 | |
| 71 | <dependency> |
| 72 | <groupId>org.apache.httpcomponents</groupId> |
| 73 | <artifactId>httpclient</artifactId> |
| 74 | <version>${httpclient.version}</version> |
vasraz | 987fc74 | 2021-11-29 17:42:02 +0000 | [diff] [blame] | 75 | <exclusions> |
| 76 | <exclusion> |
| 77 | <groupId>org.apache.httpcomponents</groupId> |
| 78 | <artifactId>httpcore</artifactId> |
| 79 | </exclusion> |
| 80 | </exclusions> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 81 | </dependency> |
vasraz | 987fc74 | 2021-11-29 17:42:02 +0000 | [diff] [blame] | 82 | <dependency> |
| 83 | <groupId>org.apache.httpcomponents</groupId> |
| 84 | <artifactId>httpcore</artifactId> |
| 85 | <version>${httpcore.version}</version> |
| 86 | </dependency> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 87 | |
| 88 | <dependency> |
andre.schmid | 422daed | 2022-09-16 15:45:32 +0100 | [diff] [blame] | 89 | <groupId>org.apache.commons</groupId> |
| 90 | <artifactId>commons-lang3</artifactId> |
| 91 | </dependency> |
| 92 | |
| 93 | <dependency> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 94 | <groupId>commons-logging</groupId> |
| 95 | <artifactId>commons-logging-api</artifactId> |
| 96 | <version>1.0.4</version> |
| 97 | </dependency> |
| 98 | |
| 99 | <dependency> |
| 100 | <groupId>commons-io</groupId> |
| 101 | <artifactId>commons-io</artifactId> |
| 102 | <version>${commons.io.version}</version> |
| 103 | </dependency> |
| 104 | |
| 105 | <dependency> |
| 106 | <groupId>commons-codec</groupId> |
| 107 | <artifactId>commons-codec</artifactId> |
| 108 | <version>${commons-codec}</version> |
| 109 | <scope>compile</scope> |
| 110 | </dependency> |
| 111 | |
| 112 | <dependency> |
| 113 | <groupId>org.eclipse.jetty</groupId> |
| 114 | <artifactId>jetty-proxy</artifactId> |
| 115 | <version>${jetty.version}</version> |
| 116 | <scope>compile</scope> |
| 117 | <exclusions> |
| 118 | <exclusion> |
| 119 | <groupId>org.eclipse.jetty</groupId> |
| 120 | <artifactId>jetty-http</artifactId> |
| 121 | </exclusion> |
| 122 | </exclusions> |
| 123 | </dependency> |
| 124 | |
| 125 | <dependency> |
| 126 | <groupId>org.eclipse.jetty</groupId> |
| 127 | <artifactId>jetty-servlets</artifactId> |
| 128 | <version>${jetty.version}</version> |
| 129 | <scope>compile</scope> |
| 130 | <exclusions> |
| 131 | <exclusion> |
| 132 | <groupId>org.eclipse.jetty</groupId> |
| 133 | <artifactId>jetty-http</artifactId> |
| 134 | </exclusion> |
| 135 | </exclusions> |
| 136 | </dependency> |
| 137 | |
| 138 | <!-- Proxy servlet --> |
| 139 | <dependency> |
| 140 | <groupId>com.typesafe</groupId> |
| 141 | <artifactId>config</artifactId> |
| 142 | <version>1.0.2</version> |
| 143 | <scope>compile</scope> |
| 144 | </dependency> |
| 145 | <dependency> |
| 146 | <groupId>org.openecomp.sdc</groupId> |
| 147 | <artifactId>openecomp-sdc-logging-api</artifactId> |
| 148 | <version>${project.version}</version> |
| 149 | <exclusions> |
| 150 | <exclusion> |
| 151 | <groupId>org.powermock</groupId> |
| 152 | <artifactId>powermock-module-junit4</artifactId> |
| 153 | </exclusion> |
| 154 | </exclusions> |
| 155 | </dependency> |
| 156 | </dependencies> |
| 157 | |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 158 | <build> |
| 159 | <finalName>WSSimulator-${project.version}</finalName> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 160 | <plugins> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 161 | <plugin> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 162 | <groupId>com.github.sylvainlaurent.maven</groupId> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 163 | <artifactId>yaml-json-validator-maven-plugin</artifactId> |
| 164 | <executions> |
| 165 | <execution> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 166 | <id>validate</id> |
| 167 | <phase>validate</phase> |
| 168 | <goals> |
| 169 | <goal>validate</goal> |
| 170 | </goals> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 171 | <configuration> |
| 172 | <validationSets> |
| 173 | <validationSet> |
| 174 | <includes> |
| 175 | <include>src/main/resources/**/*.y*ml</include> |
| 176 | <include>src/test/resources/**/*.y*ml</include> |
| 177 | </includes> |
| 178 | </validationSet> |
| 179 | <validationSet> |
| 180 | <includes> |
| 181 | <include>src/main/resources/**/*.json</include> |
| 182 | <include>src/test/resources/**/*.json</include> |
| 183 | </includes> |
| 184 | </validationSet> |
| 185 | </validationSets> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 186 | <skip>${skipYamlJsonValidator}</skip> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 187 | </configuration> |
| 188 | </execution> |
| 189 | </executions> |
| 190 | </plugin> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 191 | </plugins> |
vasraz | b08ac29 | 2021-10-21 17:32:16 +0100 | [diff] [blame] | 192 | </build> |
| 193 | |
| 194 | <repositories> |
| 195 | <!-- LF repositories --> |
| 196 | <repository> |
| 197 | <id>ecomp-releases</id> |
| 198 | <name>Release Repository</name> |
| 199 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 200 | </repository> |
| 201 | <repository> |
| 202 | <id>ecomp-snapshots</id> |
| 203 | <name>Snapshots Repository</name> |
| 204 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 205 | </repository> |
| 206 | <repository> |
| 207 | <id>ecomp-public</id> |
| 208 | <name>Public Repository</name> |
| 209 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 210 | </repository> |
| 211 | <!-- LF repositories END--> |
| 212 | </repositories> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 213 | |
| 214 | <profiles> |
| 215 | <profile> |
| 216 | <id>docker</id> |
| 217 | <activation> |
| 218 | <activeByDefault>false</activeByDefault> |
| 219 | </activation> |
| 220 | <build> |
| 221 | <plugins> |
| 222 | |
| 223 | <plugin> |
| 224 | <artifactId>maven-clean-plugin</artifactId> |
| 225 | <version>3.0.0</version> |
| 226 | <executions> |
| 227 | <execution> |
| 228 | <id>clean-static-files</id> |
| 229 | <phase>clean</phase> |
| 230 | <goals> |
| 231 | <goal>clean</goal> |
| 232 | </goals> |
| 233 | <configuration> |
| 234 | <filesets> |
| 235 | <fileset> |
| 236 | <directory>${project.basedir}/sdc-simulator</directory> |
| 237 | <includes> |
| 238 | <include>*.war</include> |
| 239 | </includes> |
| 240 | <followSymlinks>false</followSymlinks> |
| 241 | </fileset> |
| 242 | </filesets> |
| 243 | </configuration> |
| 244 | </execution> |
| 245 | </executions> |
| 246 | </plugin> |
| 247 | |
| 248 | <plugin> |
| 249 | <artifactId>maven-resources-plugin</artifactId> |
| 250 | <executions> |
| 251 | <execution> |
| 252 | <id>copy-resources-simulator</id> |
| 253 | <phase>verify</phase> |
| 254 | <goals> |
| 255 | <goal>copy-resources</goal> |
| 256 | </goals> |
| 257 | <configuration> |
| 258 | <outputDirectory>${project.basedir}/sdc-simulator |
| 259 | </outputDirectory> |
| 260 | <resources> |
| 261 | <resource> |
| 262 | <directory>${project.basedir}/target</directory> |
| 263 | <includes> |
| 264 | <include>WSSimulator*.war</include> |
| 265 | </includes> |
| 266 | </resource> |
| 267 | </resources> |
| 268 | </configuration> |
| 269 | </execution> |
| 270 | </executions> |
| 271 | </plugin> |
| 272 | |
| 273 | |
| 274 | <plugin> |
| 275 | <groupId>io.fabric8</groupId> |
| 276 | <artifactId>docker-maven-plugin</artifactId> |
| 277 | <configuration> |
| 278 | <verbose>${verbose}</verbose> |
| 279 | <apiVersion>${docker.api.version}</apiVersion> |
vasraz | 8b1002a | 2021-12-08 22:12:52 +0000 | [diff] [blame] | 280 | <registry>${docker.registry}</registry> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 281 | <authConfig> |
| 282 | <pull> |
vasraz | 8b1002a | 2021-12-08 22:12:52 +0000 | [diff] [blame] | 283 | <username>${docker.username}</username> |
| 284 | <password>${docker.password}</password> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 285 | </pull> |
| 286 | </authConfig> |
| 287 | <images> |
| 288 | <!-- Build simulator image --> |
| 289 | <image> |
vasraz | 8b1002a | 2021-12-08 22:12:52 +0000 | [diff] [blame] | 290 | <name>${docker.namespace}/sdc-simulator</name> |
vasraz | e917111 | 2021-11-26 15:57:50 +0000 | [diff] [blame] | 291 | <alias>sdc-simulator</alias> |
| 292 | <build> |
| 293 | <cleanup>try</cleanup> |
| 294 | <dockerFileDir>${basedir}${file.separator}sdc-simulator |
| 295 | </dockerFileDir> |
| 296 | <tags> |
| 297 | <tag>latest</tag> |
| 298 | <tag> |
| 299 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 300 | </tag> |
| 301 | <tag> |
| 302 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp} |
| 303 | </tag> |
| 304 | </tags> |
| 305 | </build> |
| 306 | </image> |
| 307 | </images> |
| 308 | </configuration> |
| 309 | <executions> |
| 310 | <execution> |
| 311 | <id>clean-images</id> |
| 312 | <phase>pre-clean</phase> |
| 313 | <goals> |
| 314 | <goal>remove</goal> |
| 315 | </goals> |
| 316 | </execution> |
| 317 | <execution> |
| 318 | <id>generate-images</id> |
| 319 | <phase>install</phase> |
| 320 | <goals> |
| 321 | <goal>build</goal> |
| 322 | </goals> |
| 323 | </execution> |
| 324 | <execution> |
| 325 | <id>push-images</id> |
| 326 | <phase>deploy</phase> |
| 327 | <goals> |
| 328 | <goal>push</goal> |
| 329 | </goals> |
| 330 | </execution> |
| 331 | </executions> |
| 332 | </plugin> |
| 333 | </plugins> |
| 334 | </build> |
| 335 | </profile> |
| 336 | </profiles> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 337 | </project> |