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

Josh Elser commented on CALCITE-553:
------------------------------------

Alright, I have what I view as a fix here. We move away from the current broken 
approach (broken, in the sense of what is expected of Maven projects), and move 
the profiles that are necessary to make the incremental compilation stuff 
working active by default with the ability to disable them. As such, this 
should let those whom this is very important to still use benefit from it.

The following profiles can be disable on the command line to avoid the 
re-generation {{generate-parser}} {{generate-version-properties}}. Or, in 
context, {{mvn package -P'!generate-parser,!generate-version-properties'}}

> "mvn clean install" fails due to missing SqlParserImpl
> ------------------------------------------------------
>
>                 Key: CALCITE-553
>                 URL: https://issues.apache.org/jira/browse/CALCITE-553
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Josh Elser
>             Fix For: next
>
>
> Every second time I call {mvn -DskipTests clean install} it fails with
> {code}[ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] 
> /home/jhyde/open1/calcite.2/core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:[24,42]
>  cannot find symbol
>   symbol:   class SqlParserImpl
>   location: package org.apache.calcite.sql.parser.impl
> [ERROR] 
> /home/jhyde/open1/calcite.2/core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java:[201,50]
>  cannot find symbol
>   symbol:   variable SqlParserImpl
>   location: class org.apache.calcite.sql.parser.SqlParser.ConfigBuilder
> [INFO] 2 errors{code}
> I think CALCITE-484 broke something; maybe the parser is not generated 
> correctly if at the start of the mvn command (before clean) the parser 
> already exists.



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

Reply via email to