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