YILI | 8fe061f | 2017-03-22 15:15:07 +0800 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | |
| 4 | Copyright 2017 ZTE Corporation. |
| 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | --> |
| 19 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 20 | <parent> |
| 21 | <groupId>org.openo.client.gui</groupId> |
| 22 | <artifactId>client-gui</artifactId> |
| 23 | <version>1.1.0-SNAPSHOT</version> |
| 24 | </parent> |
| 25 | |
| 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <artifactId>holmes</artifactId> |
| 28 | <packaging>war</packaging> |
YILI | b550b6d | 2017-03-24 10:42:18 +0800 | [diff] [blame] | 29 | <version>1.1.0-SNAPSHOT</version> |
GuangrongFu | ec40c06 | 2017-03-24 14:31:03 +0800 | [diff] [blame] | 30 | <name>client-gui/holmes</name> |
YILI | 8fe061f | 2017-03-22 15:15:07 +0800 | [diff] [blame] | 31 | |
| 32 | <build> |
| 33 | <plugins> |
YILI | b550b6d | 2017-03-24 10:42:18 +0800 | [diff] [blame] | 34 | <plugin> |
| 35 | <groupId>com.github.eirslett</groupId> |
| 36 | <artifactId>frontend-maven-plugin</artifactId> |
| 37 | <version>1.3</version> |
| 38 | <executions> |
| 39 | <execution> |
| 40 | <id>install node and npm</id> |
| 41 | <goals> |
| 42 | <goal>install-node-and-npm</goal> |
| 43 | </goals> |
| 44 | <phase>generate-resources</phase> |
| 45 | </execution> |
| 46 | <execution> |
| 47 | <id>npm install</id> |
| 48 | <goals> |
| 49 | <goal>npm</goal> |
| 50 | </goals> |
| 51 | <configuration> |
| 52 | <arguments>install</arguments> |
| 53 | </configuration> |
| 54 | </execution> |
| 55 | <execution> |
| 56 | <id>webpack build</id> |
| 57 | <goals> |
| 58 | <goal>webpack</goal> |
| 59 | </goals> |
| 60 | <phase>generate-resources</phase> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | <configuration> |
| 64 | <workingDirectory>src/main/webapp</workingDirectory> |
| 65 | <nodeVersion>v6.9.5</nodeVersion> |
| 66 | <npmVersion>3.10.10</npmVersion> |
| 67 | <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot> |
| 68 | <npmDownloadRoot>https://registry.npmjs.org/npm/-/</npmDownloadRoot> |
| 69 | </configuration> |
| 70 | </plugin> |
YILI | 8fe061f | 2017-03-22 15:15:07 +0800 | [diff] [blame] | 71 | |
YILI | b550b6d | 2017-03-24 10:42:18 +0800 | [diff] [blame] | 72 | <plugin> |
| 73 | <groupId>org.apache.maven.plugins</groupId> |
| 74 | <artifactId>maven-war-plugin</artifactId> |
| 75 | <configuration> |
| 76 | <failOnMissingWebXml>false</failOnMissingWebXml> |
| 77 | <warSourceExcludes> |
| 78 | alarm/**, |
| 79 | config/**, |
| 80 | foo/**, |
| 81 | i18n/**, |
| 82 | node/**, |
| 83 | node_modules/**, |
| 84 | public/**, |
| 85 | *.json, |
| 86 | *.js |
| 87 | </warSourceExcludes> |
| 88 | </configuration> |
| 89 | </plugin> |
| 90 | |
| 91 | </plugins> |
YILI | 8fe061f | 2017-03-22 15:15:07 +0800 | [diff] [blame] | 92 | </build> |
| 93 | </project> |