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

Aditya Kishore commented on DRILL-3748:
---------------------------------------

The "apache-release" profile, defined in the Apache root pom, is expected to be 
invoked from the root of the project while making the release. It expected 
certain maven assembly descriptors to be present in the module where it is 
invoked.

This is something that can not be fixed in Drill code without, unnecessarily, 
adding these assembly descriptors to each module.

If speeding up the build is all you need, use the {{-rf :drill-jdbc}} or {{-rf 
:drill-jdbc-all}}  on the maven command line.

> Maven apache-release profile on single module fails
> ---------------------------------------------------
>
>                 Key: DRILL-3748
>                 URL: https://issues.apache.org/jira/browse/DRILL-3748
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Tools, Build & Test
>            Reporter: Daniel Barclay (Drill)
>
> Running Maven with the {{apache-release}} profile enabled fails when run on 
> just the {{drill-jdbc-all}} module.
> (Building all of Drill with that profile seems to work, but trying to 
> re-build just the {{drill-jdbc-all}} module}} fails.  That means that the 
> edit/regenerate/check loop for JDBC Javadoc documentation (coming with 
> DRILL-3160) takes much longer, since one can't incrementally rebuild just the 
> {{drill-jdbc-all}} module (with the {{apache-release}} profile, which is 
> needed for that Javadoc).)
> Specifically, although this command works:
> {noformat}
> mvn install -DskipTests -Papache-release -Dgpg.skip=true
> {noformat}
> executing the following (even right after the above command) fails:
> {noformat}
> cd exec/jdbc-all
> mvn install -DskipTests -Papache-release -Dgpg.skip=true
> {noformat}
> That yields error as in:
> {noformat}
> [INFO] --- maven-assembly-plugin:2.4:single (source-release-assembly) @ 
> drill-jdbc-all ---
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 29.923 s
> [INFO] Finished at: 2015-09-08T10:43:19-07:00
> [INFO] Final Memory: 47M/443M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-assembly-plugin:2.4:single 
> (source-release-assembly) on project drill-jdbc-all: Error reading 
> assemblies: Error locating assembly descriptor: 
> src/main/resources/assemblies/source-assembly.xml
> [ERROR] 
> [ERROR] [1] [INFO] Searching for file location: 
> /home/dbarclay/work/git/incubator-drill/exec/jdbc-all/src/main/resources/assemblies/source-assembly.xml
> [ERROR] 
> [ERROR] [2] [INFO] File: 
> /home/dbarclay/work/git/incubator-drill/exec/jdbc-all/src/main/resources/assemblies/source-assembly.xml
>  does not exist.
> [ERROR] 
> [ERROR] [3] [INFO] File: 
> /home/dbarclay/work/git/incubator-drill/exec/jdbc-all/src/main/resources/assemblies/source-assembly.xml
>  does not exist.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to