You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/03/03 07:35:00 UTC

[jira] [Commented] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

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

Svatopluk Dedic commented on NETBEANS-5393:
-------------------------------------------

The issue has been fixed; according to Git, the fix was released with Micronaut 2.3.4

> Micronaut projects cannot be launched on non-default JDK
> --------------------------------------------------------
>
>                 Key: NETBEANS-5393
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5393
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 12.2
>            Reporter: Svatopluk Dedic
>            Assignee: Svatopluk Dedic
>            Priority: Major
>
> When using different than system-default JDK, Micronaut projects that reference Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot be executed.
> For example if the system-default JDK is JDK 8, while the Micronaut project targets JDK11, the project compiles fine using JDK11 compiler, but will be run by JDK8 (the system-default on the PATH) runtime.
> This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and disables use of {{exec.executable}} project/commandline property. A possible workaround would be to launch with {{PATH}} prepended with the selected JDK platform, which can have adverse effects on maven execution itself and other tools forked from the build process (different java than before the fix in IDE).
> I will try to get Micronaut project fix this, possibly apply the above workaround if Micronaut either rejects, or takes long to deliver the fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists