hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Crawford (JIRA)" <>
Subject [jira] [Commented] (HIVE-4278) HCat needs to get current Hive jars instead of pulling them from maven repo
Date Wed, 03 Apr 2013 23:59:16 GMT


Travis Crawford commented on HIVE-4278:

Here are more details about the proposal - this is excerpted from the HCatalog build.

In [hcatalog/build-support/ant/build-common.xml|]
we see how HCatalog creates a jar. In addition to creating the jar we [install:]
into the local maven repo.

  <target name="jar" depends="mvn-dependencies,compile,compile-resource">
    <echo message="${}"/>
    <jar jarfile="${build.dir}/${}" basedir="${build.classes}">
      <metainf dir="${}" includes="**/LICENSE.txt,**/NOTICE.txt"/>
    <artifact:install file="${build.dir}/${}-${hcatalog.version}.jar">
      <artifact:pom file="${pom.file}"/>
      <artifact:localRepository path="${mvn.local.repo}"/>

In Hive's existing [build-common.xml|]
we see how things currently work. Notice how we publish to the "local" Ivy repo.

  <target name="jar" depends="compile">
    <echo message="Project: ${}" />
        <!-- Not putting these in their own manifest section, since that inserts
        a new-line, which breaks the reading of the attributes. -->
        <attribute name="Implementation-Title" value="Hive"/>
        <attribute name="Implementation-Version" value="${version}"/>
        <attribute name="Implementation-Vendor" value="Apache"/>
      <metainf dir="${hive.root}" includes="LICENSE,NOTICE"/>
    <ivy:publish settingsRef="${}.ivy.settings"
                 resolver="local" pubrevision="${version}" overwrite="true"

We see they're quite similar, and we should definitely look to merge the build files so its
maintainable and feels less "bolted on" over time. This would be a pretty targeted change,
simply changing where we publish SNAPSHOT jars, and a resolver change to always check the
local maven repo for changing artifacts.

Its worth noting the Hive build already uses maven ant tasks when publishing artifacts to
a remote maven repo. See {{maven-publish-artifact}} in [build.xml|]
for details. There would likely be some build file refactoring, but overall not too major
a change.
> HCat needs to get current Hive jars instead of pulling them from maven repo
> ---------------------------------------------------------------------------
>                 Key: HIVE-4278
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Build Infrastructure, HCatalog
>    Affects Versions: 0.11.0
>            Reporter: Alan Gates
>            Priority: Blocker
>             Fix For: 0.11.0
> The HCatalog build is currently pulling Hive jars from the maven repo instead of using
the ones built as part of the current build.  Now that it is part of Hive it should use the
jars being built instead of pulling them from maven.

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:

View raw message