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

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 

{noformat}
mvn clean install -DskipTests
{noformat}

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: 
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ

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 maven-delete-ant.sh and added instructions for executing that 
during the merge or commit process.

bq. Run the Thrift code generator.
{noformat}
mvn clean install -Pthriftif -Phadoop-1 -DskipTests -Dthrift.home=/usr/local
{noformat}
Now documented here: 
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ

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:

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

Now documented here: 
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ

bq. Run a single TestCliDriver qfile test.

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

Now documented here: 
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ


> Merge maven branch into trunk
> -----------------------------
>
>                 Key: HIVE-5610
>                 URL: https://issues.apache.org/jira/browse/HIVE-5610
>             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 maven-rollforward.sh:
> {noformat}
>   mv $source $target
> {noformat}
> to
> {noformat}
>   svn mv $source $target
> {noformat}
> 4) Execute maven-rollfward.sh and commit result 
> 5) Modify the following line in maven-delete-ant.sh:
> {noformat}
>   rm -rf "$@"
> {noformat}
> to
> {noformat}
>   svn rm "$@"
> {noformat}
> 5) Execute maven-delete-ant.sh and commit result
> 6) Update trunk-mr1.properties and trunk-mr2.properties 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
(v6.1#6144)

Reply via email to