Browse Source

AMBARI-23903: Add jdeb support (#1642)

This patch add jdeb (debian) package creation support for the following
packages.
-ambari-funtest
-ambari-infra
-ambari-logsearch
-ambari-metrics-grafana
-ambari-metrics-host-aggregator

Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
Naresh Bhat 7 years ago
parent
commit
dfaaf33a9e

+ 21 - 0
ambari-funtest/pom.xml

@@ -24,6 +24,27 @@
   <description>Ambari Functional Tests</description>
   <build>
     <plugins>
+       <plugin>
+         <groupId>org.vafer</groupId>
+         <artifactId>jdeb</artifactId>
+         <version>1.0.1</version>
+         <executions>
+           <execution>
+             <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
+             <id>stub-execution</id>
+             <phase>none</phase>
+             <goals>
+               <goal>jdeb</goal>
+             </goals>
+           </execution>
+         </executions>
+         <configuration>
+           <skip>true</skip>
+           <attach>false</attach>
+           <submodules>false</submodules>
+           <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
+         </configuration>
+      </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <configuration>

+ 21 - 0
ambari-infra/pom.xml

@@ -99,6 +99,27 @@
   <build>
     <pluginManagement>
       <plugins>
+        <plugin>
+          <groupId>org.vafer</groupId>
+          <artifactId>jdeb</artifactId>
+          <version>1.4</version>
+          <executions>
+            <execution>
+              <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
+              <id>stub-execution</id>
+              <phase>none</phase>
+              <goals>
+                <goal>jdeb</goal>
+              </goals>
+            </execution>
+          </executions>
+          <configuration>
+            <skip>true</skip>
+            <attach>false</attach>
+            <submodules>false</submodules>
+            <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
+          </configuration>
+       </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-enforcer-plugin</artifactId>

+ 21 - 0
ambari-logsearch/pom.xml

@@ -131,6 +131,27 @@
       </plugins>
     </pluginManagement>
     <plugins>
+      <plugin>
+        <groupId>org.vafer</groupId>
+        <artifactId>jdeb</artifactId>
+        <version>1.4</version>
+        <executions>
+          <execution>
+            <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
+            <id>stub-execution</id>
+            <phase>none</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <skip>true</skip>
+          <attach>false</attach>
+          <submodules>false</submodules>
+          <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
+        </configuration>
+      </plugin>
       <plugin>
         <inherited>false</inherited>
         <artifactId>maven-assembly-plugin</artifactId>

+ 21 - 0
ambari-metrics/ambari-metrics-grafana/pom.xml

@@ -33,6 +33,27 @@
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.vafer</groupId>
+        <artifactId>jdeb</artifactId>
+        <version>1.0.1</version>
+        <executions>
+          <execution>
+            <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
+            <id>stub-execution</id>
+            <phase>none</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <skip>true</skip>
+          <attach>false</attach>
+          <submodules>false</submodules>
+          <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
+        </configuration>
+      </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>build-helper-maven-plugin</artifactId>

+ 21 - 0
ambari-metrics/ambari-metrics-host-aggregator/pom.xml

@@ -115,6 +115,27 @@
 
     <build>
         <plugins>
+        <plugin>
+          <groupId>org.vafer</groupId>
+          <artifactId>jdeb</artifactId>
+          <version>1.0.1</version>
+          <executions>
+            <execution>
+              <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
+              <id>stub-execution</id>
+              <phase>none</phase>
+              <goals>
+                <goal>jdeb</goal>
+              </goals>
+            </execution>
+          </executions>
+          <configuration>
+            <skip>true</skip>
+            <attach>false</attach>
+            <submodules>false</submodules>
+            <controlDir>${project.basedir}/../src/main/package/deb/control</controlDir>
+          </configuration>
+        </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-shade-plugin</artifactId>