| <!-- |
| 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" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <parent> |
| <groupId>org.apache.ambari.contrib.views</groupId> |
| <artifactId>ambari-contrib-views</artifactId> |
| <version>2.0.2.0</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.apache.ambari.contrib.views</groupId> |
| <artifactId>jobs</artifactId> |
| <packaging>jar</packaging> |
| <name>Jobs</name> |
| <version>2.0.2.0</version> |
| <description>Jobs View</description> |
| <properties> |
| <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.8</version> |
| <executions> |
| <execution> |
| <id>parse-version</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>parse-version</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>regex-property</id> |
| <goals> |
| <goal>regex-property</goal> |
| </goals> |
| <configuration> |
| <name>ambariVersion</name> |
| <value>${project.version}</value> |
| <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex> |
| <replacement>$1.$2.$3</replacement> |
| <failIfNoMatch>false</failIfNoMatch> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| <version>0.0.14</version> |
| <configuration> |
| <nodeVersion>v0.10.26</nodeVersion> |
| <npmVersion>1.4.3</npmVersion> |
| <workingDirectory>src/main/resources/ui</workingDirectory> |
| </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 --unsafe-perm</arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <executions> |
| <execution> |
| <id>Bower install</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${basedir}/src/main/resources/ui</workingDirectory> |
| <executable>${basedir}/src/main/resources/ui/node/${executable.node}</executable> |
| <arguments> |
| <argument>node_modules/bower/bin/bower</argument> |
| <argument>install</argument> |
| <argument>--allow-root</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>grunt build</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${basedir}/src/main/resources/ui</workingDirectory> |
| <executable>${basedir}/src/main/resources/ui/node/${executable.node}</executable> |
| <arguments> |
| <argument>node_modules/grunt-cli/bin/grunt</argument> |
| <argument>build</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.vafer</groupId> |
| <artifactId>jdeb</artifactId> |
| <version>1.0.1</version> |
| <executions> |
| <execution> |
| <phase>none</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <skip>true</skip> |
| <submodules>false</submodules> |
| </configuration> |
| </plugin> |
| </plugins> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>WEB-INF/web.xml</include> |
| <include>META-INF/**/*</include> |
| <include>view.xml</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>src/main/resources/ui/dist</directory> |
| <filtering>false</filtering> |
| </resource> |
| </resources> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.ambari</groupId> |
| <artifactId>ambari-views</artifactId> |
| <version>${ambari.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.inject</groupId> |
| <artifactId>guice</artifactId> |
| </dependency> |
| |
| </dependencies> |
| <profiles> |
| <profile> |
| <id>windows</id> |
| <activation> |
| <os> |
| <family>win</family> |
| </os> |
| </activation> |
| <properties> |
| <envClassifier>win</envClassifier> |
| <executable.node>node.exe</executable.node> |
| </properties> |
| </profile> |
| <profile> |
| <id>linux</id> |
| <activation> |
| <os> |
| <family>unix</family> |
| </os> |
| </activation> |
| <properties> |
| <envClassifier>linux</envClassifier> |
| <executable.node>node</executable.node> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |