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

This commit is contained in:
Elek, Márton 2019-06-04 08:20:45 +02:00 committed by Anu Engineer
parent 1fc359fc10
commit e140a45046
1 changed files with 31 additions and 18 deletions

View File

@ -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>