Dear developers,
It'd be great if any of you would be kind enough to share your Maven or InteliJ settings.
For Maven, I kept getting the error message telling me that it cannot find the main class:
org.nem.core.deploy.CommonStarter in the maven webstart plugin??
I tried to go back and edit the pom.xml file to declare the main class using configuration tag, but I am really having a hard time understanding it and solving it.
I also tried InteliJ since it's the IDE jaguar recommended. However, I got over 70 error messages!!!
I'm using javac1.8 to compile the main program.
I'm about to give up here.
I'm a C guy, and java is not really my thing.
But, if anyone is kind enough to share your project files with me, maybe I can come up with a custom frontend.
Would really love to help dev for NEM.
Thanks.
PS: I've been spending hours trying to figure out this error, and I have to say I'm truly puzzled. I see the mainclass has already been declared, and it does exist in the CodeBase to my knowledge, so why does it complain???
From pom.xml file, MainClass entry for WebStart-Maven-Plugin:
nem-gui-client.vm
nem-client.jnlp
<mainClass>org.nem.core.deploy.CommonStarter
My Maven Debugging Log:
[ERROR] Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp (default) on project nem-client-api: didn't find artifact with main class: org.nem.core.deploy.CommonStarter. Did you specify it? -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp (default) on project nem-client-api: didn't find artifact with main class: org.nem.core.deploy.CommonStarter. Did you specify it?
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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.SingleThreadedBuilde r.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
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:483)
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: didn't find artifact with main class: org.nem.core.deploy.CommonStarter. Did you specify it?
at org.codehaus.mojo.webstart.AbstractJnlpMojo.execute(AbstractJnlpMojo.java:260)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more