You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mp...@apache.org on 2014/12/24 00:07:53 UTC

ambari git commit: AMBARI-8869. Include AMS debian packages in Ambari build. (mpapirkovskyy)

Repository: ambari
Updated Branches:
  refs/heads/trunk 102b47736 -> 1ea1577c9


AMBARI-8869. Include AMS debian packages in Ambari build. (mpapirkovskyy)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1ea1577c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1ea1577c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1ea1577c

Branch: refs/heads/trunk
Commit: 1ea1577c9bfbcde45b6ddd315e4032950efb7342
Parents: 102b477
Author: Myroslav Papirkovskyy <mp...@hortonworks.com>
Authored: Fri Dec 19 06:40:42 2014 +0200
Committer: Myroslav Papirkovskyy <mp...@hortonworks.com>
Committed: Fri Dec 19 06:41:20 2014 +0200

----------------------------------------------------------------------
 ambari-metrics/ambari-metrics-assembly/pom.xml | 35 ++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1ea1577c/ambari-metrics/ambari-metrics-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-metrics/ambari-metrics-assembly/pom.xml b/ambari-metrics/ambari-metrics-assembly/pom.xml
index 40fef0e..9eda761 100644
--- a/ambari-metrics/ambari-metrics-assembly/pom.xml
+++ b/ambari-metrics/ambari-metrics-assembly/pom.xml
@@ -46,6 +46,39 @@
   <build>
     <plugins>
       <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.7</version>
+
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/deb/control</outputDirectory>
+              <resources>
+                <resource>
+                  <directory>${project.basedir}/src/main/package/deb/control</directory>
+                  <excludes>
+                    <exclude>postinst</exclude>
+                  </excludes>
+                  <filtering>false</filtering>
+                </resource>
+                <resource>
+                  <directory>${project.basedir}/src/main/package/deb/control</directory>
+                  <includes>
+                    <include>postinst</include>
+                  </includes>
+                  <filtering>true</filtering>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <executions>
           <execution>
@@ -489,7 +522,7 @@
               </execution>
             </executions>
             <configuration>
-              <controlDir>${basedir}/src/main/package/deb/control</controlDir>
+              <controlDir>${project.build.directory}/deb/control</controlDir>
               <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
               <dataSet>
                 <data>