|
@@ -18,10 +18,10 @@
|
|
|
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.views</groupId>
|
|
|
- <artifactId>ambari-views</artifactId>
|
|
|
+ <artifactId>ambari-contrib-views</artifactId>
|
|
|
<packaging>pom</packaging>
|
|
|
<version>0.1.0-SNAPSHOT</version>
|
|
|
- <name>Ambari Views</name>
|
|
|
+ <name>Ambari Contrib Views</name>
|
|
|
<modules>
|
|
|
<module>files</module>
|
|
|
<module>pig</module>
|
|
@@ -62,35 +62,56 @@
|
|
|
</excludes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-assembly-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>attached</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <descriptorRefs>
|
|
|
- <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
- </descriptorRefs>
|
|
|
- <outputDirectory>${basedir}/target</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.1</version>
|
|
|
- <configuration>
|
|
|
- <source>1.6</source>
|
|
|
- <target>1.6</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
</plugins>
|
|
|
-
|
|
|
</build>
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>default</id>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <!-- Copy only the contrib views that we want included for default deployment -->
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <version>2.6</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-amabri-views</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <!-- View archives in target/views will be deployed with an Ambari server install -->
|
|
|
+ <outputDirectory>${basedir}/target/views</outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <!-- PIG view -->
|
|
|
+ <resource>
|
|
|
+ <directory>${basedir}/pig/target/</directory>
|
|
|
+ <includes>
|
|
|
+ <include>*-dependencies.jar</include>
|
|
|
+ </includes>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ <!-- FILES view -->
|
|
|
+ <resource>
|
|
|
+ <directory>${basedir}/files/target/</directory>
|
|
|
+ <includes>
|
|
|
+ <include>*-dependencies.jar</include>
|
|
|
+ </includes>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|