Quickstart videos in my module

I compiled my module using Ignition 8.1.5 SDK and noticed the resulting file was 187 MB.

Digging into the module, I noticed the following.
Module.modl\gateway-8.1.5.jar\com\inductiveautomation\ignition\gateway\quickstart\internal\
image

Is there a way to exclude these items from the build?

What does your pom file look like?

<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>

        <dependency>
            <groupId>com.inductiveautomation.ignitionsdk</groupId>
            <artifactId>tag-historian</artifactId>
            <version>${ignition-sdk-version}</version>
            <type>pom</type>
        </dependency>

I think because you’re missing <scope>provided</scope> on the tag-historian artifact you’re getting all of the SDK artifacts included your module as well.

If I add scope provided, the file is only 2mb, but then the module is faulted with the following.
Currently testing on a 8.1.16 gateway.

Caused by: java.lang.ClassNotFoundException: com.inductiveautomation.gateway.tags.history.thsplitter.config.SplitterSettings

at java.base/java.net.URLClassLoader.findClass(Unknown Source)

at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)

at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)

at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

... 18 common frames omitted

I think that means your module isn’t indicating it depends on the Tag History module in the ignition-maven-plugin configuration section and resulting module.xml.

Sorry I am not having luck with this.
Is the artifact / groupID/version the same as the dependency?

In the pom.xml for your -build Maven module you should have something like this: ignition-sdk-examples/pom.xml at ddf234b4a900f28835bf16a350faf265e39f93df · inductiveautomation/ignition-sdk-examples · GitHub

1 Like