Sean Condon | a36f65c | 2019-05-20 08:21:41 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright 2019 Open Networking Foundation |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License. |
| 16 | --> |
| 17 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 18 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 19 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 20 | <modelVersion>4.0.0</modelVersion> |
| 21 | |
| 22 | <parent> |
| 23 | <groupId>${groupId}</groupId> |
| 24 | <artifactId>${artifactId}</artifactId> |
| 25 | <version>${version}</version> |
| 26 | <relativePath>../../</relativePath> |
| 27 | </parent> |
| 28 | |
| 29 | <artifactId>${artifactId}-gui</artifactId> |
| 30 | <packaging>pom</packaging> |
| 31 | |
| 32 | <build> |
| 33 | <plugins> |
| 34 | <plugin> |
| 35 | <groupId>com.github.eirslett</groupId> |
| 36 | <artifactId>frontend-maven-plugin</artifactId> |
| 37 | <version>1.7.6</version> |
| 38 | <configuration> |
| 39 | <workingDirectory>${angular.project.location}</workingDirectory> |
| 40 | <installDirectory>${angular.project.nodeinstallation}</installDirectory> |
| 41 | </configuration> |
| 42 | <executions> |
| 43 | |
| 44 | <execution> |
| 45 | <id>install node and npm</id> |
| 46 | <goals> |
| 47 | <goal>install-node-and-npm</goal> |
| 48 | </goals> |
| 49 | <configuration> |
| 50 | <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
| 51 | <nodeVersion>v8.11.1</nodeVersion> |
| 52 | <npmVersion>5.6.0</npmVersion> |
| 53 | </configuration> |
| 54 | </execution> |
| 55 | |
| 56 | <execution> |
| 57 | <id>npm install</id> |
| 58 | <goals> |
| 59 | <goal>npm</goal> |
| 60 | </goals> |
| 61 | <!-- Optional configuration which provides for running any npm command --> |
| 62 | <configuration> |
| 63 | <arguments>install</arguments> |
| 64 | </configuration> |
| 65 | </execution> |
| 66 | |
| 67 | <execution> |
| 68 | <id>npm build</id> |
| 69 | <goals> |
| 70 | <goal>npm</goal> |
| 71 | </goals> |
| 72 | <configuration> |
| 73 | <arguments>run build ${artifactId}-gui-lib</arguments> |
| 74 | </configuration> |
| 75 | </execution> |
| 76 | |
| 77 | <!-- <execution>--> |
| 78 | <!-- <id>npm lint</id>--> |
| 79 | <!-- <goals>--> |
| 80 | <!-- <goal>npm</goal>--> |
| 81 | <!-- </goals>--> |
| 82 | <!-- <configuration>--> |
| 83 | <!-- <arguments>run lint ${artifactId}-gui-lib</arguments>--> |
| 84 | <!-- </configuration>--> |
| 85 | <!-- </execution>--> |
| 86 | |
| 87 | <!-- <execution>--> |
| 88 | <!-- <id>npm test</id>--> |
| 89 | <!-- <goals>--> |
| 90 | <!-- <goal>npm</goal>--> |
| 91 | <!-- </goals>--> |
| 92 | <!-- <configuration>--> |
| 93 | <!-- <arguments>run test</arguments>--> |
| 94 | <!-- </configuration>--> |
| 95 | <!-- </execution>--> |
| 96 | |
| 97 | <execution> |
| 98 | <id>npm pack</id> |
| 99 | <goals> |
| 100 | <goal>npm</goal> |
| 101 | </goals> |
| 102 | <configuration> |
| 103 | <arguments>pack ./dist/${artifactId}-gui-lib</arguments> |
| 104 | </configuration> |
| 105 | </execution> |
| 106 | </executions> |
| 107 | </plugin> |
| 108 | |
| 109 | </plugins> |
| 110 | </build> |
| 111 | |
| 112 | </project> |