vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 4 | |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 5 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 6 | <modelVersion>4.0.0</modelVersion> |
| 7 | <artifactId>webseal-simulator</artifactId> |
| 8 | <packaging>war</packaging> |
Yuli Shlosberg | f59a225 | 2018-03-21 11:14:08 +0200 | [diff] [blame] | 9 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
| 13 | <version>1.7.0-SNAPSHOT</version> |
| 14 | <relativePath>../../</relativePath> |
| 15 | </parent> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 16 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 17 | <properties> |
| 18 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 19 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
| 20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 21 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 22 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
| 23 | <sonar.skip>true</sonar.skip> |
| 24 | </properties> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 25 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 26 | <dependencies> |
| 27 | <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API --> |
| 28 | <dependency> |
| 29 | <groupId>org.junit.jupiter</groupId> |
| 30 | <artifactId>junit-jupiter-engine</artifactId> |
| 31 | <version>${junitJupiter.version}</version> |
| 32 | <scope>test</scope> |
| 33 | </dependency> |
| 34 | <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API --> |
| 35 | <dependency> |
| 36 | <groupId>org.junit.vintage</groupId> |
| 37 | <artifactId>junit-vintage-engine</artifactId> |
| 38 | <version>${junitJupiter.version}</version> |
vasraz | a1bd235 | 2020-05-06 23:57:53 +0100 | [diff] [blame^] | 39 | <scope>test</scope> |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 40 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 41 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 42 | <dependency> |
| 43 | <groupId>javax.servlet</groupId> |
| 44 | <artifactId>servlet-api</artifactId> |
| 45 | <version>2.5</version> |
| 46 | <scope>compile</scope> |
| 47 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 48 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 49 | <dependency> |
| 50 | <groupId>org.apache.httpcomponents</groupId> |
| 51 | <artifactId>httpclient</artifactId> |
| 52 | <version>4.5.3</version> |
| 53 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 54 | |
Yuli Shlosberg | af70a20 | 2018-09-25 17:16:48 +0300 | [diff] [blame] | 55 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 56 | <dependency> |
| 57 | <groupId>commons-logging</groupId> |
| 58 | <artifactId>commons-logging-api</artifactId> |
| 59 | <version>1.0.4</version> |
| 60 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 61 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 62 | <dependency> |
| 63 | <groupId>commons-io</groupId> |
| 64 | <artifactId>commons-io</artifactId> |
| 65 | <version>2.4</version> |
| 66 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 67 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 68 | <dependency> |
| 69 | <groupId>commons-codec</groupId> |
| 70 | <artifactId>commons-codec</artifactId> |
| 71 | <version>1.9</version> |
| 72 | <scope>compile</scope> |
| 73 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 74 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 75 | <dependency> |
| 76 | <groupId>org.eclipse.jetty</groupId> |
| 77 | <artifactId>jetty-proxy</artifactId> |
| 78 | <version>${jetty.version}</version> |
| 79 | <scope>compile</scope> |
| 80 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 81 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 82 | <dependency> |
| 83 | <groupId>org.eclipse.jetty</groupId> |
| 84 | <artifactId>jetty-servlets</artifactId> |
| 85 | <version>${jetty.version}</version> |
| 86 | <scope>compile</scope> |
| 87 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 88 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 89 | <!-- Proxy servlet --> |
| 90 | <dependency> |
| 91 | <groupId>com.typesafe</groupId> |
| 92 | <artifactId>config</artifactId> |
| 93 | <version>1.0.2</version> |
| 94 | <scope>compile</scope> |
| 95 | </dependency> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 96 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 97 | <dependency> |
| 98 | <groupId>log4j</groupId> |
| 99 | <artifactId>log4j</artifactId> |
| 100 | <version>1.2.17</version> |
| 101 | <scope>compile</scope> |
| 102 | </dependency> |
Yuli Shlosberg | af70a20 | 2018-09-25 17:16:48 +0300 | [diff] [blame] | 103 | |
| 104 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 105 | </dependencies> |
| 106 | <build> |
| 107 | <finalName>WSSimulator-${project.version}</finalName> |
| 108 | <plugins> |
| 109 | <plugin> |
| 110 | <groupId>com.github.sylvainlaurent.maven</groupId> |
| 111 | <artifactId>yaml-json-validator-maven-plugin</artifactId> |
| 112 | <executions> |
| 113 | <execution> |
| 114 | <id>validate</id> |
| 115 | <phase>validate</phase> |
| 116 | <goals> |
| 117 | <goal>validate</goal> |
| 118 | </goals> |
| 119 | <configuration> |
| 120 | <validationSets> |
| 121 | <validationSet> |
| 122 | <includes> |
| 123 | <include>src/main/resources/**/*.y*ml</include> |
| 124 | <include>src/test/resources/**/*.y*ml</include> |
| 125 | </includes> |
| 126 | </validationSet> |
| 127 | <validationSet> |
| 128 | <includes> |
| 129 | <include>src/main/resources/**/*.json</include> |
| 130 | <include>src/test/resources/**/*.json</include> |
| 131 | </includes> |
| 132 | </validationSet> |
| 133 | </validationSets> |
| 134 | </configuration> |
| 135 | </execution> |
| 136 | </executions> |
| 137 | </plugin> |
| 138 | </plugins> |
| 139 | </build> |
| 140 | |
| 141 | <repositories> |
| 142 | <!-- LF repositories --> |
| 143 | <repository> |
| 144 | <id>ecomp-releases</id> |
| 145 | <name>Release Repository</name> |
| 146 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 147 | </repository> |
| 148 | <repository> |
| 149 | <id>ecomp-snapshots</id> |
| 150 | <name>Snapshots Repository</name> |
| 151 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 152 | </repository> |
| 153 | <repository> |
| 154 | <id>ecomp-public</id> |
| 155 | <name>Public Repository</name> |
| 156 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 157 | </repository> |
| 158 | <!-- LF repositories END--> |
| 159 | </repositories> |
| 160 | |
| 161 | <profiles> |
| 162 | <profile> |
| 163 | <id>docker</id> |
| 164 | <activation> |
| 165 | <activeByDefault>false</activeByDefault> |
| 166 | </activation> |
| 167 | <build> |
| 168 | <plugins> |
| 169 | |
| 170 | <plugin> |
| 171 | <artifactId>maven-clean-plugin</artifactId> |
| 172 | <version>3.0.0</version> |
| 173 | <executions> |
| 174 | <execution> |
| 175 | <id>clean-static-files</id> |
| 176 | <phase>clean</phase> |
| 177 | <goals> |
| 178 | <goal>clean</goal> |
| 179 | </goals> |
| 180 | <configuration> |
| 181 | <filesets> |
| 182 | <fileset> |
| 183 | <directory>${project.basedir}/sdc-simulator</directory> |
| 184 | <includes> |
| 185 | <include>*.war</include> |
| 186 | </includes> |
| 187 | <followSymlinks>false</followSymlinks> |
| 188 | </fileset> |
| 189 | </filesets> |
| 190 | </configuration> |
| 191 | </execution> |
| 192 | </executions> |
| 193 | </plugin> |
| 194 | |
| 195 | <plugin> |
| 196 | <artifactId>maven-resources-plugin</artifactId> |
| 197 | <executions> |
| 198 | <execution> |
| 199 | <id>copy-resources-simulator</id> |
| 200 | <phase>verify</phase> |
| 201 | <goals> |
| 202 | <goal>copy-resources</goal> |
| 203 | </goals> |
| 204 | <configuration> |
| 205 | <outputDirectory>${project.basedir}/sdc-simulator</outputDirectory> |
| 206 | <resources> |
| 207 | <resource> |
| 208 | <directory>${project.basedir}/target</directory> |
| 209 | <includes> |
| 210 | <include>WSSimulator*.war</include> |
| 211 | </includes> |
| 212 | </resource> |
| 213 | </resources> |
| 214 | </configuration> |
| 215 | </execution> |
| 216 | </executions> |
| 217 | </plugin> |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 218 | |
| 219 | |
vasraz | a36531c | 2020-04-29 18:39:35 +0100 | [diff] [blame] | 220 | <plugin> |
| 221 | <groupId>io.fabric8</groupId> |
| 222 | <artifactId>docker-maven-plugin</artifactId> |
| 223 | <configuration> |
| 224 | <apiVersion>1.23</apiVersion> |
| 225 | <registry>nexus3.onap.org:10001</registry> |
| 226 | <authConfig> |
| 227 | <pull> |
| 228 | <username>docker</username> |
| 229 | <password>docker</password> |
| 230 | </pull> |
| 231 | </authConfig> |
| 232 | <images> |
| 233 | <!-- Build simulator image --> |
| 234 | <image> |
| 235 | <name>onap/sdc-simulator</name> |
| 236 | <alias>sdc-simulator</alias> |
| 237 | <build> |
| 238 | <cleanup>try</cleanup> |
| 239 | <dockerFileDir>${basedir}${file.separator}sdc-simulator</dockerFileDir> |
| 240 | <tags> |
| 241 | <tag>${docker.tag}</tag> |
| 242 | <tag> |
| 243 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 244 | </tag> |
| 245 | </tags> |
| 246 | </build> |
| 247 | </image> |
| 248 | </images> |
| 249 | </configuration> |
| 250 | <executions> |
| 251 | <execution> |
| 252 | <id>clean-images</id> |
| 253 | <phase>pre-clean</phase> |
| 254 | <goals> |
| 255 | <goal>remove</goal> |
| 256 | </goals> |
| 257 | </execution> |
| 258 | <execution> |
| 259 | <id>generate-images</id> |
| 260 | <phase>install</phase> |
| 261 | <goals> |
| 262 | <goal>build</goal> |
| 263 | </goals> |
| 264 | </execution> |
| 265 | <execution> |
| 266 | <id>push-images</id> |
| 267 | <phase>deploy</phase> |
| 268 | <goals> |
| 269 | <goal>push</goal> |
| 270 | </goals> |
| 271 | </execution> |
| 272 | </executions> |
| 273 | </plugin> |
| 274 | </plugins> |
| 275 | </build> |
| 276 | </profile> |
| 277 | </profiles> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 278 | </project> |