|
@@ -13,8 +13,8 @@
|
|
|
limitations under the License. See accompanying LICENSE file.
|
|
|
-->
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<parent>
|
|
@@ -168,10 +168,13 @@
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<executable>${shell-executable}</executable>
|
|
|
- <workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
+ <workingDirectory>${project.build.directory}
|
|
|
+ </workingDirectory>
|
|
|
<requiresOnline>false</requiresOnline>
|
|
|
<arguments>
|
|
|
- <argument>${basedir}/../dev-support/bin/dist-layout-stitching</argument>
|
|
|
+ <argument>
|
|
|
+ ${basedir}/../dev-support/bin/dist-layout-stitching
|
|
|
+ </argument>
|
|
|
<argument>${project.version}</argument>
|
|
|
<argument>${project.build.directory}</argument>
|
|
|
<argument>${hdds.version}</argument>
|
|
@@ -182,14 +185,16 @@
|
|
|
<id>toolshooks</id>
|
|
|
<phase>prepare-package</phase>
|
|
|
<goals>
|
|
|
- <goal>exec</goal>
|
|
|
+ <goal>exec</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
<executable>${shell-executable}</executable>
|
|
|
<workingDirectory>${basedir}</workingDirectory>
|
|
|
<requiresOnline>false</requiresOnline>
|
|
|
<arguments>
|
|
|
- <argument>${basedir}/../dev-support/bin/dist-tools-hooks-maker</argument>
|
|
|
+ <argument>
|
|
|
+ ${basedir}/../dev-support/bin/dist-tools-hooks-maker
|
|
|
+ </argument>
|
|
|
<argument>${project.version}</argument>
|
|
|
<argument>${project.build.directory}</argument>
|
|
|
<argument>${basedir}/../hadoop-tools</argument>
|
|
@@ -203,14 +208,16 @@
|
|
|
<goal>exec</goal>
|
|
|
</goals>
|
|
|
<configuration>
|
|
|
- <executable>${shell-executable}</executable>
|
|
|
- <workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
- <requiresOnline>false</requiresOnline>
|
|
|
- <arguments>
|
|
|
- <argument>${basedir}/../dev-support/bin/dist-tar-stitching</argument>
|
|
|
- <argument>${project.version}</argument>
|
|
|
- <argument>${project.build.directory}</argument>
|
|
|
- </arguments>
|
|
|
+ <executable>${shell-executable}</executable>
|
|
|
+ <workingDirectory>${project.build.directory}
|
|
|
+ </workingDirectory>
|
|
|
+ <requiresOnline>false</requiresOnline>
|
|
|
+ <arguments>
|
|
|
+ <argument>${basedir}/../dev-support/bin/dist-tar-stitching
|
|
|
+ </argument>
|
|
|
+ <argument>${project.version}</argument>
|
|
|
+ <argument>${project.build.directory}</argument>
|
|
|
+ </arguments>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
@@ -218,14 +225,12 @@
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</profile>
|
|
|
-
|
|
|
<profile>
|
|
|
<id>hdds</id>
|
|
|
<activation>
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
</activation>
|
|
|
<dependencies>
|
|
|
-
|
|
|
<dependency>
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
<artifactId>hadoop-ozone-ozone-manager</artifactId>
|
|
@@ -261,41 +266,86 @@
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-docker-compose</id>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <phase>prepare-package</phase>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>${project.build.directory}/compose</outputDirectory>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/compose</directory>
|
|
|
- <filtering>true</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>copy-dockerfile</id>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <phase>prepare-package</phase>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/docker</directory>
|
|
|
- <filtering>true</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-docker-compose</id>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}/compose
|
|
|
+ </outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/compose</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>copy-dockerfile</id>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/docker</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>exec-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>dist-ozone</id>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>exec</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <executable>${shell-executable}</executable>
|
|
|
+ <workingDirectory>${project.build.directory}
|
|
|
+ </workingDirectory>
|
|
|
+ <arguments>
|
|
|
+ <argument>
|
|
|
+ ${basedir}/../dev-support/bin/ozone-dist-layout-stitching
|
|
|
+ </argument>
|
|
|
+ <argument>${project.version}</argument>
|
|
|
+ <argument>${project.build.directory}</argument>
|
|
|
+ <argument>${hdds.version}</argument>
|
|
|
+ </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/ozone-dist-tar-stitching
|
|
|
+ </argument>
|
|
|
+ <argument>${hdds.version}</argument>
|
|
|
+ <argument>${project.build.directory}</argument>
|
|
|
+ </arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</profile>
|