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