Stamatis Zampetakis created HIVE-25995:
------------------------------------------

             Summary: Build from source distribution archive fails
                 Key: HIVE-25995
                 URL: https://issues.apache.org/jira/browse/HIVE-25995
             Project: Hive
          Issue Type: Bug
          Components: Build Infrastructure
            Reporter: Stamatis Zampetakis


The source distribution archive, apache-hive-4.0.0-SNAPSHOT-src.tar.gz, can be 
produced by running:
{code:bash}
mvn clean package -DskipTests -Pdist
{code}
The file is generated under:
{noformat}
packaging/target/apache-hive-4.0.0-SNAPSHOT-src.tar.gz
{noformat}
The source distribution archive/package 
[should|https://www.apache.org/legal/release-policy.html#source-packages] allow 
anyone who downloads it to build and test Hive.

At the moment, on commit 
[b63dab11d229abac59a4ef5e141d8d9b28037c8b|https://github.com/apache/hive/commit/b63dab11d229abac59a4ef5e141d8d9b28037c8b],
 if someone produces the source package and extracts the contents of the 
archive, it is not possible to build Hive.

Both {{mvn install}} and {{mvn package}} commands fail when they are executed 
inside the directory extracted from the archive.
{noformat}
mvn clean install -DskipTests
mvn clean package -DskipTests
{noformat}
The error is shown below:
{noformat}
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/parser of 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist 
@ 
[ERROR] Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/udf of 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist 
@ 
[ERROR] Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/standalone-metastore/pom.xml
 of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not 
exist @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.hive:hive:4.0.0-SNAPSHOT 
(/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml) has 3 errors
[ERROR]     Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/parser of 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist
[ERROR]     Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/udf of 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not exist
[ERROR]     Child module 
/home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/standalone-metastore/pom.xml
 of /home/stamatis/Downloads/apache-hive-4.0.0-SNAPSHOT-src/pom.xml does not 
exist
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to