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