Selaa lähdekoodia

HDDS-1629. Tar file creation can be optional for non-dist builds. Contributed by Elek, Marton. (#887)

Elek, Márton 6 vuotta sitten
vanhempi
commit
e140a45046
1 muutettua tiedostoa jossa 31 lisäystä ja 18 poistoa
  1. 31 18
      hadoop-ozone/dist/pom.xml

+ 31 - 18
hadoop-ozone/dist/pom.xml

@@ -225,24 +225,6 @@
               </arguments>
             </configuration>
           </execution>
-          <execution>
-            <id>tar-ozone</id>
-            <phase>package</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${shell-executable}</executable>
-              <workingDirectory>${project.build.directory}
-              </workingDirectory>
-              <arguments>
-                <argument>${basedir}/dev-support/bin/dist-tar-stitching
-                </argument>
-                <argument>${hdds.version}</argument>
-                <argument>${project.build.directory}</argument>
-              </arguments>
-            </configuration>
-          </execution>
         </executions>
       </plugin>
       <!-- there is no problem to have multiple versions of the jar files from
@@ -374,6 +356,37 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>dist</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>exec-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>tar-ozone</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+                <configuration>
+                  <executable>${shell-executable}</executable>
+                  <workingDirectory>${project.build.directory}
+                  </workingDirectory>
+                  <arguments>
+                    <argument>${basedir}/dev-support/bin/dist-tar-stitching
+                    </argument>
+                    <argument>${hdds.version}</argument>
+                    <argument>${project.build.directory}</argument>
+                  </arguments>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
 </project>