# Ignition Maven Plugin v1.0.11 Fails

**URL:** <https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107>\
**Category:** Module Development\
**Created:** [September 8, 2016, 1:16pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107 "2016-09-08T13:16:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 8, 2016, 1:16pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/1 "2016-09-08T13:16:40Z")

</div>

In order to have the modl file automatically installed to the local gateway, I specified use of v1.0.11 of the Ignition Maven Plugin.

The build fails at two places, described below.

Failure #1:  
The log file reports:  
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.

To fix this, I added dependencies for slf4j and log4j to the root pom file. Both of these packages (slf4j and log4j) are in the local Maven repository.

The build still fails.

Dependencies from pom file and build log are reproduced here.

* * *

Begin: Dependencies added to root pom file

* * *

```
<dependencies>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${project.slf4jVersion}</version>
        <scope>compile</scope>
    </dependency>

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>${project.slf4jVersion}</version>
    </dependency>

    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
        <scope>runtime</scope>
    </dependency>
</dependencies>

```

* * *

End: Dependencies added to root pom file

* * *

* * *

Begin: Build log reports failure to load slf4j

* * *

[INFO] creating module.xml: C:\Users\gashmore\AppData\Local\Temp\modl2886238889354801523\module.xml  
[INFO] Adding documentation to module.  
[INFO] Creating modl file at: C:\Ignition\IntelliJ\XasIgnition\ItemQualityLogBuild\target\ItemQualityLog-unsigned.modl  
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.  
SLF4J: Defaulting to no-operation (NOP) logger implementation  
SLF4J: See [slf4j.org/codes.html#StaticLoggerBinder](http://www.slf4j.org/codes.html#StaticLoggerBinder) for further details.

* * *

End: Build log reports failure to load slf4j

* * *

Failure #2:  
The gateway rejects the load of the module, as shown in the log.

[  
Update:  
I reverted to v1.0.5 of the Ignition Maven plug-in, got a successful build of the module file, attempted manual installation of the module in the gateway. Parse of module xml file failed due to incorrectly formatted version number. Changed 1.0 to 1.0.0; module installed. So, this failure #2 may have been solved.  
]

* * *

Begin: Build log reports failure to install module to gateway

* * *

[INFO] — ignition-maven-plugin:1.0.11:post (postexecution) @ ItemQualityLogBuild —  
[INFO] Installing C:\Ignition\IntelliJ\XasIgnition\ItemQualityLogBuild\target\ItemQualityLog-unsigned.modl to gateway.  
[INFO] Deploying to [localhost:8088/main/system/Devel … ingServlet](http://localhost:8088/main/system/DeveloperModuleLoadingServlet)  
[INFO] ------------------------------------------------------------------------  
[INFO] Reactor Summary:  
[INFO]  
[INFO] XasIgnitionProject … SUCCESS [0.563s]  
[INFO] CommonLib … SUCCESS [2.470s]  
[INFO] ItemQualityLog … SUCCESS [3.744s]  
[INFO] ItemQualityLogBuild … FAILURE [1.612s]  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 8.570s  
[INFO] Finished at: Thu Sep 08 08:42:43 EDT 2016  
[INFO] Final Memory: 15M/260M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.11:post (postexecution) on project ItemQualityLogBuild: Could not post the module to the Gateway. Could not post module to gateway. Server returned HTTP response code: 500 for URL: [localhost:8088/main/system/Devel … ingServlet](http://localhost:8088/main/system/DeveloperModuleLoadingServlet) -\> [Help 1]

* * *

End: Build log reports failure to install module to gateway

* * *

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 8, 2016, 3:54pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/2 "2016-09-08T15:54:37Z")

</div>

Hi, I’m not able to replicate issue #1 on any of the SDK example projects so I might need to see more of what you’ve got set up.

#2 is because your gateway is not in “developer mode”, which is a feature of the license you’re running. I think you have to contact a sales rep to get a developer license these days (it’s free). Alternatively… you can start the Ignition gateway with the system property “-Dia.developer.moduleupload=true” and it should allow modules to be loaded as well. You would add this to the additional params section in ignition.conf.

---

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 8, 2016, 6:21pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/3 "2016-09-08T18:21:00Z")

</div>

> [@Kevin.Herron](#):
>
> Hi, I'm not able to replicate issue #1 on any of the SDK example projects so I might need to see more of what you've got set up.

What info do you need me to provide?

> [@Kevin.Herron](#):
>
> #2 is because your gateway is not in "developer mode", which is a feature of the license you're running. I think you have to contact a sales rep to get a developer license these days (it's free). Alternatively... you can start the Ignition gateway with the system property "-Dia.developer.moduleupload=true" and it should allow modules to be loaded as well. You would add this to the additional params section in ignition.conf.

I installed a license that put the gateway in developer mode.  
This is what I saw as I installed the module manually:  
\<\<\<  
This module is not signed. You are currently running in developer mode and can run unsigned modules. Modules can make changes to your system. Be sure you understand the risk.

> > >

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 8, 2016, 6:22pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/4 "2016-09-08T18:22:16Z")

</div>

[quote=“Kevin.Herron”]Alternatively… you can start the Ignition gateway with the system property “-Dia.developer.moduleupload=true” and it should allow modules to be loaded as well.[/quote]Sweet! I didn’t know this trick. It’ll be very handy.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 8, 2016, 6:25pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/5 "2016-09-08T18:25:18Z")

</div>

I’m not sure what I’m looking for really. SLF4j is not a dependency of the ignition-maven-plugin. I’m not sure where that message is coming from. Is any of your code using slf4j?

The module installation stuff may interact weird with the new module signing logic… it might work after one time installing it manually so that your module license and author info has been accepted. I’ll have a look and see.

---

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 8, 2016, 6:32pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/6 "2016-09-08T18:32:21Z")

</div>

> [@Kevin.Herron](#):
>
> I'm not sure what I'm looking for really. SLF4j is not a dependency of the ignition-maven-plugin. I'm not sure where that message is coming from. Is any of your code using slf4j?

No, I don't use slf4j. I do not see this fault with v1.0.5 of the Ignition Maven Plugin; I see it with v1.0.11.

---

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 8, 2016, 6:57pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/7 "2016-09-08T18:57:59Z")

</div>

[quote=“xasga”]  
No, I don’t use slf4j. I do not see this fault with v1.0.5 of the Ignition Maven Plugin; I see it with v1.0.11.[/quote]  
But I wouldn’t see it with 1.0.5, because it does not execute the install phase.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [September 8, 2016, 7:26pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/8 "2016-09-08T19:26:02Z")

</div>

What is your development environment? In Eclipse, the slf4j error message was a bug that has been fixed some years ago. It was only a warning, that could be safely ignored (at least for the Eclipse integrated Maven).  
Does this warning really stop your build? Output logging should not be a vital part of a maven build.

---

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 9, 2016, 10:32am UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/9 "2016-09-09T10:32:40Z")

</div>

[quote=“chi”]What is your development environment? In Eclipse, the slf4j error message was a bug that has been fixed some years ago. It was only a warning, that could be safely ignored (at least for the Eclipse integrated Maven).  
Does this warning really stop your build? Output logging should not be a vital part of a maven build.[/quote]  
No, the build does not stop. The error message indicates that logging will not be available at runtime in the gateway, which would be a problem. However, given that none of my code uses slf4j, and (so I understand Kevin Herron) neither does the Ignition system code, the message may not have any practical consequence. I’d still like it gone, as a failure notice at every build will result in wasted time.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [September 9, 2016, 12:28pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/10 "2016-09-09T12:28:53Z")

</div>

> [@xasga](#):
>
> The error message indicates that logging will not be available at runtime in the gateway, which would be a problem.

No, this is simply the logging of the Maven build output. It has nothing to do with Ignition or the created module.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 9, 2016, 1:55pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/11 "2016-09-09T13:55:17Z")

</div>

Are you running this build from the command line or from inside Eclipse? Does it happen when you try to package one of the example projects?

---

<div class="post-metadata">

**Author:** ![xasga](https://avatars.discourse-cdn.com/v4/letter/x/838e76/32.png) [@xasga](https://forum.inductiveautomation.com/u/xasga)\
**Post date:** [September 12, 2016, 12:43pm UTC](https://forum.inductiveautomation.com/t/ignition-maven-plugin-v1-0-11-fails/12107/12 "2016-09-12T12:43:55Z")

</div>

> [@Kevin.Herron](#):
>
> Are you running this build from the command line or from inside Eclipse?

I'm using IntelliJ IDEA.

In my own project:

In IDEA:  
Right-click on Lifecycle-\>install  
Click Run Maven Build.  
The "failed to load class org.slf4j.impl.StaticLoggerBinder" warning is generated.

Command Line:  
mvn install.  
The slf4j warning does not appear.

> [@Kevin.Herron](#):
>
> Does it happen when you try to package one of the example projects?

In example project simple-tag-provider:

In IDEA:  
Right-click on Lifecycle-\>install  
Click Run Maven Build.  
The "failed to load class org.slf4j.impl.StaticLoggerBinder" warning is generated.

Command Line:  
mvn install.  
The slf4j warning does not appear.

In all cases, the module is installed to the gateway, and the build is declared a success.  
So this is a mild nuisance, not a work-stopping problem.
