Skip to content

Commit

Permalink
OZ-627: Add step to generate and copy ozone distro info file
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Sep 2, 2024
1 parent d3594a7 commit 977bee3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions maven-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,28 @@
</resources>
</configuration>
</execution>

<execution>
<!-- Copy Ozone Info to Final Distro -->
<id>Copy Ozone Info to Final Distro</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/distro</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes>
<include>ozone-info.txt</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<overwrite>true</overwrite>
</configuration>
</execution>
</executions>
</plugin>

Expand Down Expand Up @@ -323,6 +345,22 @@
</target>
</configuration>
</execution>

<execution>
<!-- Generate Ozone Distro Info -->
<id>Generate Ozone Distro Info</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo file="${project.build.directory}/ozone-info.txt">
ozone.name=${project.artifactId}
</echo>
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
Expand Down

0 comments on commit 977bee3

Please sign in to comment.