Install from intelliJ

Hi,

since some weeks, I had some trouble with install execution of maven :

[INFO] Installing D:\dev\svn\LB9000\LB9000-build\target\LB9000-Driver-Module-unsigned.modl to gateway. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] LB9000 Driver Module ............................... SUCCESS [ 0.440 s] [INFO] LB9000-Gateway ..................................... SUCCESS [ 3.106 s] [INFO] LB9000-build ....................................... FAILURE [ 1.369 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.045 s [INFO] Finished at: 2017-04-03T18:49:42+02:00 [INFO] Final Memory: 17M/168M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:post (postexecution) on project LB9000-build: Could not post the module to the Gateway. Could not post module to gateway. no protocol: 127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:post (postexecution) on project LB9000-build: Could not post the module to the Gateway. 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: org.apache.maven.plugin.MojoExecutionException: Could not post the module to the Gateway. at com.inductiveautomation.ignitionsdk.PostModuleMojo.execute(PostModuleMojo.java:78) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 21 more Caused by: org.apache.maven.plugin.MojoExecutionException: Could not post module to gateway. at com.inductiveautomation.ignitionsdk.PostModuleMojo.postModuleToGateway(PostModuleMojo.java:119) at com.inductiveautomation.ignitionsdk.PostModuleMojo.execute(PostModuleMojo.java:75) ... 23 more Caused by: java.net.MalformedURLException: no protocol: 127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet at java.net.URL.<init>(URL.java:593) at java.net.URL.<init>(URL.java:490) at java.net.URL.<init>(URL.java:439) at com.inductiveautomation.ignitionsdk.PostModuleMojo.postModuleToGateway(PostModuleMojo.java:89) ... 24 more [ERROR]

each time I try to install, I get this message.

I haven’t got any trouble to install module with web interface.

Do you know why? I think that I forget something but I don’t know what ?

Any idea?

Best regards
pom.xml (3.59 KB)

I think you need to include “http://” in your gateway address configuration.

Hi Kevin,

thank you for your quick answer but I already did a test with “http://” before the ip.

The console result said :

[INFO] Installing D:\dev\svn\LB9000\LB9000-build\target\LB9000-Driver-Module-unsigned.modl to gateway. [INFO] Deploying to http://127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet [DEBUG] Successfully connected to http://127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet/main/system/DeveloperModuleLoadingServlet [DEBUG] Successfully encoded D:\dev\svn\LB9000\LB9000-build\target\LB9000-Driver-Module-unsigned.modl. [DEBUG] Successfully wrote D:\dev\svn\LB9000\LB9000-build\target\LB9000-Driver-Module-unsigned.modl to Gateway. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] LB9000 Driver Module ............................... SUCCESS [ 2.125 s] [INFO] LB9000-Gateway ..................................... SUCCESS [ 5.797 s] [INFO] LB9000-build ....................................... FAILURE [ 3.168 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.459 s [INFO] Finished at: 2017-04-03T22:56:05+02:00 [INFO] Final Memory: 14M/117M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:post (postexecution) on project LB9000-build: Could not post the module to the Gateway. Could not post module to gateway. http://127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:post (postexecution) on project LB9000-build: Could not post the module to the Gateway. 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: org.apache.maven.plugin.MojoExecutionException: Could not post the module to the Gateway. at com.inductiveautomation.ignitionsdk.PostModuleMojo.execute(PostModuleMojo.java:78) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 21 more Caused by: org.apache.maven.plugin.MojoExecutionException: Could not post module to gateway. at com.inductiveautomation.ignitionsdk.PostModuleMojo.postModuleToGateway(PostModuleMojo.java:119) at com.inductiveautomation.ignitionsdk.PostModuleMojo.execute(PostModuleMojo.java:75) ... 23 more Caused by: java.io.FileNotFoundException: http://127.0.0.1:8088/main/system/DeveloperModuleLoadingServlet at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at com.inductiveautomation.ignitionsdk.PostModuleMojo.postModuleToGateway(PostModuleMojo.java:110) ... 24 more [ERROR]

Thanks
pom.xml (3.6 KB)

What version of Ignition are you using now?

You may have to modify ignition.conf and set one or both of these flags in the additional parameters section:
-Dignition.allowunsignedmodules=true
-Dia.developer.moduleupload=true

At some point a change was made so that the developer module loading servlet must be explicitly enabled.

Great, it works
:laughing: :laughing: :laughing:

should be written on this page, no?
https://docs.inductiveautomation.com:8443/display/SE/The+Ignition+Maven+Plugin

Thank you :thumb_left:
Best regards

Hi Kevin,

is there any other useful options like theses?

regards,