# Missing Dependency in SDK Example Modules

**URL:** <https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163>\
**Category:** Module Development\
**Created:** [September 24, 2016, 4:37am UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163 "2016-09-24T04:37:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMcguigan](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JMcguigan](https://forum.inductiveautomation.com/u/JMcguigan)\
**Post date:** [September 24, 2016, 4:37am UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/1 "2016-09-24T04:37:19Z")

</div>

Trying to build the abstract tag driver example with Maven I found was trying to download a dependency which was not available (org.eclipse.milo:sdk-client:0.1.0-SNAPSHOT). I fixed it by excluding the dependency, modifying the gateway POM file as shown below:

Before:

```auto
        <dependency>
            <groupId>com.inductiveautomation.ignitionsdk</groupId>
            <artifactId>driver-api</artifactId>
            <version>7.8.4-SNAPSHOT</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
```

After:

```auto
        <dependency>
            <groupId>com.inductiveautomation.ignitionsdk</groupId>
            <artifactId>driver-api</artifactId>
            <version>7.8.4-SNAPSHOT</version>
            <type>pom</type>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.eclipse.milo</groupId>
                    <artifactId>sdk-client</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
```

This issue also affects the Modbus driver. The example abstract tag driver module builds and seems to work correctly after this fix. Is this the correct way to resolve this issue?

---

<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 26, 2016, 3:36pm UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/2 "2016-09-26T15:36:03Z")

</div>

This is something that ultimately needs to be fixed on our side, but as a workaround you can add an entry for the Sonatype snapshot repository to the section of the top-level pom.xml for any project that fails to build because of this error.

```auto
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
```

---

<div class="post-metadata">

**Author:** ![Justin\_Zhu](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@Justin\_Zhu](https://forum.inductiveautomation.com/u/Justin_Zhu)\
**Post date:** [February 8, 2017, 2:55am UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/3 "2017-02-08T02:55:58Z")

</div>

[quote=“Kevin.Herron”]This is something that ultimately needs to be fixed on our side, but as a workaround you can add an entry for the Sonatype snapshot repository to the section of the top-level pom.xml for any project that fails to build because of this error.

`
        <repository>
            <id>sonatype-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
`[/quote]

Now the “0.1.0-SNAPSHOT” folder is missing on that repository. The new folder “0.1.1-SNAPSHOT” is there, so from my side, example is compiled failed again.

---

<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:** [February 8, 2017, 3:55am UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/4 "2017-02-08T03:55:31Z")

</div>

We need to publish a 7.8.5 SDK, which should correct all the dependencies. Milo should be 0.1.0 release now.

---

<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:** [February 8, 2017, 1:21pm UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/5 "2017-02-08T13:21:20Z")

</div>

I still have not switched from ant to maven, and this sort of misery and maintenance hassle will continue keeping me away. /-:

---

<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:** [February 8, 2017, 5:03pm UTC](https://forum.inductiveautomation.com/t/missing-dependency-in-sdk-example-modules/12163/6 "2017-02-08T17:03:45Z")

</div>

We released a 7.8.5 SDK this morning that should hopefully resolve the dependency problems…

If not it’s always possible to add an exclusion for Milo on the dependency that is referencing the SNAPSHOT version and then add your own dependency on the release as a workaround.
