2016-03-21 17:03:13 -04:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2017-04-04 15:50:22 -04:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2016-03-21 17:03:13 -04:00
|
|
|
<parent>
|
|
|
|
<artifactId>hadoop-yarn</artifactId>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2017-05-26 17:09:44 -04:00
|
|
|
<version>3.0.0-alpha4-SNAPSHOT</version>
|
2016-03-21 17:03:13 -04:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>hadoop-yarn-ui</artifactId>
|
2017-05-26 17:09:44 -04:00
|
|
|
<version>3.0.0-alpha4-SNAPSHOT</version>
|
2016-03-21 17:03:13 -04:00
|
|
|
<name>Apache Hadoop YARN UI</name>
|
|
|
|
<packaging>${packaging.type}</packaging>
|
|
|
|
|
|
|
|
<properties>
|
2016-11-04 10:54:43 -04:00
|
|
|
<packaging.type>pom</packaging.type>
|
2016-10-04 11:37:42 -04:00
|
|
|
<webappTgtDir>${basedir}/target/src/main/webapp</webappTgtDir>
|
2017-03-15 06:23:57 -04:00
|
|
|
<node.executable>${basedir}/target/src/main/webapp/node/node</node.executable>
|
2017-03-21 04:16:31 -04:00
|
|
|
<nodeVersion>v5.7.1</nodeVersion>
|
|
|
|
<npmVersion>3.6.0</npmVersion>
|
2016-08-25 13:51:29 -04:00
|
|
|
<keep-ui-build-cache>false</keep-ui-build-cache>
|
2016-03-21 17:03:13 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<!-- Apache RAT -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>src/main/webapp/jsconfig.json</exclude>
|
|
|
|
<exclude>src/main/webapp/bower.json</exclude>
|
|
|
|
<exclude>src/main/webapp/package.json</exclude>
|
|
|
|
<exclude>src/main/webapp/testem.json</exclude>
|
|
|
|
<exclude>src/main/webapp/public/assets/images/**/*</exclude>
|
2016-08-30 11:28:35 -04:00
|
|
|
<exclude>src/main/webapp/public/assets/images/*</exclude>
|
2016-03-21 17:03:13 -04:00
|
|
|
<exclude>src/main/webapp/public/robots.txt</exclude>
|
|
|
|
<exclude>public/crossdomain.xml</exclude>
|
2016-08-30 11:28:35 -04:00
|
|
|
<exclude>src/main/webapp/.bowerrc</exclude>
|
|
|
|
<exclude>src/main/webapp/.ember-cli</exclude>
|
|
|
|
<exclude>src/main/webapp/.jshintrc</exclude>
|
|
|
|
<exclude>src/main/webapp/.watchmanconfig</exclude>
|
2016-03-21 17:03:13 -04:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
2016-08-25 13:51:29 -04:00
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<version>3.0.0</version>
|
|
|
|
<configuration>
|
|
|
|
<skip>${keep-ui-build-cache}</skip>
|
|
|
|
<followSymLinks>false</followSymLinks>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
2016-10-04 11:37:42 -04:00
|
|
|
<directory>${webappTgtDir}/bower_components</directory>
|
2016-08-25 13:51:29 -04:00
|
|
|
</fileset>
|
|
|
|
<fileset>
|
2016-10-04 11:37:42 -04:00
|
|
|
<directory>${webappTgtDir}/node_modules</directory>
|
2016-08-25 13:51:29 -04:00
|
|
|
</fileset>
|
|
|
|
</filesets>
|
|
|
|
</configuration>
|
2016-03-21 17:03:13 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>yarn-ui</id>
|
|
|
|
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<packaging.type>war</packaging.type>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2016-10-04 11:37:42 -04:00
|
|
|
<!-- prepare source code -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>prepare-source-code</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<copy toDir="${basedir}/target/src/main/webapp">
|
|
|
|
<fileset dir="${basedir}/src/main/webapp"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy toDir="${basedir}/target/src/public">
|
|
|
|
<fileset dir="${basedir}/public"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2016-03-21 17:03:13 -04:00
|
|
|
<plugin>
|
2017-03-04 02:43:25 -05:00
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
2017-04-12 02:31:47 -04:00
|
|
|
<version>1.1</version>
|
2017-03-04 02:43:25 -05:00
|
|
|
<configuration>
|
|
|
|
<workingDirectory>${webappTgtDir}</workingDirectory>
|
|
|
|
</configuration>
|
2016-03-21 17:03:13 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
2017-03-04 02:43:25 -05:00
|
|
|
<id>install node and npm</id>
|
2016-03-21 17:03:13 -04:00
|
|
|
<goals>
|
2017-03-04 02:43:25 -05:00
|
|
|
<goal>install-node-and-npm</goal>
|
2016-03-21 17:03:13 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-03-04 02:43:25 -05:00
|
|
|
<nodeVersion>${nodeVersion}</nodeVersion>
|
|
|
|
<npmVersion>${npmVersion}</npmVersion>
|
2016-03-21 17:03:13 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-03-04 02:43:25 -05:00
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<id>npm install</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2016-03-21 17:03:13 -04:00
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<id>bower install</id>
|
|
|
|
<goals>
|
2017-03-04 02:43:25 -05:00
|
|
|
<goal>bower</goal>
|
2016-03-21 17:03:13 -04:00
|
|
|
</goals>
|
|
|
|
</execution>
|
2017-03-04 02:43:25 -05:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Bower install & grunt build-->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<executions>
|
2016-03-21 17:03:13 -04:00
|
|
|
<execution>
|
|
|
|
<id>ember build</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2016-10-04 11:37:42 -04:00
|
|
|
<workingDirectory>${webappTgtDir}</workingDirectory>
|
2017-03-15 06:23:57 -04:00
|
|
|
<executable>${node.executable}</executable>
|
2016-03-21 17:03:13 -04:00
|
|
|
<arguments>
|
2017-04-12 02:31:47 -04:00
|
|
|
<argument>node/node_modules/npm/bin/npm-cli</argument>
|
2017-03-15 06:23:57 -04:00
|
|
|
<argument>run</argument>
|
|
|
|
<argument>build:mvn</argument>
|
2016-03-21 17:03:13 -04:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- Package into war -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
|
2017-03-15 06:23:57 -04:00
|
|
|
<warSourceDirectory>${webappTgtDir}/dist</warSourceDirectory>
|
2016-03-21 17:03:13 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|