| <!-- |
| 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>oozie-ui</artifactId> |
| <version>0.0.0.1-SNAPSHOT</version> |
| <packaging>war</packaging> |
| <name>Oozie UI</name> |
| <parent> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-main</artifactId> |
| <version>4.2.0</version> |
| </parent> |
| <dependencies> |
| </dependencies> |
| <properties> |
| <webapp.port>4300</webapp.port> |
| <proxy.local.port>11002</proxy.local.port> |
| <oozie.remote.host>localhost</oozie.remote.host> |
| <oozie.remote.port>11000</oozie.remote.port> |
| <checkstyle.skip>true</checkstyle.skip> |
| </properties> |
| <build> |
| <plugins> |
| <!-- Building frontend --> |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| <version>1.3</version> |
| <configuration> |
| <nodeVersion>v5.0.0</nodeVersion> |
| <npmVersion>3.5.3</npmVersion> |
| <workingDirectory>${project.basedir}</workingDirectory> |
| <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| </configuration> |
| <executions> |
| <execution> |
| <id>install node and npm</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>install-node-and-npm</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>npm install</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>npm</goal> |
| </goals> |
| <configuration> |
| <arguments>install</arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>bower install</id> |
| <goals> |
| <goal>bower</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <arguments>install</arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <version>1.3.2</version> |
| <executions> |
| <execution> |
| <id>build</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${project.basedir}</workingDirectory> |
| <executable>node/node</executable> |
| <arguments> |
| <argument>node_modules/.bin/ember</argument> |
| <argument>build</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.1</version> |
| <configuration> |
| <source>1.7</source> |
| <target>1.7</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <webXml>${project.basedir}/oozie-ambari-view/src/main/resources/WEB-INF/web.xml</webXml> |
| <webResources> |
| <resource> |
| <directory>${project.basedir}/dist</directory> |
| <targetPath>/</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>9.3.7.v20160115</version> |
| <configuration> |
| <httpConnector> |
| <port>${webapp.port}</port> |
| </httpConnector> |
| <webAppSourceDirectory>${project.basedir}/target/${project.artifactId}-${project.version}</webAppSourceDirectory> |
| <webApp> |
| <contextPath>/</contextPath> |
| </webApp> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>server</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>ember-server</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <version>1.3.2</version> |
| <executions> |
| <execution> |
| <id>server</id> |
| <phase>test</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${project.basedir}</workingDirectory> |
| <executable>node/node</executable> |
| <arguments> |
| <argument>node_modules/.bin/ember</argument> |
| <argument>server</argument> |
| <argument>--port ${webapp.port}</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>proxy</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>proxy</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <version>1.3.2</version> |
| <executions> |
| <execution> |
| <id>proxy</id> |
| <phase>test</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${project.basedir}</workingDirectory> |
| <executable>node/node</executable> |
| <arguments> |
| <argument>proxy.js</argument> |
| <argument>${proxy.local.port}</argument> |
| <argument>${oozie.remote.host}</argument> |
| <argument>${oozie.remote.port}</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |