| <!-- |
| 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"> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.apache.ambari.contrib.views</groupId> |
| <artifactId>hueambarimigration</artifactId> |
| <version>1.0.0.0-SNAPSHOT</version> |
| <name>hueambarimigration</name> |
| |
| <parent> |
| <groupId>org.apache.ambari.contrib.views</groupId> |
| <artifactId>ambari-contrib-views</artifactId> |
| <version>2.0.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <properties> |
| <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>2.6.2</version> |
| </dependency> |
| <dependency> |
| <groupId>com.jayway.jsonpath</groupId> |
| <artifactId>json-path</artifactId> |
| <version>2.0.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.easymock</groupId> |
| <artifactId>easymock</artifactId> |
| <version>3.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ambari</groupId> |
| <artifactId>ambari-views</artifactId> |
| <version>[1.7.0.0,)</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <version>2.3.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.xerial</groupId> |
| <artifactId>sqlite-jdbc</artifactId> |
| <version>3.7.2</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>3.8.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <version>8.4-701.jdbc3</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.json</groupId> |
| <artifactId>json</artifactId> |
| <version>20151123</version> |
| </dependency> |
| <dependency> |
| <groupId>jdom</groupId> |
| <artifactId>jdom</artifactId> |
| <version>1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-configuration</groupId> |
| <artifactId>commons-configuration</artifactId> |
| <version>1.6</version> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.17</version> |
| </dependency> |
| <dependency> |
| <groupId>c3p0</groupId> |
| <artifactId>c3p0</artifactId> |
| <version>0.9.1.2</version> |
| </dependency> |
| <dependency> |
| <groupId>com.jayway.jsonpath</groupId> |
| <artifactId>json-path</artifactId> |
| <version>2.0.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.inject</groupId> |
| <artifactId>guice</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey.contribs</groupId> |
| <artifactId>jersey-multipart</artifactId> |
| <version>1.18</version> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-client</artifactId> |
| <version>1.8</version> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| <version>1.18.1</version> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| <version>1.9</version> |
| </dependency> |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| |
| |
| <plugin> |
| <groupId>com.github.eirslett</groupId> |
| <artifactId>frontend-maven-plugin</artifactId> |
| <version>1.4</version> |
| <configuration> |
| <nodeVersion>v4.5.0</nodeVersion> |
| <yarnVersion>v0.23.2</yarnVersion> |
| <workingDirectory>${project.basedir}/src/main/resources/ui/hueambarimigration-view/</workingDirectory> |
| <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| <!-- setting npm_config_tmp environment variable is a workaround for |
| https://github.com/Medium/phantomjs/issues/673 --> |
| <environmentVariables> |
| <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp> |
| </environmentVariables> |
| </configuration> |
| <executions> |
| <execution> |
| <id>install node and yarn</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>install-node-and-yarn</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>yarn install --pure-lockfile</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>yarn</goal> |
| </goals> |
| <configuration> |
| <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm |
| </arguments> |
| <arguments>--ignore-engines</arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>exec-maven-plugin</artifactId> |
| <groupId>org.codehaus.mojo</groupId> |
| <version>1.3.2</version> |
| <executions> |
| <execution> |
| <id>Hueambarimigration-build</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <workingDirectory>${basedir}/src/main/resources/ui/hueambarimigration-view</workingDirectory> |
| <executable>node/node</executable> |
| <arguments> |
| <argument>node_modules/.bin/ember</argument> |
| <argument>build</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.outputDirectory}/WEB-INF/lib</outputDirectory> |
| <includeScope>runtime</includeScope> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-artifact</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>${project.artifactId}</artifactId> |
| <version>${project.version}</version> |
| <type>${project.packaging}</type> |
| </artifactItem> |
| </artifactItems> |
| <outputDirectory>${views.jars.dir.rel}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| |
| </plugins> |
| <resources> |
| |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>META-INF/**/*</include> |
| <include>view.xml</include> |
| <include>view.log4j.properties</include> |
| </includes> |
| </resource> |
| |
| <resource> |
| <directory>src/main/resources/ui/hueambarimigration-view/dist</directory> |
| <filtering>false</filtering> |
| </resource> |
| |
| <resource> |
| <targetPath>WEB-INF/lib</targetPath> |
| <filtering>false</filtering> |
| <directory>target/lib</directory> |
| </resource> |
| </resources> |
| </build> |
| |
| </project> |