Hi Carsten,
Thanks a lot for your post. Its great to know there are such wonderful helpful people like you in the world, who make the world a better place to live!
I am going thru the book link. However there a few issues in following your step by step instructions, first I am using Net-beans IDE, second, the attachments are not accessible to me (protected), third I tried to create a fresh project using ECLIPSE, but it couldn’t find the Ignition Archetypes , it gave some error so I abandoned. But will continue to explore.
In my NetBeans IDE, I created the GCM project using the Ignition:client-designer-gateway-archetype and it does generate the Maven parent project “GCM Ignition Module” as well as the GCM-common, GCM-clinet, GCM-designer, GCM-gateway and GCM-build modules. I deleted the GCM-common, client, designer modules and retained CGM-build and CGM-gateway modules. Then I build the “GCM Ignition Module” parent project it builds successfully giving following msg:
[color=#0000FF]------------------------------------------------------------------------
Reactor Summary:
GCM Ignition Module … SUCCESS [0.498s]
GCM-gateway … SUCCESS [3.767s]
GCM-build … SUCCESS [0.745s]
BUILD SUCCESS
------------------------------------------------------------------------[/color]
Then I build the CGM-gateway module which contains my class files for my Ignition module. It builds successfully. Finally when I build GCM-build module which fails giving following error:
[color=#0000FF]Failed to execute goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:modl (default) on project GCM-build: Execution default of goal com.inductiveautomation.ignitionsdk:ignition-maven-plugin:1.0.8:modl failed. NullPointerException -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] cwiki.apache.org/confluence/disp … nException
[/color]
POM for parent “GCM Ignition Module” is as follows:
[color=#400000]<?xml version="1.0" encoding="UTF-8"?>
4.0.0
<groupId>com.pramanj</groupId>
<artifactId>GCM</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>GCM Ignition Module</name>
<description>GCM Ignition Module</description>
<properties>
<ignition-sdk-version>7.7.5</ignition-sdk-version>
</properties>
<modules>
<module>GCM-build</module>
<module>GCM-gateway</module>
</modules>
<pluginRepositories>
<pluginRepository>
<id>releases</id>
<url>http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-releases</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>releases</id>
<url>http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-releases</url>
</repository>
<repository>
<id>snapshots</id>
<url>http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>thirdparty</id>
<url>http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-thirdparty
</url>
</repository>
</repositories>
[/color]
POM for CGM-gateway module is as follows:
[color=#408000]<?xml version="1.0" encoding="UTF-8"?>
4.0.0
<parent>
<artifactId>GCM</artifactId>
<groupId>com.pramanj</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>GCM-gateway</artifactId>
<dependencies>
<dependency>
<groupId>com.inductiveautomation.ignitionsdk</groupId>
<artifactId>ignition-common</artifactId>
<version>${ignition-sdk-version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.inductiveautomation.ignitionsdk</groupId>
<artifactId>gateway-api</artifactId>
<version>${ignition-sdk-version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
[/color]
POM for GCM-build module is as follows:
[color=#408000]<?xml version="1.0" encoding="UTF-8"?>
4.0.0
<parent>
<artifactId>GCM</artifactId>
<groupId>com.pramanj</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>GCM-build</artifactId>
<dependencies>
<dependency>
<groupId>com.pramanj</groupId>
<artifactId>GCM-gateway</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.inductiveautomation.ignitionsdk</groupId>
<artifactId>ignition-maven-plugin</artifactId>
<version>1.0.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>modl</goal>
</goals>
</execution>
</executions>
<configuration>
<projectScopes>
<projectScope>
<name>GCM-gateway</name>
<scope>G</scope>
</projectScope>
</projectScopes>
<moduleId>com.pramanj.GCM</moduleId>
<moduleName>${project.parent.name}</moduleName>
<moduleDescription>${project.description}</moduleDescription>
<moduleVersion>1.0-SNAPSHOT</moduleVersion>
<requiredIgnitionVersion>7.7.0</requiredIgnitionVersion>
<requiredFrameworkVersion>6</requiredFrameworkVersion>
<hooks>
<hook>
<scope>G</scope>
<hookClass>com.pramanj.gcm.GatewayHook</hookClass>
</hook>
</hooks>
</configuration>
</plugin>
</plugins>
</build>
[/color]
I don’t know what’s going wrong! I am getting stuck and fed up, by can’t give up. Will appreciate your help, using netbeans example if possible!
Prafull