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