Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.2, 11.3
-
Product Version: Apache NetBeans IDE 11.2
Java: 11.0.5; OpenJDK 64-Bit Server VM 11.0.5+10-LTS
Runtime: OpenJDK Runtime Environment 11.0.5+10-LTS
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Description
Can't run a newly created project based on "Simple JavaFX Maven Archetype (Gluon)" template.
Run action tries to execute maven exec:exec task (see console output below)
This template includes org.openjfx:javafx-maven-plugin into the pom.xml. So, action can be changed on javafx:run to run the application.
Console output:
cd D:\projects\temp\SimpleJavaFXMaven; "JAVA_HOME=C:
Program Files
Amazon Corretto
jdk11.0.5_10" cmd /c "\"\"D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven\\bin\\mvn.cmd\" Dexec.args=\"-classpath %classpath com.nems.simplejavafxmaven.App\" -Dexec.executable=\"C:----------------------------------------------------------------------
Program Files
Amazon Corretto\\jdk11.0.5_10\\bin\\java.exe\" -Dmaven.ext.class.path=D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven-nblib
netbeans-eventspy.jar -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""cd D:\projects\temp\SimpleJavaFXMaven; "JAVA_HOME=C:
Program Files
Amazon Corretto
jdk11.0.5_10" cmd /c "\"\"D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven\\bin\\mvn.cmd\" -Dexec.args=\"-classpath %classpath com.nems.simplejavafxmaven.App\" -Dexec.executable=\"C:
Program Files
Amazon Corretto\\jdk11.0.5_10\\bin\\java.exe\" -Dmaven.ext.class.path=D:\\soft\\scoop\\apps\\netbeans\\current\\java\\maven-nblib
netbeans-eventspy.jar -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.Scanning for projects... Building SimpleJavaFXMaven 1.0-SNAPSHOT-----------------------------------------------------------------------
--- exec-maven-plugin:1.5.0:exec (default-cli) @ SimpleJavaFXMaven --Error: JavaFX runtime components are missing, and are required to run this applicationCommand execution failed.org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)----------------------------------------------------------------------BUILD FAILURE----------------------------------------------------------------------Total time: 0.605 sFinished at: 2020-01-22T15:01:37+01:00Final Memory: 7M/40M-----------------------------------------------------------------------Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default-cli) on project SimpleJavaFXMaven: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Attachments
Attachments
Issue Links
- is blocked by
-
NETBEANS-3104 Extend ArchetypeWizards.definedArchetype to include optional nbactions
- Closed
- links to