"Connect timed out" on initial module build

I created an empty module for the first time from the instructions in your SDK Guide (The Module Code - Ignition SDK Programmer's Guide - Ignition Documentation). When trying to build it in eclipse, however, I get the “Connect timed out” error below. But I do see what look like other successes prior to that, so I’m not sure what’s going wrong. Any ideas?

[DEBUG] Using connector AetherRepositoryConnector with priority 100.0 for http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-releases
[INFO] Downloading from : http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-releases/com/inductiveautomation/ignitionsdk/ignition-common/7.7.5/ignition-common-7.7.5.pom
[DEBUG] Writing tracking file C:\Users\jyork\.m2\repository\com\inductiveautomation\ignitionsdk\ignition-common\7.7.5\ignition-common-7.7.5.pom.lastUpdated
[DEBUG] Using connector AetherRepositoryConnector with priority 100.0 for http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-snapshots
[INFO] Downloading from : http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-snapshots/com/inductiveautomation/ignitionsdk/ignition-common/7.7.5/ignition-common-7.7.5.pom
[DEBUG] Writing tracking file C:\Users\jyork\.m2\repository\com\inductiveautomation\ignitionsdk\ignition-common\7.7.5\ignition-common-7.7.5.pom.lastUpdated
[DEBUG] Using connector AetherRepositoryConnector with priority 100.0 for http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-thirdparty
[INFO] Downloading from : http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-thirdparty/com/inductiveautomation/ignitionsdk/ignition-common/7.7.5/ignition-common-7.7.5.pom
[DEBUG] Writing tracking file C:\Users\jyork\.m2\repository\com\inductiveautomation\ignitionsdk\ignition-common\7.7.5\ignition-common-7.7.5.pom.lastUpdated
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=909300, ConflictMarker.markTime=142600, ConflictMarker.nodeCount=2, ConflictIdSorter.graphTime=459900, ConflictIdSorter.topsortTime=431200, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3276900, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=300484247200, DefaultDependencyCollector.transformTime=7519600}

...

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for testmodule Ignition Module 1.0:
[INFO] 
[INFO] testmodule Ignition Module ............................ SUCCESS [  0.006 s]
[INFO] testmodule-common ..................................... FAILURE [05:00 min]
[INFO] testmodule-client ..................................... SKIPPED
[INFO] testmodule-designer ................................... SKIPPED
[INFO] testmodule-gateway .................................... SKIPPED
[INFO] testmodule-build ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:00 min
[INFO] Finished at: 2021-09-29T09:27:47-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project testmodule-common: Could not resolve dependencies for project com.testcompany.test:testmodule-common:jar:1.0: Failed to collect dependencies at com.inductiveautomation.ignitionsdk:ignition-common:pom:7.7.5: Failed to read artifact descriptor for com.inductiveautomation.ignitionsdk:ignition-common:pom:7.7.5: Could not transfer artifact com.inductiveautomation.ignitionsdk:ignition-common:pom:7.7.5 from/to releases (http://nexus.inductiveautomation.com:8081/nexus/content/repositories/inductiveautomation-releases): Connect timed out -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project testmodule-common: Could not resolve dependencies for project com.testcompany.test:testmodule-common:jar:1.0: Failed to collect dependencies at com.inductiveautomation.ignitionsdk:ignition-common:pom:7.7.5
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:269)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:147)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:248)

The Nexus URL repositories from that link are out of date.

Check out some of the examples for current URL: ignition-sdk-examples/pom.xml at master · inductiveautomation/ignition-sdk-examples · GitHub

Thank you!

In case anyone runs into the same problems, the other change I had to make was to change 1.6 to 1.8 in the pom.xml files:

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

If you’re building a module for Ignition 8.x you can change that to 11 instead of 1.8.

Another thank you. I simply reacted to the build message and didn’t think about what I was changing. From your SDK document: “Ignition platform 8 requires a Java 11 JDK”.