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> |
| 8 | <version>0.0.1-SNAPSHOT</version> |
| 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 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 13 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
| 14 | <!--maven--> |
| 15 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
Idan Amit | c7f57ec | 2017-08-31 14:26:21 +0300 | [diff] [blame] | 16 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
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> |
| 83 | <finalName>WSSimulator</finalName> |
| 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 | |
| 99 | <plugin> |
| 100 | <groupId>org.eclipse.jetty</groupId> |
| 101 | <artifactId>jetty-maven-plugin</artifactId> |
| 102 | <version>${jetty-version}</version> |
| 103 | <configuration> |
| 104 | <contextPath>/</contextPath> |
| 105 | <webApp> |
| 106 | <contextPath>/</contextPath> |
| 107 | <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern> |
| 108 | </webApp> |
| 109 | <war>WSSimulator.war</war> |
| 110 | </configuration> |
| 111 | </plugin> |
| 112 | |
| 113 | </plugins> |
| 114 | </build> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 115 | |
Idan Amit | c7f57ec | 2017-08-31 14:26:21 +0300 | [diff] [blame] | 116 | <repositories> |
| 117 | <!-- LF repositories --> |
| 118 | <repository> |
| 119 | <id>ecomp-releases</id> |
| 120 | <name>Release Repository</name> |
| 121 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 122 | </repository> |
| 123 | <repository> |
| 124 | <id>ecomp-staging</id> |
| 125 | <name>Staging Repository</name> |
| 126 | <url>${nexus.proxy}/content/repositories/staging/</url> |
| 127 | </repository> |
| 128 | <repository> |
| 129 | <id>ecomp-snapshots</id> |
| 130 | <name>Snapshots Repository</name> |
| 131 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 132 | </repository> |
| 133 | <repository> |
| 134 | <id>ecomp-public</id> |
| 135 | <name>Public Repository</name> |
| 136 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 137 | </repository> |
| 138 | <!-- LF repositories END--> |
| 139 | </repositories> |
| 140 | |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 141 | <profiles> |
| 142 | <profile> |
| 143 | <id>docker-staging</id> |
| 144 | <properties> |
| 145 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 146 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 147 | </properties> |
| 148 | </profile> |
| 149 | |
| 150 | <profile> |
| 151 | <id>docker</id> |
| 152 | <activation> |
| 153 | <activeByDefault>false</activeByDefault> |
| 154 | </activation> |
| 155 | <build> |
| 156 | <plugins> |
| 157 | |
| 158 | <plugin> |
| 159 | <artifactId>maven-resources-plugin</artifactId> |
| 160 | <version>3.0.2</version> |
| 161 | <executions> |
| 162 | <execution> |
| 163 | <id>copy-resources-simulator</id> |
| 164 | <phase>validate</phase> |
| 165 | <goals> |
| 166 | <goal>copy-resources</goal> |
| 167 | </goals> |
| 168 | <configuration> |
| 169 | <outputDirectory>${basedir}/sdc-simulator</outputDirectory> |
| 170 | <resources> |
| 171 | <resource> |
| 172 | <directory>${basedir}/target</directory> |
| 173 | <includes> |
| 174 | <include>WSSimulator.war</include> |
| 175 | </includes> |
| 176 | </resource> |
| 177 | </resources> |
| 178 | </configuration> |
| 179 | </execution> |
| 180 | <execution> |
| 181 | <id>copy-configurations-simulator</id> |
| 182 | <phase>validate</phase> |
| 183 | <goals> |
| 184 | <goal>copy-resources</goal> |
| 185 | </goals> |
| 186 | <configuration> |
| 187 | <outputDirectory>${basedir}/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default</outputDirectory> |
| 188 | <resources> |
| 189 | <resource> |
| 190 | <directory>${basedir}/src/main/resources</directory> |
| 191 | <includes> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 192 | <include>logback.xml</include> |
| 193 | </includes> |
| 194 | </resource> |
| 195 | </resources> |
| 196 | </configuration> |
| 197 | </execution> |
| 198 | </executions> |
| 199 | </plugin> |
| 200 | |
| 201 | |
| 202 | |
| 203 | <plugin> |
| 204 | <groupId>io.fabric8</groupId> |
| 205 | <artifactId>docker-maven-plugin</artifactId> |
Idan Amit | a63a1aa | 2017-11-08 11:25:03 +0200 | [diff] [blame] | 206 | <version>0.23.0</version> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 207 | |
| 208 | <configuration> |
| 209 | <verbose>true</verbose> |
| 210 | <apiVersion>1.23</apiVersion> |
Yuli Shlosberg | 4414495 | 2017-11-09 13:34:49 +0200 | [diff] [blame] | 211 | <registry>nexus3.onap.org:10001</registry> |
Idan Amit | bc29371 | 2017-11-05 13:07:22 +0200 | [diff] [blame] | 212 | <authConfig> |
| 213 | <pull> |
| 214 | <username>docker</username> |
| 215 | <password>docker</password> |
| 216 | </pull> |
| 217 | </authConfig> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 218 | <images> |
| 219 | |
| 220 | <!-- Build simulator image --> |
| 221 | <image> |
| 222 | <name>openecomp/sdc-simulator</name> |
| 223 | <alias>sdc-simulator</alias> |
| 224 | <build> |
| 225 | <cleanup>try</cleanup> |
| 226 | <dockerFileDir>${basedir}\sdc-simulator</dockerFileDir> |
| 227 | <tags> |
| 228 | <tag>${docker.tag}</tag> |
| 229 | <tag>${docker.latest.tag}</tag> |
| 230 | <tag>1.1-STAGING-latest</tag> |
| 231 | </tags> |
| 232 | </build> |
| 233 | </image> |
| 234 | </images> |
| 235 | </configuration> |
| 236 | <executions> |
| 237 | <execution> |
| 238 | <id>clean-images</id> |
| 239 | <phase>pre-clean</phase> |
| 240 | <goals> |
| 241 | <goal>remove</goal> |
| 242 | </goals> |
| 243 | <configuration> |
| 244 | <removeAll>true</removeAll> |
| 245 | <image>openecomp/sdc-simulator</image> |
| 246 | </configuration> |
| 247 | </execution> |
| 248 | |
| 249 | <execution> |
| 250 | <id>generate-images</id> |
| 251 | <phase>package</phase> |
| 252 | <goals> |
| 253 | <goal>build</goal> |
| 254 | </goals> |
| 255 | </execution> |
| 256 | |
| 257 | <execution> |
| 258 | <id>push-images</id> |
| 259 | <phase>deploy</phase> |
| 260 | <goals> |
| 261 | <goal>build</goal> |
| 262 | <goal>push</goal> |
| 263 | </goals> |
| 264 | <configuration> |
| 265 | <image>openecomp/sdc-simulator</image> |
| 266 | </configuration> |
| 267 | </execution> |
| 268 | </executions> |
| 269 | </plugin> |
| 270 | </plugins> |
| 271 | </build> |
| 272 | </profile> |
| 273 | </profiles> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 274 | </project> |