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