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 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
[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 -> [Help 1]
End: Build log reports failure to install module to gateway