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