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 | 17873c4 | 2018-05-27 09:07:08 +0300 | [diff] [blame^] | 12 | <version>1.2.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> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 90 | <plugins> |
| 91 | <!-- ================================================== --> |
| 92 | <!-- Set the JDK compiler version. --> |
| 93 | <!-- ================================================== --> |
| 94 | <plugin> |
| 95 | <groupId>org.apache.maven.plugins</groupId> |
| 96 | <artifactId>maven-compiler-plugin</artifactId> |
| 97 | <version>2.5.1</version> |
| 98 | <inherited>true</inherited> |
| 99 | <configuration> |
| 100 | <source>1.8</source> |
| 101 | <target>1.8</target> |
| 102 | </configuration> |
| 103 | </plugin> |
| 104 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 105 | </plugins> |
| 106 | </build> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 107 | |
Idan Amit | c7f57ec | 2017-08-31 14:26:21 +0300 | [diff] [blame] | 108 | <repositories> |
| 109 | <!-- LF repositories --> |
| 110 | <repository> |
| 111 | <id>ecomp-releases</id> |
| 112 | <name>Release Repository</name> |
| 113 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 114 | </repository> |
| 115 | <repository> |
Idan Amit | c7f57ec | 2017-08-31 14:26:21 +0300 | [diff] [blame] | 116 | <id>ecomp-snapshots</id> |
| 117 | <name>Snapshots Repository</name> |
| 118 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 119 | </repository> |
| 120 | <repository> |
| 121 | <id>ecomp-public</id> |
| 122 | <name>Public Repository</name> |
| 123 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 124 | </repository> |
| 125 | <!-- LF repositories END--> |
| 126 | </repositories> |
| 127 | |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 128 | <profiles> |
| 129 | <profile> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 130 | <id>docker</id> |
| 131 | <activation> |
| 132 | <activeByDefault>false</activeByDefault> |
| 133 | </activation> |
| 134 | <build> |
| 135 | <plugins> |
| 136 | |
| 137 | <plugin> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 138 | <artifactId>maven-clean-plugin</artifactId> |
| 139 | <version>3.0.0</version> |
| 140 | <executions> |
| 141 | <execution> |
| 142 | <id>clean-static-files</id> |
| 143 | <phase>clean</phase> |
| 144 | <goals> |
| 145 | <goal>clean</goal> |
| 146 | </goals> |
| 147 | <configuration> |
| 148 | <filesets> |
| 149 | <fileset> |
| 150 | <directory>${project.basedir}/sdc-simulator</directory> |
| 151 | <includes> |
| 152 | <include>*.war</include> |
| 153 | </includes> |
| 154 | <followSymlinks>false</followSymlinks> |
| 155 | </fileset> |
| 156 | <fileset> |
| 157 | <directory>${project.basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</directory> |
| 158 | <includes>logback.xml</includes> |
| 159 | <followSymlinks>false</followSymlinks> |
| 160 | </fileset> |
| 161 | </filesets> |
| 162 | </configuration> |
| 163 | </execution> |
| 164 | </executions> |
| 165 | </plugin> |
| 166 | |
| 167 | <plugin> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 168 | <artifactId>maven-resources-plugin</artifactId> |
| 169 | <version>3.0.2</version> |
| 170 | <executions> |
| 171 | <execution> |
| 172 | <id>copy-resources-simulator</id> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 173 | <phase>verify</phase> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 174 | <goals> |
| 175 | <goal>copy-resources</goal> |
| 176 | </goals> |
| 177 | <configuration> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 178 | <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 179 | <resources> |
| 180 | <resource> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 181 | <directory>${project.basedir}/target</directory> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 182 | <includes> |
Michael Lando | a1ceb60 | 2018-02-20 16:14:11 +0200 | [diff] [blame] | 183 | <include>WSSimulator*.war</include> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 184 | </includes> |
| 185 | </resource> |
| 186 | </resources> |
| 187 | </configuration> |
| 188 | </execution> |
| 189 | <execution> |
| 190 | <id>copy-configurations-simulator</id> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 191 | <phase>verify</phase> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 192 | <goals> |
| 193 | <goal>copy-resources</goal> |
| 194 | </goals> |
| 195 | <configuration> |
| 196 | <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory> |
| 197 | <resources> |
| 198 | <resource> |
| 199 | <directory>${basedir}/src/main/resources</directory> |
| 200 | <includes> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 201 | <include>logback.xml</include> |
| 202 | </includes> |
| 203 | </resource> |
| 204 | </resources> |
| 205 | </configuration> |
| 206 | </execution> |
| 207 | </executions> |
| 208 | </plugin> |
| 209 | |
| 210 | |
| 211 | |
| 212 | <plugin> |
| 213 | <groupId>io.fabric8</groupId> |
| 214 | <artifactId>docker-maven-plugin</artifactId> |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 215 | <version>${fabric8.version}</version> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 216 | |
| 217 | <configuration> |
| 218 | <verbose>true</verbose> |
| 219 | <apiVersion>1.23</apiVersion> |
Yuli Shlosberg | 4414495 | 2017-11-09 13:34:49 +0200 | [diff] [blame] | 220 | <registry>nexus3.onap.org:10001</registry> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 221 | <authConfig> |
| 222 | <pull> |
| 223 | <username>docker</username> |
| 224 | <password>docker</password> |
| 225 | </pull> |
| 226 | </authConfig> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 227 | <images> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 228 | <!-- Build simulator image --> |
| 229 | <image> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 230 | <name>onap/sdc-simulator</name> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 231 | <alias>sdc-simulator</alias> |
| 232 | <build> |
| 233 | <cleanup>try</cleanup> |
Victor Morales | d5d8840 | 2018-02-02 08:41:42 -0800 | [diff] [blame] | 234 | <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 235 | <tags> |
| 236 | <tag>${docker.tag}</tag> |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 237 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 238 | </tags> |
| 239 | </build> |
| 240 | </image> |
| 241 | </images> |
| 242 | </configuration> |
| 243 | <executions> |
| 244 | <execution> |
| 245 | <id>clean-images</id> |
| 246 | <phase>pre-clean</phase> |
| 247 | <goals> |
| 248 | <goal>remove</goal> |
| 249 | </goals> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 250 | </execution> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 251 | <execution> |
| 252 | <id>generate-images</id> |
Tal Gitelman | 62ae83d | 2018-01-25 15:28:44 +0200 | [diff] [blame] | 253 | <phase>install</phase> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 254 | <goals> |
| 255 | <goal>build</goal> |
| 256 | </goals> |
| 257 | </execution> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 258 | <execution> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 259 | <id>push-images</id> |
| 260 | <phase>deploy</phase> |
| 261 | <goals> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 262 | <goal>push</goal> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 263 | </goals> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 264 | </execution> |
| 265 | </executions> |
| 266 | </plugin> |
| 267 | </plugins> |
| 268 | </build> |
| 269 | </profile> |
| 270 | </profiles> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 271 | </project> |