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