edvin / fxldemo

FXLauncher demo application
Apache License 2.0
41 stars 19 forks source link

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (installer) #8

Closed ravenp1992 closed 6 years ago

ravenp1992 commented 6 years ago

This is the first time that I get this error after using this for almost 2 years. I hope you can help me.

Error: [DEBUG] Executing command line: [javapackager, -deploy, -native, -outdir, /home/users/ravenp/Workspace/Java_Projects/cloudstaffcommunicator/target/installer, -outfile, CommunicatorApp, -srcdir, /home/users/ravenp/Workspace/Java_Projects/cloudstaffcommunicator/target/app, -srcfiles, fxlauncher.jar, -appclass, fxlauncher.Launcher, -name, Communicator, -title, Communicator, -vendor, Cloudstaff INC, -BappVersion=1.0, -Bidentifier=com.cloudstaff.cloudstaff.communicator] Unrecognized option: -m Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.408 s [INFO] Finished at: 2018-07-19T11:44:53+08:00 [INFO] Final Memory: 31M/384M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (installer) on project cloudstaff.communicator: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (installer) on project cloudstaff.communicator: Command execution failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed. at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:276) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: 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:660) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:265) ... 22 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Code: `<?xml version="1.0" encoding="UTF-8"?>

4.0.0 com.cloudstaff cloudstaff.communicator 3.14 jar Communicator junit junit 4.12 test org.mockito mockito-all 1.9.5 test no.tornado fxlauncher 1.0.14 com.airhacks afterburner.fx 1.7.0 compile com.jfoenix jfoenix 1.4.0 de.jensd fontawesomefx 8.9 org.xerial sqlite-jdbc 3.8.11.2 compile com.mashape.unirest unirest-java 1.4.9 io.reactivex rxjava 1.2.5 io.reactivex rxjavafx 1.0.0 org.imgscalr imgscalr-lib 4.2 com.1stleg jnativehook 2.0.2 org.jasypt jasypt 1.9.2 com.google.code.gson gson 2.8.0 com.github.oshi oshi-json 3.4.4 org.slf4j slf4j-api 1.7.25 org.slf4j slf4j-jdk14 1.7.25 org.controlsfx controlsfx 8.40.12 de.huxhorn.lilith de.huxhorn.lilith.3rdparty.junique 1.0.2 CommunicatorApp com.cloudstaff.communicator.App USERLIB/Communicator --myOption=myValue --myOtherOption=myOtherValue Cloudstaff INC 1.0 ${project.build.directory}/app ${project.build.directory}/installer false 1.8 1.8 UTF-8 org.apache.maven.plugins maven-jar-plugin 2.6 ${app.dir} org.apache.maven.plugins maven-dependency-plugin 2.10 provided ${app.dir} true package copy-dependencies org.codehaus.mojo exec-maven-plugin 1.4.0 create-manifest package java fxlauncher.CreateManifest ${app.url} ${app.mainClass} ${app.dir} --cache-dir=${app.cacheDir} --accept-downgrade=${app.acceptDowngrade} --include-extensions=jpg ${app.parameters} embed-manifest-in-launcher package exec jar ${app.dir} uf fxlauncher.jar app.xml installer install exec javapackager -deploy -native -outdir ${app.installerdir} -outfile ${app.filename} -srcdir ${app.dir} -srcfiles fxlauncher.jar -appclass fxlauncher.Launcher -name ${project.name} -title ${project.name} -vendor ${app.vendor} -Bicon=${basedir}/src/main/resources/images/commapp.png -BappVersion=${app.version} -Bidentifier=${project.groupId}.${project.artifactId} deploy-app deploy exec scp -r ${app.dir}/. ${app.deploy.target} org.apache.maven.plugins maven-compiler-plugin 3.3 1.8 1.8 src/main/java **/*.fxml **/*.css **/*.properties **/*.otf src/main/resources true **/*.xml **/*.css **/*.properties **/*.otf **/*.png **/*.jpg

`

ravenp1992 commented 6 years ago

I even tried the fxldemo I got the same error after mvn clean install. :cry:

edvin commented 6 years ago

The command you executes results in the following error message from javapackager:

Unrecognized option: -m Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [INFO

As far as I can see though, your command line doesn't include any -m option. Try constructing the comma separated list of options to a valid command and execute it in the shell to see what javapackager says then :)

ravenp1992 commented 6 years ago

Thanks @edvin I already fix the problem. I don't know what happened but it works after reinstalling the JDK. :thinking: anyway thanks again I really appreciate your help.

edvin commented 6 years ago

Great :)