Stone, Avi (as206k) | aa5abad | 2018-05-10 18:02:10 +0300 | [diff] [blame] | 1 | <project |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 2 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | <groupId>org.onap.sdc.dcae-d.fe</groupId> |
| 6 | <artifactId>dcae_fe</artifactId> |
| 7 | <version>1.2.0-SNAPSHOT</version> |
| 8 | <packaging>war</packaging> |
Stone, Avi (as206k) | 1fe5ba0 | 2018-05-24 14:27:03 +0300 | [diff] [blame] | 9 | <name>dcae-d fe application</name> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 10 | <description>DCAE FE</description> |
| 11 | |
| 12 | <parent> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 13 | <groupId>org.springframework.boot</groupId> |
| 14 | <artifactId>spring-boot-starter-parent</artifactId> |
Betzer, Rony (rb844h) | df0e092 | 2018-05-30 17:44:08 +0300 | [diff] [blame] | 15 | <version>1.5.13.RELEASE</version> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 16 | <relativePath /> |
| 17 | <!-- lookup parent from repository --> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 18 | </parent> |
| 19 | |
| 20 | <properties> |
Areli, Fuss (af732p) | a6eb0af | 2018-05-22 11:08:23 +0300 | [diff] [blame] | 21 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 22 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 23 | <nexus.proxy>https://nexus.onap.org</nexus.proxy> |
| 24 | <staging.profile.id>176c31dfe190a</staging.profile.id> |
| 25 | <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath> |
Stone, Avi (as206k) | 1fe5ba0 | 2018-05-24 14:27:03 +0300 | [diff] [blame] | 26 | <sonar.branch>${project.version}</sonar.branch> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 27 | </properties> |
| 28 | <dependencies> |
Stone, Avi (as206k) | ad54f18 | 2018-05-24 12:36:16 +0300 | [diff] [blame] | 29 | <dependency> |
| 30 | <groupId>org.eclipse.jetty</groupId> |
| 31 | <artifactId>jetty-proxy</artifactId> |
| 32 | <version>${jetty.version}</version> |
| 33 | </dependency> |
| 34 | <dependency> |
| 35 | <groupId>org.springframework.boot</groupId> |
| 36 | <artifactId>spring-boot-starter-web</artifactId> |
| 37 | <exclusions> |
| 38 | <exclusion> |
| 39 | <groupId>org.springframework.boot</groupId> |
| 40 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 41 | </exclusion> |
| 42 | </exclusions> |
| 43 | </dependency> |
| 44 | <dependency> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-starter-test</artifactId> |
| 47 | <scope>test</scope> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.apache.commons</groupId> |
| 51 | <artifactId>commons-lang3</artifactId> |
| 52 | <version>3.5</version> |
| 53 | </dependency> |
| 54 | <dependency> |
| 55 | <groupId>commons-net</groupId> |
| 56 | <artifactId>commons-net</artifactId> |
| 57 | <version>3.3</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>com.jcraft</groupId> |
| 61 | <artifactId>jsch</artifactId> |
| 62 | <version>0.1.54</version> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>com.google.code.gson</groupId> |
| 66 | <artifactId>gson</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.json</groupId> |
| 70 | <artifactId>json</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>javax.servlet</groupId> |
| 74 | <artifactId>javax.servlet-api</artifactId> |
| 75 | <scope>provided</scope> |
| 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId> |
| 79 | <artifactId>DCAE-DT-PROPERTY</artifactId> |
| 80 | <version>1.2.0-SNAPSHOT</version> |
| 81 | </dependency> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 82 | </dependencies> |
Stone, Avi (as206k) | aa5abad | 2018-05-10 18:02:10 +0300 | [diff] [blame] | 83 | |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 84 | <build> |
| 85 | <finalName>dcae_fe</finalName> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 86 | <!-- CLEAN --> |
| 87 | <plugins> |
| 88 | <plugin> |
| 89 | <artifactId>maven-clean-plugin</artifactId> |
| 90 | <executions> |
| 91 | <execution> |
| 92 | <id>auto-clean</id> |
| 93 | <phase>initialize</phase> |
| 94 | <goals> |
| 95 | <goal>clean</goal> |
| 96 | </goals> |
| 97 | </execution> |
| 98 | </executions> |
| 99 | </plugin> |
| 100 | <!-- install node+yarn and run yarn build --> |
| 101 | <plugin> |
| 102 | <groupId>com.github.eirslett</groupId> |
| 103 | <artifactId>frontend-maven-plugin</artifactId> |
| 104 | <version>1.6</version> |
| 105 | <configuration> |
| 106 | <workingDirectory>${project.basedir}/public</workingDirectory> |
| 107 | <installDirectory>target</installDirectory> |
| 108 | <nodeVersion>v9.11.1</nodeVersion> |
| 109 | <yarnVersion>v1.6.0</yarnVersion> |
| 110 | </configuration> |
| 111 | <executions> |
| 112 | <execution> |
| 113 | <id>install node and yarn</id> |
| 114 | <goals> |
| 115 | <goal>install-node-and-yarn</goal> |
| 116 | </goals> |
| 117 | <phase>generate-resources</phase> |
| 118 | </execution> |
| 119 | <execution> |
| 120 | <id>yarn-install</id> |
| 121 | <goals> |
| 122 | <goal>yarn</goal> |
| 123 | </goals> |
| 124 | <configuration> |
| 125 | <arguments>global add node-gyp --network-timeout 1000000</arguments> |
| 126 | </configuration> |
| 127 | </execution> |
| 128 | <execution> |
| 129 | <id>yarn install</id> |
| 130 | <goals> |
| 131 | <goal>yarn</goal> |
| 132 | </goals> |
| 133 | <configuration> |
| 134 | <arguments>install --network-timeout 1000000</arguments> |
| 135 | </configuration> |
| 136 | </execution> |
| 137 | <execution> |
| 138 | <id>angular cli build</id> |
| 139 | <goals> |
| 140 | <goal>yarn</goal> |
| 141 | </goals> |
| 142 | <phase>generate-resources</phase> |
| 143 | <configuration> |
| 144 | <arguments>run build</arguments> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | </executions> |
| 148 | </plugin> |
| 149 | <!-- COPT FROM DIST TO WEBAPPS --> |
| 150 | <plugin> |
| 151 | <artifactId>maven-resources-plugin</artifactId> |
| 152 | <executions> |
| 153 | <execution> |
| 154 | <id>copy-resources-fe</id> |
| 155 | <phase>prepare-package</phase> |
| 156 | <goals> |
| 157 | <goal>copy-resources</goal> |
| 158 | </goals> |
| 159 | <configuration> |
| 160 | <outputDirectory>src/main/webapp</outputDirectory> |
| 161 | <resources> |
| 162 | <resource> |
| 163 | <directory>${project.basedir}/public/dist</directory> |
| 164 | <filtering>false</filtering> |
| 165 | </resource> |
| 166 | </resources> |
| 167 | </configuration> |
| 168 | </execution> |
| 169 | </executions> |
| 170 | </plugin> |
| 171 | <plugin> |
| 172 | <groupId>org.apache.maven.plugins</groupId> |
| 173 | <artifactId>maven-war-plugin</artifactId> |
| 174 | <version>3.0.0</version> |
| 175 | </plugin> |
| 176 | <!-- Site Plugin --> |
| 177 | <plugin> |
| 178 | <groupId>org.apache.maven.plugins</groupId> |
| 179 | <artifactId>maven-site-plugin</artifactId> |
| 180 | <version>3.4</version> |
| 181 | <dependencies> |
| 182 | <dependency> |
| 183 | <groupId>org.apache.maven.wagon</groupId> |
| 184 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 185 | <version>2.10</version> |
| 186 | </dependency> |
| 187 | </dependencies> |
| 188 | </plugin> |
| 189 | <!-- Staging Plugin --> |
| 190 | <plugin> |
| 191 | <groupId>org.sonatype.plugins</groupId> |
| 192 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 193 | <version>1.6.7</version> |
| 194 | <extensions>true</extensions> |
| 195 | <configuration> |
| 196 | <nexusUrl>${nexus.proxy}</nexusUrl> |
| 197 | <stagingProfileId>${staging.profile.id}</stagingProfileId> |
| 198 | <serverId>ecomp-staging</serverId> |
| 199 | </configuration> |
| 200 | </plugin> |
| 201 | <plugin> |
| 202 | <groupId>org.codehaus.mojo</groupId> |
| 203 | <artifactId>build-helper-maven-plugin</artifactId> |
| 204 | <version>1.8</version> |
| 205 | <executions> |
| 206 | <execution> |
| 207 | <id>parse-version</id> |
| 208 | <goals> |
| 209 | <goal>parse-version</goal> |
| 210 | </goals> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | </plugin> |
| 214 | </plugins> |
| 215 | </build> |
| 216 | |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 217 | <profiles> |
| 218 | <profile> |
| 219 | <id>local</id> |
| 220 | <activation> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 221 | <activeByDefault>false</activeByDefault> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 222 | </activation> |
| 223 | <dependencies> |
| 224 | <dependency> |
| 225 | <groupId>org.springframework.boot</groupId> |
| 226 | <artifactId>spring-boot-starter-web</artifactId> |
| 227 | <exclusions> |
| 228 | <exclusion> |
| 229 | <groupId>org.springframework.boot</groupId> |
| 230 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 231 | </exclusion> |
| 232 | </exclusions> |
| 233 | </dependency> |
| 234 | <dependency> |
| 235 | <groupId>org.springframework.boot</groupId> |
| 236 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 237 | <exclusions> |
| 238 | <exclusion> |
| 239 | <groupId>org.eclipse.jetty.websocket</groupId> |
| 240 | <artifactId>*</artifactId> |
| 241 | </exclusion> |
| 242 | </exclusions> |
| 243 | </dependency> |
| 244 | <dependency> |
| 245 | <groupId>org.springframework.boot</groupId> |
| 246 | <artifactId>spring-boot-starter-test</artifactId> |
| 247 | <scope>test</scope> |
| 248 | </dependency> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 249 | </dependencies> |
| 250 | </profile> |
| 251 | |
| 252 | <profile> |
| 253 | <id>docker</id> |
| 254 | <properties> |
| 255 | <!-- Docker tags --> |
| 256 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 257 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 258 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
Areli, Fuss (af732p) | a6eb0af | 2018-05-22 11:08:23 +0300 | [diff] [blame] | 259 | <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 260 | </properties> |
| 261 | <activation> |
| 262 | <activeByDefault>false</activeByDefault> |
| 263 | </activation> |
| 264 | <build> |
| 265 | <plugins> |
| 266 | <plugin> |
| 267 | <artifactId>maven-clean-plugin</artifactId> |
| 268 | <executions> |
| 269 | <execution> |
| 270 | <id>delete dcae fe war</id> |
| 271 | <phase>clean</phase> |
| 272 | <goals> |
| 273 | <goal>clean</goal> |
| 274 | </goals> |
| 275 | <configuration> |
| 276 | <filesets> |
| 277 | <fileset> |
| 278 | <directory>${project.parent.basedir}/docker/target</directory> |
| 279 | <followSymlinks>false</followSymlinks> |
| 280 | <includes> |
| 281 | <include>*.war</include> |
| 282 | </includes> |
| 283 | </fileset> |
| 284 | </filesets> |
| 285 | </configuration> |
| 286 | </execution> |
| 287 | </executions> |
| 288 | </plugin> |
| 289 | |
| 290 | |
| 291 | <plugin> |
| 292 | <artifactId>maven-resources-plugin</artifactId> |
| 293 | <version>3.0.2</version> |
| 294 | <executions> |
| 295 | <execution> |
| 296 | <id>copy-dcae-fe-war</id> |
| 297 | <phase>install</phase> |
| 298 | <goals> |
| 299 | <goal>copy-resources</goal> |
| 300 | </goals> |
| 301 | <configuration> |
| 302 | <outputDirectory>${project.basedir}/docker/target</outputDirectory> |
| 303 | <resources> |
| 304 | <resource> |
| 305 | <directory>${project.basedir}/target</directory> |
| 306 | <includes> |
| 307 | <include>dcae_fe.war</include> |
| 308 | </includes> |
| 309 | </resource> |
| 310 | </resources> |
| 311 | </configuration> |
| 312 | </execution> |
| 313 | </executions> |
| 314 | </plugin> |
| 315 | <plugin> |
| 316 | <groupId>io.fabric8</groupId> |
| 317 | <artifactId>docker-maven-plugin</artifactId> |
| 318 | <version>0.23.0</version> |
| 319 | <configuration> |
| 320 | <verbose>true</verbose> |
| 321 | <apiVersion>1.23</apiVersion> |
| 322 | <images> |
| 323 | <!-- Build front image --> |
| 324 | <image> |
| 325 | <name>onap/dcae-fe</name> |
| 326 | <alias>dcae-fe</alias> |
| 327 | <build> |
| 328 | <cleanup>try</cleanup> |
| 329 | <dockerFileDir>${project.basedir}/docker</dockerFileDir> |
| 330 | <tags> |
| 331 | <tag>${docker.tag}</tag> |
| 332 | <tag>${docker.latest.tag}</tag> |
Areli, Fuss (af732p) | a6eb0af | 2018-05-22 11:08:23 +0300 | [diff] [blame] | 333 | <tag>${docker.staging.tag}</tag> |
Areli, Fuss (af732p) | 12f66da | 2018-05-21 16:35:34 +0300 | [diff] [blame] | 334 | </tags> |
| 335 | </build> |
| 336 | </image> |
| 337 | </images> |
| 338 | </configuration> |
| 339 | <executions> |
| 340 | <execution> |
| 341 | <id>clean-images</id> |
| 342 | <phase>pre-clean</phase> |
| 343 | <goals> |
| 344 | <goal>remove</goal> |
| 345 | </goals> |
| 346 | <configuration> |
| 347 | <removeAll>true</removeAll> |
| 348 | <image>onap/dcae-fe</image> |
| 349 | </configuration> |
| 350 | </execution> |
| 351 | <execution> |
| 352 | <id>generate-images</id> |
| 353 | <phase>install</phase> |
| 354 | <goals> |
| 355 | <goal>build</goal> |
| 356 | </goals> |
| 357 | </execution> |
| 358 | <execution> |
| 359 | <id>push-images</id> |
| 360 | <phase>deploy</phase> |
| 361 | <goals> |
| 362 | <goal>push</goal> |
| 363 | </goals> |
| 364 | <configuration> |
| 365 | <image>onap/dcae-fe</image> |
| 366 | </configuration> |
| 367 | </execution> |
| 368 | </executions> |
| 369 | </plugin> |
| 370 | </plugins> |
| 371 | </build> |
| 372 | </profile> |
| 373 | </profiles> |
Stone, Avi (as206k) | 52591e4 | 2018-05-08 11:51:27 +0300 | [diff] [blame] | 374 | <repositories> |
| 375 | <!-- LF repositories --> |
| 376 | <repository> |
| 377 | <id>ecomp-releases</id> |
| 378 | <name>Release Repository</name> |
| 379 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 380 | </repository> |
| 381 | <repository> |
| 382 | <id>ecomp-snapshots</id> |
| 383 | <name>Snapshots Repository</name> |
| 384 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 385 | </repository> |
| 386 | <repository> |
| 387 | <id>ecomp-public</id> |
| 388 | <name>Public Repository</name> |
| 389 | <url>${nexus.proxy}/content/repositories/public/</url> |
| 390 | </repository> |
| 391 | <!-- LF repositories END--> |
| 392 | </repositories> |
| 393 | |
| 394 | <distributionManagement> |
| 395 | <repository> |
| 396 | <id>ecomp-releases</id> |
| 397 | <name>Release Repository</name> |
| 398 | <url>${nexus.proxy}/content/repositories/releases/</url> |
| 399 | </repository> |
| 400 | <snapshotRepository> |
| 401 | <id>ecomp-snapshots</id> |
| 402 | <name>Snapshot Repository</name> |
| 403 | <url>${nexus.proxy}/content/repositories/snapshots/</url> |
| 404 | </snapshotRepository> |
| 405 | <site> |
| 406 | <id>ecomp-site</id> |
| 407 | <url>dav:${nexus.proxy}${sitePath}</url> |
| 408 | </site> |
| 409 | </distributionManagement> |
Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 410 | </project> |