nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Bean <mark.o.b...@gmail.com>
Subject Re: IntelliJ, language level and jigaw profile
Date Thu, 30 Jan 2020 14:19:10 GMT
Found it. Profiles are at the top of the list in the Maven tool window.

Thanks for the tip. Unchecking the jigsaw profile did the trick.

Thanks,
Mark


On Thu, Jan 30, 2020 at 8:51 AM Mark Bean <mark.o.bean@gmail.com> wrote:

> Jeff,
>
> Can you please be a little more specific where to find the light/bold
> checked profile option? The only way I've enabled profiles is by explicit
> maven option "-P".
>
> Thanks,
> Mark
>
> On Wed, Jan 29, 2020 at 4:31 PM Jeff <jtswork@gmail.com> wrote:
>
>> Hi Mark,
>>
>> IntelliJ IDEA seems to implicitly activate the "jigsaw" profile with a
>> "light" checkmark if it thinks you have Java 11 installed versus a "bold"
>> checkmark if you've clicked that profile to be enabled explicitly.  Make
>> sure that profile is unchecked, and make IDEA rebuild.  That should get
>> you
>> back to having your classes compiled with Java 8.
>>
>> On Wed, Jan 29, 2020 at 4:23 PM Mark Bean <mark.o.bean@gmail.com> wrote:
>>
>> > I'm having trouble with IntelliJ setting the proper language level. Has
>> > anyone else seen the following behavior?
>> >
>> > IntelliJ 2019.3.2 (Community Edition)
>> > installed from ideaIC-2019.3.2-no-jbr.tar.gz
>> >
>> > File > Project Structure > Platform Settings > SDKs
>> >   - Only 1.8 is loaded
>> > File > Project Structure > Project Settings > Project
>> >   - Project SDK = 1.8
>> >   - Project language level = 8 - Lambdas, type annotations etc.
>> > File > Project Structure > Project Settings > Modules
>> >   - Every module lists "Language level" as "11 - Local variable syntax
>> for
>> > lambda paramters"
>> > File > Settings > Build, Execution, Deployment > Build Tools > Maven
>
>> > Importing
>> >   - JDK for importer = 1.8
>> >
>> > I go to File > Settings > Build, Execution, Deployment > Compiler >
Java
>> > Compiler
>> >   - Project bytecode version = 8
>> >   - Select all modules and remove them
>> >   - Apply
>> > From Project view, select root level pom.xml > Maven > Reimport
>> > Return to File > Settings > Build, Execution, Deployment > Compiler
>
>> Java
>> > Compiler
>> >   - All modules have returned and have a Target bytecode version of 11
>> >
>> > At this point, I can't run unit tests in IntelliJ. I get an error
>> "Error:
>> > java: invalid source release: 11"
>> >
>> > I could just use Java 11, but I'm curious if this is related to the
>> jigsaw
>> > profile. When I remove the <activation> from the jigsaw profile, I get
>> the
>> > above behavior. When I remove both the activation and the properties
>> > (maven.compiler.sorce and maven.compiler.target), then I can get the
>> > language level to remain at 1.8.
>> >
>> > It appears the jigaw profile may be activating all the time. Or, maybe
>> > IntelliJ is presenting the incorrect JDK version?
>> >
>> > -Mark
>> >
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message