You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried building Helidon 2.x archetypes using Java 17 (instead of 11) and it fails with:
[ERROR] Failed to execute goal io.helidon.build-tools.archetype:helidon-archetype-maven-plugin:2.3.7:jar (default-jar) on project helidon-bare-se: Execution default-jar of goal io.helidon.build-tools.archetype:helidon-archetype-maven-plugin:2.3.7:jar failed: Failed to get value for key @[archetype-post-generate.groovy:20]: Unable to make public final java.lang.Object java.util.HashMap$Node.getKey() accessible: module java.base does not "opens java.util" to unnamed module @66c83fc8 @[archetype-post-generate.groovy:20] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.helidon.build-tools.archetype:helidon-archetype-maven-plugin:2.3.7:jar (default-jar) on project helidon-bare-se: Execution default-jar of goal io.helidon.build-tools.archetype:helidon-archetype-maven-plugin:2.3.7:jar failed: Failed to get value for key @[archetype-post-generate.groovy:20]
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:306)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-jar of goal io.helidon.build-tools.archetype:helidon-archetype-maven-plugin:2.3.7:jar failed: Failed to get value for key @[archetype-post-generate.groovy:20]
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.github.mustachejava.MustacheException: Failed to get value for key @[archetype-post-generate.groovy:20]
at io.helidon.build.util.MustacheHelper$MustacheFactoryImpl$1$1.execute (MustacheHelper.java:137)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.run (DefaultCode.java:213)
at com.github.mustachejava.codes.IterableCode.next (IterableCode.java:133)
at com.github.mustachejava.reflect.BaseObjectHandler.iterate (BaseObjectHandler.java:89)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:128)
at com.github.mustachejava.codes.IterableCode.handle (IterableCode.java:54)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:42)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.execute (DefaultCode.java:162)
at com.github.mustachejava.codes.DefaultMustache.execute (DefaultMustache.java:57)
at com.github.mustachejava.Mustache.execute (Mustache.java:38)
at io.helidon.build.util.MustacheHelper.renderMustacheTemplate (MustacheHelper.java:87)
at io.helidon.build.archetype.maven.JarMojo.renderPostScript (JarMojo.java:284)
at io.helidon.build.archetype.maven.JarMojo.processMavenCompat (JarMojo.java:318)
at io.helidon.build.archetype.maven.JarMojo.execute (JarMojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.github.mustachejava.MustacheException: Unable to make public final java.lang.Object java.util.HashMap$Node.getKey() accessible: module java.base does not "opens java.util" to unnamed module @66c83fc8 @[archetype-post-generate.groovy:20]
at com.github.mustachejava.codes.DefaultCode.get (DefaultCode.java:150)
at io.helidon.build.util.MustacheHelper$MustacheFactoryImpl$1$1.execute (MustacheHelper.java:129)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.run (DefaultCode.java:213)
at com.github.mustachejava.codes.IterableCode.next (IterableCode.java:133)
at com.github.mustachejava.reflect.BaseObjectHandler.iterate (BaseObjectHandler.java:89)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:128)
at com.github.mustachejava.codes.IterableCode.handle (IterableCode.java:54)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:42)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.execute (DefaultCode.java:162)
at com.github.mustachejava.codes.DefaultMustache.execute (DefaultMustache.java:57)
at com.github.mustachejava.Mustache.execute (Mustache.java:38)
at io.helidon.build.util.MustacheHelper.renderMustacheTemplate (MustacheHelper.java:87)
at io.helidon.build.archetype.maven.JarMojo.renderPostScript (JarMojo.java:284)
at io.helidon.build.archetype.maven.JarMojo.processMavenCompat (JarMojo.java:318)
at io.helidon.build.archetype.maven.JarMojo.execute (JarMojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make public final java.lang.Object java.util.HashMap$Node.getKey() accessible: module java.base does not "opens java.util" to unnamed module @66c83fc8
at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:354)
at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:297)
at java.lang.reflect.Method.checkCanSetAccessible (Method.java:199)
at java.lang.reflect.Method.setAccessible (Method.java:193)
at com.github.mustachejava.reflect.BaseObjectHandler.getMethod (BaseObjectHandler.java:142)
at com.github.mustachejava.reflect.BaseObjectHandler.findMember (BaseObjectHandler.java:157)
at com.github.mustachejava.reflect.ReflectionObjectHandler.findWrapper (ReflectionObjectHandler.java:156)
at com.github.mustachejava.reflect.ReflectionObjectHandler.find (ReflectionObjectHandler.java:74)
at com.github.mustachejava.reflect.GuardedBinding.getWrapper (GuardedBinding.java:103)
at com.github.mustachejava.reflect.GuardedBinding.createAndGet (GuardedBinding.java:89)
at com.github.mustachejava.reflect.GuardedBinding.get (GuardedBinding.java:84)
at com.github.mustachejava.codes.DefaultCode.get (DefaultCode.java:145)
at io.helidon.build.util.MustacheHelper$MustacheFactoryImpl$1$1.execute (MustacheHelper.java:129)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.run (DefaultCode.java:213)
at com.github.mustachejava.codes.IterableCode.next (IterableCode.java:133)
at com.github.mustachejava.reflect.BaseObjectHandler.iterate (BaseObjectHandler.java:89)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:128)
at com.github.mustachejava.codes.IterableCode.handle (IterableCode.java:54)
at com.github.mustachejava.codes.IterableCode.execute (IterableCode.java:42)
at com.github.mustachejava.codes.DefaultMustache.run (DefaultMustache.java:34)
at com.github.mustachejava.codes.DefaultCode.execute (DefaultCode.java:162)
at com.github.mustachejava.codes.DefaultMustache.execute (DefaultMustache.java:57)
at com.github.mustachejava.Mustache.execute (Mustache.java:38)
at io.helidon.build.util.MustacheHelper.renderMustacheTemplate (MustacheHelper.java:87)
at io.helidon.build.archetype.maven.JarMojo.renderPostScript (JarMojo.java:284)
at io.helidon.build.archetype.maven.JarMojo.processMavenCompat (JarMojo.java:318)
at io.helidon.build.archetype.maven.JarMojo.execute (JarMojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
The text was updated successfully, but these errors were encountered:
I tried building Helidon 2.x archetypes using Java 17 (instead of 11) and it fails with:
The text was updated successfully, but these errors were encountered: