vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 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 | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 6 | <modelVersion>4.0.0</modelVersion> |
| 7 | <artifactId>webseal-simulator</artifactId> |
| 8 | <packaging>war</packaging> |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 9 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
Joanna Jeremicz | 1affa57 | 2020-11-30 11:35:07 +0100 | [diff] [blame] | 13 | <version>1.8.1-SNAPSHOT</version> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 14 | <relativePath>../../</relativePath> |
| 15 | </parent> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 16 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 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> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 21 | <sonar.skip>true</sonar.skip> |
| 22 | </properties> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 23 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 24 | <dependencies> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 25 | <dependency> |
| 26 | <groupId>javax.servlet</groupId> |
| 27 | <artifactId>servlet-api</artifactId> |
| 28 | <version>2.5</version> |
| 29 | <scope>compile</scope> |
| 30 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 31 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 32 | <dependency> |
| 33 | <groupId>org.apache.httpcomponents</groupId> |
| 34 | <artifactId>httpclient</artifactId> |
| 35 | <version>4.5.3</version> |
| 36 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 37 | |
Yuli Shlosberg | af70a20 | 2018-09-25 17:16:48 +0300 | [diff] [blame] | 38 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 39 | <dependency> |
| 40 | <groupId>commons-logging</groupId> |
| 41 | <artifactId>commons-logging-api</artifactId> |
| 42 | <version>1.0.4</version> |
| 43 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 44 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 45 | <dependency> |
| 46 | <groupId>commons-io</groupId> |
| 47 | <artifactId>commons-io</artifactId> |
| 48 | <version>2.4</version> |
| 49 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 50 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 51 | <dependency> |
| 52 | <groupId>commons-codec</groupId> |
| 53 | <artifactId>commons-codec</artifactId> |
| 54 | <version>1.9</version> |
| 55 | <scope>compile</scope> |
| 56 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 57 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 58 | <dependency> |
| 59 | <groupId>org.eclipse.jetty</groupId> |
| 60 | <artifactId>jetty-proxy</artifactId> |
| 61 | <version>${jetty.version}</version> |
| 62 | <scope>compile</scope> |
vasraz | 086406a | 2021-02-22 09:50:07 +0000 | [diff] [blame] | 63 | <exclusions> |
| 64 | <exclusion> |
| 65 | <groupId>org.eclipse.jetty</groupId> |
| 66 | <artifactId>jetty-http</artifactId> |
| 67 | </exclusion> |
| 68 | </exclusions> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 69 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 70 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 71 | <dependency> |
| 72 | <groupId>org.eclipse.jetty</groupId> |
| 73 | <artifactId>jetty-servlets</artifactId> |
| 74 | <version>${jetty.version}</version> |
| 75 | <scope>compile</scope> |
vasraz | 086406a | 2021-02-22 09:50:07 +0000 | [diff] [blame] | 76 | <exclusions> |
| 77 | <exclusion> |
| 78 | <groupId>org.eclipse.jetty</groupId> |
| 79 | <artifactId>jetty-http</artifactId> |
| 80 | </exclusion> |
| 81 | </exclusions> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 82 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 83 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 84 | <!-- Proxy servlet --> |
| 85 | <dependency> |
| 86 | <groupId>com.typesafe</groupId> |
| 87 | <artifactId>config</artifactId> |
| 88 | <version>1.0.2</version> |
| 89 | <scope>compile</scope> |
| 90 | </dependency> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 91 | <dependency> |
vasraz | 7c25933 | 2021-01-20 21:20:28 +0000 | [diff] [blame] | 92 | <groupId>org.openecomp.sdc</groupId> |
| 93 | <artifactId>openecomp-sdc-logging-api</artifactId> |
| 94 | <version>${project.version}</version> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 95 | </dependency> |
Yuli Shlosberg | af70a20 | 2018-09-25 17:16:48 +0300 | [diff] [blame] | 96 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 97 | </dependencies> |
| 98 | <build> |
| 99 | <finalName>WSSimulator-${project.version}</finalName> |
| 100 | <plugins> |
| 101 | <plugin> |
| 102 | <groupId>com.github.sylvainlaurent.maven</groupId> |
| 103 | <artifactId>yaml-json-validator-maven-plugin</artifactId> |
| 104 | <executions> |
| 105 | <execution> |
| 106 | <id>validate</id> |
| 107 | <phase>validate</phase> |
| 108 | <goals> |
| 109 | <goal>validate</goal> |
| 110 | </goals> |
| 111 | <configuration> |
| 112 | <validationSets> |
| 113 | <validationSet> |
| 114 | <includes> |
| 115 | <include>src/main/resources/**/*.y*ml</include> |
| 116 | <include>src/test/resources/**/*.y*ml</include> |
| 117 | </includes> |
| 118 | </validationSet> |
| 119 | <validationSet> |
| 120 | <includes> |
| 121 | <include>src/main/resources/**/*.json</include> |
| 122 | <include>src/test/resources/**/*.json</include> |
| 123 | </includes> |
| 124 | </validationSet> |
| 125 | </validationSets> |
JulienBe | 6bd3d3a | 2020-06-24 15:35:23 +0200 | [diff] [blame] | 126 | <skip>${skipYamlJsonValidator}</skip> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 127 | </configuration> |
| 128 | </execution> |
| 129 | </executions> |
| 130 | </plugin> |
| 131 | </plugins> |
| 132 | </build> |
| 133 | |
| 134 | <repositories> |
| 135 | <!-- LF repositories --> |
| 136 | <repository> |
| 137 | <id>ecomp-releases</id> |
| 138 | <name>Release Repository</name> |
| 139 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 140 | </repository> |
| 141 | <repository> |
| 142 | <id>ecomp-snapshots</id> |
| 143 | <name>Snapshots Repository</name> |
| 144 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 145 | </repository> |
| 146 | <repository> |
| 147 | <id>ecomp-public</id> |
| 148 | <name>Public Repository</name> |
| 149 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 150 | </repository> |
| 151 | <!-- LF repositories END--> |
| 152 | </repositories> |
| 153 | |
| 154 | <profiles> |
| 155 | <profile> |
| 156 | <id>docker</id> |
| 157 | <activation> |
| 158 | <activeByDefault>false</activeByDefault> |
| 159 | </activation> |
| 160 | <build> |
| 161 | <plugins> |
| 162 | |
| 163 | <plugin> |
| 164 | <artifactId>maven-clean-plugin</artifactId> |
| 165 | <version>3.0.0</version> |
| 166 | <executions> |
| 167 | <execution> |
| 168 | <id>clean-static-files</id> |
| 169 | <phase>clean</phase> |
| 170 | <goals> |
| 171 | <goal>clean</goal> |
| 172 | </goals> |
| 173 | <configuration> |
| 174 | <filesets> |
| 175 | <fileset> |
| 176 | <directory>${project.basedir}/sdc-simulator</directory> |
| 177 | <includes> |
| 178 | <include>*.war</include> |
| 179 | </includes> |
| 180 | <followSymlinks>false</followSymlinks> |
| 181 | </fileset> |
| 182 | </filesets> |
| 183 | </configuration> |
| 184 | </execution> |
| 185 | </executions> |
| 186 | </plugin> |
| 187 | |
| 188 | <plugin> |
| 189 | <artifactId>maven-resources-plugin</artifactId> |
| 190 | <executions> |
| 191 | <execution> |
| 192 | <id>copy-resources-simulator</id> |
| 193 | <phase>verify</phase> |
| 194 | <goals> |
| 195 | <goal>copy-resources</goal> |
| 196 | </goals> |
| 197 | <configuration> |
| 198 | <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory> |
| 199 | <resources> |
| 200 | <resource> |
| 201 | <directory>${project.basedir}/target</directory> |
| 202 | <includes> |
| 203 | <include>WSSimulator*.war</include> |
| 204 | </includes> |
| 205 | </resource> |
| 206 | </resources> |
| 207 | </configuration> |
| 208 | </execution> |
| 209 | </executions> |
| 210 | </plugin> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 211 | |
| 212 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 213 | <plugin> |
| 214 | <groupId>io.fabric8</groupId> |
| 215 | <artifactId>docker-maven-plugin</artifactId> |
| 216 | <configuration> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 217 | <apiVersion>${docker.api.version}</apiVersion> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 218 | <registry>nexus3.onap.org:10001</registry> |
| 219 | <authConfig> |
| 220 | <pull> |
| 221 | <username>docker</username> |
| 222 | <password>docker</password> |
| 223 | </pull> |
| 224 | </authConfig> |
| 225 | <images> |
| 226 | <!-- Build simulator image --> |
| 227 | <image> |
| 228 | <name>onap/sdc-simulator</name> |
| 229 | <alias>sdc-simulator</alias> |
| 230 | <build> |
| 231 | <cleanup>try</cleanup> |
| 232 | <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir> |
| 233 | <tags> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 234 | <tag>latest</tag> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 235 | <tag> |
| 236 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 237 | </tag> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 238 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 239 | </tags> |
| 240 | </build> |
| 241 | </image> |
| 242 | </images> |
| 243 | </configuration> |
| 244 | <executions> |
| 245 | <execution> |
| 246 | <id>clean-images</id> |
| 247 | <phase>pre-clean</phase> |
| 248 | <goals> |
| 249 | <goal>remove</goal> |
| 250 | </goals> |
| 251 | </execution> |
| 252 | <execution> |
| 253 | <id>generate-images</id> |
| 254 | <phase>install</phase> |
| 255 | <goals> |
| 256 | <goal>build</goal> |
| 257 | </goals> |
| 258 | </execution> |
| 259 | <execution> |
| 260 | <id>push-images</id> |
| 261 | <phase>deploy</phase> |
| 262 | <goals> |
| 263 | <goal>push</goal> |
| 264 | </goals> |
| 265 | </execution> |
| 266 | </executions> |
| 267 | </plugin> |
| 268 | </plugins> |
| 269 | </build> |
| 270 | </profile> |
| 271 | </profiles> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 272 | </project> |