You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Maryann Xue <ma...@gmail.com> on 2017/03/10 22:45:02 UTC

Has anyone tried 'mvn install' lately?

Hi all,

Was trying to do 'mvn install' today but got an error as follows:

[ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
(default) on project calcite-core: Check for forbidden API calls failed:
java.lang.ClassNotFoundException:
org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode ->
[Help 1]


Does anyone know if it is a bug on master branch or there's something I
might have done wrong? Thanks in advance for the help!



Thanks,

Maryann

Re: Has anyone tried 'mvn install' lately?

Posted by Maryann Xue <ma...@gmail.com>.
Thank you all! I did 'mvn clean' and 'mvn install' again (had tried
different things but missed this combination before I guess), and it worked.

On Sat, Mar 11, 2017 at 10:32 AM Eli Levine <el...@gmail.com> wrote:

> I hit that too yesterday but an "mvn clean" fixed the issue for me.
>
> Eli
>
> > On Mar 10, 2017, at 10:26 PM, Maryann Xue <ma...@gmail.com> wrote:
> >
> > I was suspecting that too so removed "-DskipTests" option and tried again
> > with "mvn install", but still got the issue after all tests passed in the
> > "core" module. Had done "mvn clean" too, which didn't help.
> >> On Fri, Mar 10, 2017 at 7:43 PM Julian Hyde <jh...@apache.org> wrote:
> >>
> >> Maryann,
> >>
> >> It might be that that class is only generated if you’re running tests,
> yet
> >> the (new forbidden-APIs plugin tries to check it anyway. Maybe you were
> >> running “mvn clean package -DskipTests” or similar?
> >>
> >> To be clear, I do think you’re hitting a bug, but it probably only
> happens
> >> with particular combinations of targets/flags.
> >>
> >> Julian
> >>
> >>> On Mar 10, 2017, at 3:21 PM, Jess Balint <jb...@gmail.com> wrote:
> >>>
> >>> Being the last one to commit, it's fine for me. :) Maybe clean first?
> >>>
> >>> Jess
> >>>
> >>> On Fri, Mar 10, 2017 at 4:45 PM, Maryann Xue <ma...@gmail.com>
> >> wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> Was trying to do 'mvn install' today but got an error as follows:
> >>>>
> >>>> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
> >>>> (default) on project calcite-core: Check for forbidden API calls
> failed:
> >>>> java.lang.ClassNotFoundException:
> >>>> org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode
> ->
> >>>> [Help 1]
> >>>>
> >>>>
> >>>> Does anyone know if it is a bug on master branch or there's something
> I
> >>>> might have done wrong? Thanks in advance for the help!
> >>>>
> >>>>
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Maryann
> >>>>
> >>
> >>
>

Re: Has anyone tried 'mvn install' lately?

Posted by Eli Levine <el...@gmail.com>.
I hit that too yesterday but an "mvn clean" fixed the issue for me. 

Eli

> On Mar 10, 2017, at 10:26 PM, Maryann Xue <ma...@gmail.com> wrote:
> 
> I was suspecting that too so removed "-DskipTests" option and tried again
> with "mvn install", but still got the issue after all tests passed in the
> "core" module. Had done "mvn clean" too, which didn't help.
>> On Fri, Mar 10, 2017 at 7:43 PM Julian Hyde <jh...@apache.org> wrote:
>> 
>> Maryann,
>> 
>> It might be that that class is only generated if you’re running tests, yet
>> the (new forbidden-APIs plugin tries to check it anyway. Maybe you were
>> running “mvn clean package -DskipTests” or similar?
>> 
>> To be clear, I do think you’re hitting a bug, but it probably only happens
>> with particular combinations of targets/flags.
>> 
>> Julian
>> 
>>> On Mar 10, 2017, at 3:21 PM, Jess Balint <jb...@gmail.com> wrote:
>>> 
>>> Being the last one to commit, it's fine for me. :) Maybe clean first?
>>> 
>>> Jess
>>> 
>>> On Fri, Mar 10, 2017 at 4:45 PM, Maryann Xue <ma...@gmail.com>
>> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> Was trying to do 'mvn install' today but got an error as follows:
>>>> 
>>>> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
>>>> (default) on project calcite-core: Check for forbidden API calls failed:
>>>> java.lang.ClassNotFoundException:
>>>> org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode ->
>>>> [Help 1]
>>>> 
>>>> 
>>>> Does anyone know if it is a bug on master branch or there's something I
>>>> might have done wrong? Thanks in advance for the help!
>>>> 
>>>> 
>>>> 
>>>> Thanks,
>>>> 
>>>> Maryann
>>>> 
>> 
>> 

Re: Has anyone tried 'mvn install' lately?

Posted by Maryann Xue <ma...@gmail.com>.
I was suspecting that too so removed "-DskipTests" option and tried again
with "mvn install", but still got the issue after all tests passed in the
"core" module. Had done "mvn clean" too, which didn't help.
On Fri, Mar 10, 2017 at 7:43 PM Julian Hyde <jh...@apache.org> wrote:

> Maryann,
>
> It might be that that class is only generated if you’re running tests, yet
> the (new forbidden-APIs plugin tries to check it anyway. Maybe you were
> running “mvn clean package -DskipTests” or similar?
>
> To be clear, I do think you’re hitting a bug, but it probably only happens
> with particular combinations of targets/flags.
>
> Julian
>
> > On Mar 10, 2017, at 3:21 PM, Jess Balint <jb...@gmail.com> wrote:
> >
> > Being the last one to commit, it's fine for me. :) Maybe clean first?
> >
> > Jess
> >
> > On Fri, Mar 10, 2017 at 4:45 PM, Maryann Xue <ma...@gmail.com>
> wrote:
> >
> >> Hi all,
> >>
> >> Was trying to do 'mvn install' today but got an error as follows:
> >>
> >> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
> >> (default) on project calcite-core: Check for forbidden API calls failed:
> >> java.lang.ClassNotFoundException:
> >> org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode ->
> >> [Help 1]
> >>
> >>
> >> Does anyone know if it is a bug on master branch or there's something I
> >> might have done wrong? Thanks in advance for the help!
> >>
> >>
> >>
> >> Thanks,
> >>
> >> Maryann
> >>
>
>

Re: Has anyone tried 'mvn install' lately?

Posted by Julian Hyde <jh...@apache.org>.
Maryann,

It might be that that class is only generated if you’re running tests, yet the (new forbidden-APIs plugin tries to check it anyway. Maybe you were running “mvn clean package -DskipTests” or similar?

To be clear, I do think you’re hitting a bug, but it probably only happens with particular combinations of targets/flags.

Julian

> On Mar 10, 2017, at 3:21 PM, Jess Balint <jb...@gmail.com> wrote:
> 
> Being the last one to commit, it's fine for me. :) Maybe clean first?
> 
> Jess
> 
> On Fri, Mar 10, 2017 at 4:45 PM, Maryann Xue <ma...@gmail.com> wrote:
> 
>> Hi all,
>> 
>> Was trying to do 'mvn install' today but got an error as follows:
>> 
>> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
>> (default) on project calcite-core: Check for forbidden API calls failed:
>> java.lang.ClassNotFoundException:
>> org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode ->
>> [Help 1]
>> 
>> 
>> Does anyone know if it is a bug on master branch or there's something I
>> might have done wrong? Thanks in advance for the help!
>> 
>> 
>> 
>> Thanks,
>> 
>> Maryann
>> 


Re: Has anyone tried 'mvn install' lately?

Posted by Jess Balint <jb...@gmail.com>.
Being the last one to commit, it's fine for me. :) Maybe clean first?

Jess

On Fri, Mar 10, 2017 at 4:45 PM, Maryann Xue <ma...@gmail.com> wrote:

> Hi all,
>
> Was trying to do 'mvn install' today but got an error as follows:
>
> [ERROR] Failed to execute goal de.thetaphi:forbiddenapis:2.3:check
> (default) on project calcite-core: Check for forbidden API calls failed:
> java.lang.ClassNotFoundException:
> org.apache.calcite.sql.parser.parserextensiontesting.SqlUploadJarNode ->
> [Help 1]
>
>
> Does anyone know if it is a bug on master branch or there's something I
> might have done wrong? Thanks in advance for the help!
>
>
>
> Thanks,
>
> Maryann
>