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