# Licensing a module

**URL:** <https://forum.inductiveautomation.com/t/licensing-a-module/38539>\
**Category:** Module Development\
**Created:** [September 9, 2020, 9:19pm UTC](https://forum.inductiveautomation.com/t/licensing-a-module/38539 "2020-09-09T21:19:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cboin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@cboin](https://forum.inductiveautomation.com/u/cboin)\
**Post date:** [September 9, 2020, 9:19pm UTC](https://forum.inductiveautomation.com/t/licensing-a-module/38539/1 "2020-09-09T21:19:45Z")

</div>

Hi All. I am in the process of trying to add licensing restrictions to my module.

I remember seeing/maybe I dreamed about adding a flag in the pom.xml build file to say my module required licensing. Is this true?

I have already implemented notifyLicenseStateChanged() and also added the isTrialExpired() checks into my module. If I do setup a licensing requirement (using Ignitions licensing model) do I just use the licenseState.getLicenseMode() == LicenseMode.Activated logic?

---

<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 24, 2020, 9:04pm UTC](https://forum.inductiveautomation.com/t/licensing-a-module/38539/2 "2020-09-24T21:04:45Z")

</div>

The flag is the opposite: `isFreeModule()`, and it defaults `false`. Your module by default is not considered “free” and will get licensing-related calls.

---

<div class="post-metadata">

**Author:** ![cboin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@cboin](https://forum.inductiveautomation.com/u/cboin)\
**Post date:** [September 24, 2020, 9:05pm UTC](https://forum.inductiveautomation.com/t/licensing-a-module/38539/3 "2020-09-24T21:05:35Z")

</div>

Thanks Kevin!
