[
https://issues.apache.org/jira/browse/HCATALOG-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Travis Crawford updated HCATALOG-598:
-------------------------------------
Attachment: HCATALOG-598_fix_cmdline_version.1.patch
Example usage:
{code}
FORREST_HOME=/usr/local/apache-forrest-0.9 \
HCAT_RELEASE_VERSION='0.0.1-travis' \
./build-support/scripts/release.sh
{code}
I'm not entirely pleased about modifying the local working copy before
building, but this is the lowest-impact/straightforward way I can think of
doing it, and it does not generate commits.
> fix setting hcatalog version number via the command-line
> --------------------------------------------------------
>
> Key: HCATALOG-598
> URL: https://issues.apache.org/jira/browse/HCATALOG-598
> Project: HCatalog
> Issue Type: Bug
> Components: build
> Reporter: Travis Crawford
> Assignee: Travis Crawford
> Fix For: 0.5
>
> Attachments: HCATALOG-598_fix_cmdline_version.1.patch
>
>
> As described in the [HCatalog release
> process|https://cwiki.apache.org/confluence/display/HCATALOG/HowToRelease]
> the project version number is always checked in with a {{-SNAPSHOT}} suffix.
> When producing release artifacts the release version is specified on the
> command-line. This seems reasonable as it prevents people from accidentally
> producing a snapshot jar labeled as a release.
> HCatalog switched to using maven for resolving dependencies and publishing
> artifacts, and during this change setting the version via the command-line
> broke. Unfortunately maven does not support setting the version via the
> command-line (see http://jira.codehaus.org/browse/MNG-624, which has ~300
> votes and ~200 watchers at this time). We need a mechanism to easily produce
> release artifacts and set the version on the command-line.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira