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