[ 
https://issues.apache.org/jira/browse/HCATALOG-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556617#comment-13556617
 ] 

Travis Crawford commented on HCATALOG-598:
------------------------------------------

After running the above script, in the {{build}} directory we see:

Source release artifact and md5 file:

{code}
fynn-2:hcatalog travis$ ll build
total 1512
drwxr-xr-x  25 travis  staff     850 Jan 17 13:23 hcatalog-src-0.0.1-travis
-rw-r--r--   1 travis  staff  768879 Jan 17 13:22 
hcatalog-src-0.0.1-travis.tar.gz
-rw-r--r--   1 travis  staff      33 Jan 17 13:22 
hcatalog-src-0.0.1-travis.tar.gz.MD5
{code}

Pre-built release artifact and md5 file:

{code}
fynn-2:hcatalog travis$ ll build/hcatalog-src-0.0.1-travis/build
total 20800
drwxr-xr-x  3 travis  staff      102 Jan 17 13:24 checkstyle
drwxr-xr-x  3 travis  staff      102 Jan 17 13:23 docs
drwxr-xr-x  7 travis  staff      238 Jan 17 13:24 hcatalog-0.0.1-travis
-rw-r--r--  1 travis  staff  9319307 Jan 17 13:24 hcatalog-0.0.1-travis.tar.gz
-rw-r--r--  1 travis  staff       33 Jan 17 13:24 
hcatalog-0.0.1-travis.tar.gz.MD5
-rw-r--r--  1 travis  staff     2801 Jan 17 13:24 javadoc.log
-rw-r--r--  1 travis  staff  1316000 Apr 13  2011 maven-ant-tasks-2.1.3.jar
{code}

Pre-build artifact jars look good (version numbers & location):

{code}
fynn-2:hcatalog travis$ find build/hcatalog-src-0.0.1-travis/build | grep 
'.*.jar' | grep -v 'share/webhcat/svr/lib'
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/hcatalog/hcatalog-core-0.0.1-travis.jar
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/hcatalog/hcatalog-pig-adapter-0.0.1-travis.jar
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/hcatalog/hcatalog-server-extensions-0.0.1-travis.jar
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/hcatalog/storage-handlers/hbase/lib/hbase-storage-handler-0.1.0.jar
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/webhcat/java-client/webhcat-java-client-0.0.1-travis.jar
build/hcatalog-src-0.0.1-travis/build/hcatalog-0.0.1-travis/share/webhcat/svr/webhcat-0.0.1-travis.jar
build/hcatalog-src-0.0.1-travis/build/maven-ant-tasks-2.1.3.jar
fynn-2:hcatalog travis$ 
{code}

The remainder of the build steps (such as signing) will be manual as part of 
the release process, but the vast majority of building the release is scripted.
                
> 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

Reply via email to