Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions hbase-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
<name>Apache HBase - Common</name>
<description>Common functionality for HBase</description>

<properties>
<!--
During build, one can override this property if they want to influence the
version stamped in the generated Version.java and hbase-default.xml. This has
implications for various version-related guardrails so care should be taken.
-->
<versioninfo.version>${project.version}</versioninfo.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
Expand Down Expand Up @@ -211,7 +220,7 @@
<phase>process-resources</phase>
<configuration>
<target>
<replace file="${project.build.outputDirectory}/hbase-default.xml" token="@@@VERSION@@@" value="${project.version}"/>
<replace file="${project.build.outputDirectory}/hbase-default.xml" token="@@@VERSION@@@" value="${versioninfo.version}"/>
</target>
</configuration>
</execution>
Expand All @@ -227,7 +236,7 @@
<property location="${project.build.directory}/generated-sources" name="generated.sources"/>

<exec executable="bash" failonerror="true">
<arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}"/>
<arg line="${basedir}/src/saveVersion.sh ${versioninfo.version} ${generated.sources}"/>
</exec>
</target>
</configuration>
Expand Down