Arundathi Patil | 85db5b0 | 2019-01-17 14:10:08 +0530 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018-19 IBM Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END============================================ --> |
| 20 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | <groupId>org.onap.ccsdk.cds.server</groupId> |
| 25 | <artifactId>controller-design-studio-server</artifactId> |
| 26 | <version>1.0.0</version> |
| 27 | <packaging>pom</packaging> |
| 28 | |
| 29 | <name>cds-ui-server</name> |
| 30 | |
| 31 | <properties> |
| 32 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 33 | <npm.executable>npm</npm.executable> |
| 34 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 35 | </properties> |
| 36 | |
| 37 | <!-- ================================================================================== --> |
| 38 | <!-- Distribution Management Sites --> |
| 39 | <!-- ================================================================================== --> |
| 40 | <distributionManagement> |
| 41 | <repository> |
| 42 | <id>ecomp-releases</id> |
| 43 | <name>openecomp-repository-releases</name> |
| 44 | <url>${onap.nexus.url}/content/repositories/releases</url> |
| 45 | </repository> |
| 46 | <snapshotRepository> |
| 47 | <id>ecomp-snapshots</id> |
| 48 | <name>openecomp-repository-snapshots</name> |
| 49 | <url>${onap.nexus.url}/content/repositories/snapshots</url> |
| 50 | </snapshotRepository> |
| 51 | </distributionManagement> |
| 52 | |
| 53 | |
| 54 | <build> |
| 55 | <plugins> |
| 56 | <plugin> |
| 57 | <groupId>com.github.eirslett</groupId> |
| 58 | <artifactId>frontend-maven-plugin</artifactId> |
| 59 | <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ --> |
| 60 | <version>1.3</version> |
| 61 | <configuration> |
| 62 | <nodeVersion>v8.12.0</nodeVersion> |
| 63 | <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot> |
| 64 | <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot> |
| 65 | <installDirectory>./</installDirectory> |
| 66 | </configuration> |
| 67 | <executions> |
| 68 | <execution> |
| 69 | <id>install node and npm</id> |
| 70 | <goals> |
| 71 | <goal>install-node-and-npm</goal> |
| 72 | </goals> |
| 73 | <phase>generate-resources</phase> |
| 74 | </execution> |
| 75 | |
| 76 | <execution> |
| 77 | <id>npm install</id> |
| 78 | <goals> |
| 79 | <goal>npm</goal> |
| 80 | </goals> |
| 81 | |
| 82 | <phase>generate-resources</phase> |
| 83 | |
| 84 | <configuration> |
| 85 | <arguments>install</arguments> |
| 86 | </configuration> |
| 87 | </execution> |
| 88 | |
| 89 | <execution> |
| 90 | <id>npm build</id> |
| 91 | <goals> |
| 92 | <goal>npm</goal> |
| 93 | </goals> |
| 94 | |
| 95 | <phase>generate-resources</phase> |
| 96 | |
| 97 | <configuration> |
| 98 | <arguments>run build</arguments> |
| 99 | </configuration> |
| 100 | </execution> |
| 101 | |
| 102 | </executions> |
| 103 | </plugin> |
| 104 | </plugins> |
| 105 | </build> |
| 106 | </project> |