hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerrit Jansen van Vuuren (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1095) Hive in Maven
Date Mon, 01 Feb 2010 13:49:50 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828108#action_12828108
] 

Gerrit Jansen van Vuuren commented on HIVE-1095:
------------------------------------------------

OK, I've given some thought on this and propose the following:

Have a task called make-pom in the build-common.xml that uses the ivy makepom ant task to
auto generate a pom for each project:

The ant task is:

 <target name="make-pom">
    <ivy:makepom ivyfile="${basedir}/ivy.xml" pomfile="${basedir}/pom.xml">
     <mapping conf="default" scope="compile"/>
     <mapping conf="runtime" scope="runtime"/>
    </ivy:makepom>
  </target>


The generated pom for CLI is:
<?xml version="1.0" encoding="UTF-8"?>
<!--
   Apache Maven 2 POM generated by Apache Ivy
   http://ant.apache.org/ivy/
   Apache Ivy version: 2.1.0 20090925235825
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.hadoop.hive</groupId>
  <artifactId>cli</artifactId>
  <packaging>jar</packaging>
  <version>0.4.1</version>
  <dependencies>
    <dependency>
      <groupId>hadoop</groupId>
      <artifactId>core</artifactId>
      <version>0.19.0</version>
      <optional>true</optional>
    </dependency>
  </dependencies>
</project>


>From here I can make an ant task that will load the JAR and POM for all the hive subprojects
into a maven2 repo.

The next step would be to setup a hive maven repo.
Basically how this works is:
 Hive has its own repo and makes ONLY releases to this.
 Then send a request (I can do that) to the maven repos to be synched up with then.
  And voila, you'll have all hive releases that are released to the hive maven repo available
on the main maven repos.

Does your team have access to a server to do this setup? 
Below I write a mini how to for artifactory:
 Easiest is as standalone:
 -> Download the artifactory zip at http://sourceforge.net/projects/artifactory/ 
 -> run bin/artifactory.sh 
 As a WAR:
 -> Download the zip file
 -> copy to webapps/artifactory.war to tomcat or jetty.

Setup is done via the artifactory admin window:
 defaults are:  username: admin password: password (must be changed  :) )





> Hive in Maven
> -------------
>
>                 Key: HIVE-1095
>                 URL: https://issues.apache.org/jira/browse/HIVE-1095
>             Project: Hadoop Hive
>          Issue Type: Task
>          Components: Build Infrastructure
>            Reporter: Gerrit Jansen van Vuuren
>            Priority: Minor
>
> Getting hive into maven main repositories
> Documentation on how to do this is on:
> http://maven.apache.org/guides/mini/guide-central-repository-upload.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message