hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <>
Subject [jira] [Commented] (HIVE-5610) Merge maven branch into trunk
Date Mon, 28 Oct 2013 18:56:40 GMT


Brock Noland commented on HIVE-5610:

bq. When I remove the ~/.m2 directory 'mvn compile' fails with an unsatisfied dependency error.

Before merging trunk into maven I verified with no .m2 directory that 

mvn clean install -DskipTests

works. I had never tried "compile" and haven't used that in a maven workflow. Generally I
believe "install", "test" and "package" are more useful goals. I documented the prefered maven
goals here:

bq. There are a bunch of JAR artifacts with names that aren't prepended with "hive-*"

These aren't public artifacts but we should fix and I will do in HIVE-5675.

bq. It would be nice if this patch removed the old Ant and Ivy files, eclipse-files directory,
and anything else that it will make obsolete.

I added a script and added instructions for executing that during the
merge or commit process.

bq. Run the Thrift code generator.
mvn clean install -Pthriftif -Phadoop-1 -DskipTests -Dthrift.home=/usr/local
Now documented here:

bq. Compile the Thrift C++ bindings in the ODBC directory.

That doesn't work for me with ant, but nevertheless I get the same error with maven using
this command:

cd odbc
mvn compile -Podbc -Dthrift.home=/usr/local -Dboost.home=/usr/local

Now documented here:

bq. Run a single TestCliDriver qfile test.

cd itests/qtest
mvn test -Dtest=TestCliDriver -Dqfile=alter1.q -Dtest.output.overwrite=true

Now documented here:

> Merge maven branch into trunk
> -----------------------------
>                 Key: HIVE-5610
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Brock Noland
>            Assignee: Brock Noland
> With HIVE-5566 nearing completion we will be nearly ready to merge the maven branch to
trunk. The following tasks will be done post-merge:
> * HIVE-5611 - Add assembly (i.e.) tar creation to pom
> The merge process will be as follows:
> 1) svn merge ^/hive/branches/maven
> 2) Commit result
> 3) Modify the following line in
> {noformat}
>   mv $source $target
> {noformat}
> to
> {noformat}
>   svn mv $source $target
> {noformat}
> 4) Execute and commit result 
> 5) Modify the following line in
> {noformat}
>   rm -rf "$@"
> {noformat}
> to
> {noformat}
>   svn rm "$@"
> {noformat}
> 5) Execute and commit result
> 6) Update and on the ptesting host, adding
the following:
> {noformat}
> mavenEnvOpts = -Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128 
> testCasePropertyName = test
> buildTool = maven
> unitTests.directories = ./
> {noformat}
> Notes:
> * To build everything you must:
> {noformat}
> $ mvn clean install -DskipTests
> $ cd itests
> $ mvn clean install -DskipTests
> {noformat}
> because itests (any tests that has cyclical dependencies or requires that the packages
be built) is not part of the root reactor build.

This message was sent by Atlassian JIRA

View raw message