# My new module of depends on my managed tag provider module be loaded first

**URL:** <https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [December 8, 2022, 9:06pm UTC](https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406 "2022-12-08T21:06:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom.prodehl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tom.prodehl/32/22713_2.png) [@tom.prodehl](https://forum.inductiveautomation.com/u/tom.prodehl)\
**Post date:** [December 8, 2022, 9:06pm UTC](https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406/1 "2022-12-08T21:06:31Z")

</div>

I have a managed tag provider for values that I produce. I have a new module that I want to write to the tags in the managed tag provider, but the dependent new module is loaded before the tag provider module. Is there a way to control this or express the dependency?

BTW, can't wait for Java 17 support, before 21 is new LTS.

---

<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:** [December 8, 2022, 9:12pm UTC](https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406/2 "2022-12-08T21:12:40Z")

</div>

What dependencies are you declaring in your module.xml file?

---

<div class="post-metadata">

**Author:** ![tom.prodehl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tom.prodehl/32/22713_2.png) [@tom.prodehl](https://forum.inductiveautomation.com/u/tom.prodehl)\
**Post date:** [December 8, 2022, 9:39pm UTC](https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406/3 "2022-12-08T21:39:47Z")

</div>

How do i declare dependencies among modules in the module.xml file? I did not see that module.xml reference page. So hard to find things in general.

---

<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:** [December 8, 2022, 9:57pm UTC](https://forum.inductiveautomation.com/t/my-new-module-of-depends-on-my-managed-tag-provider-module-be-loaded-first/67406/4 "2022-12-08T21:57:17Z")

</div>

It looks something like this:

```auto
                <depends>
                    <depend>
                        <scope>G</scope>
                        <moduleId>some.module.id</moduleId>
                    </depend>
                </depends>

```

There's an example of it mentioned on [this page](https://docs.inductiveautomation.com/display/SE/The+Ignition+Maven+Plugin) and probably in some of the examples.

The Module SDK is definitely under-documented in every conceivable way.
