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