# Mvn package does not produce the .modl file when running on example code

**URL:** <https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 10, 2020, 3:23am UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563 "2020-07-10T03:23:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshah18](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rshah18](https://forum.inductiveautomation.com/u/rshah18)\
**Post date:** [July 10, 2020, 3:23am UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/1 "2020-07-10T03:23:14Z")

</div>

mvn package does not produce the .modl file when running on example code  
it did produce the 1.0.0-SNAPSHOT.jar and build successfully

---

<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:** [July 10, 2020, 11:48am UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/2 "2020-07-10T11:48:45Z")

</div>

For which module?

---

<div class="post-metadata">

**Author:** ![rshah18](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rshah18](https://forum.inductiveautomation.com/u/rshah18)\
**Post date:** [July 10, 2020, 12:26pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/3 "2020-07-10T12:26:47Z")

</div>

managed-tag-provider-gateway. thank you kevin

---

<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:** [July 10, 2020, 12:34pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/4 "2020-07-10T12:34:14Z")

</div>

I don’t see any issue. Are you looking in the `managed-tag-provider-build/target/` folder for the module?

---

<div class="post-metadata">

**Author:** ![rshah18](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rshah18](https://forum.inductiveautomation.com/u/rshah18)\
**Post date:** [July 10, 2020, 12:53pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/5 "2020-07-10T12:53:05Z")

</div>

Yes. I did mvn clean and mvn package a bunch of times same thing happens.

C:\Users\rshah\Documents\workbp\Projects\ignition-sdk-examples\managed-tag-provider\managed-tag-provider-gateway\>mvn package  
[INFO] Scanning for projects…  
[INFO]  
[INFO] --\< com.inductiveautomation.ignition.examples:managed-tag-provider-gateway \>–  
[INFO] Building managed-tag-provider-gateway 1.0.0-SNAPSHOT  
[INFO] --------------------------------[jar]---------------------------------  
[INFO]  
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ managed-tag-provider-gateway —  
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.  
[INFO] skip non existing resourceDirectory C:\Users\rshah\Documents\workbp\Projects\ignition-sdk-examples\managed-tag-provider\managed-tag-provider-gateway\src\main\resources  
[INFO]  
[INFO] — maven-compiler-plugin:3.2:compile (default-compile) @ managed-tag-provider-gateway —  
[INFO] Changes detected - recompiling the module!  
[INFO] Compiling 1 source file to C:\Users\rshah\Documents\workbp\Projects\ignition-sdk-examples\managed-tag-provider\managed-tag-provider-gateway\target\classes  
[INFO]  
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ managed-tag-provider-gateway —  
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.  
[INFO] skip non existing resourceDirectory C:\Users\rshah\Documents\workbp\Projects\ignition-sdk-examples\managed-tag-provider\managed-tag-provider-gateway\src\test\resources  
[INFO]  
[INFO] — maven-compiler-plugin:3.2:testCompile (default-testCompile) @ managed-tag-provider-gateway —  
[INFO] No sources to compile  
[INFO]  
[INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ managed-tag-provider-gateway —  
[INFO] No tests to run.  
[INFO]  
[INFO] — maven-jar-plugin:2.4:jar (default-jar) @ managed-tag-provider-gateway —  
[INFO] Building jar: C:\Users\rshah\Documents\workbp\Projects\ignition-sdk-examples\managed-tag-provider\managed-tag-provider-gateway\target\managed-tag-provider-gateway-1.0.0-SNAPSHOT.jar  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD SUCCESS  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 4.422 s  
[INFO] Finished at: 2020-07-10T05:52:20-07:00  
[INFO] ------------------------------------------------------------------------

---

<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:** [July 10, 2020, 12:58pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/6 "2020-07-10T12:58:32Z")

</div>

Run `mvn package` from the root of the example (`managed-tag-provider/`)

---

<div class="post-metadata">

**Author:** ![rshah18](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rshah18](https://forum.inductiveautomation.com/u/rshah18)\
**Post date:** [July 10, 2020, 1:12pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/7 "2020-07-10T13:12:49Z")

</div>

Thank you very much kevin. that fixed it. is it because of the external pom file ?

---

<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:** [July 10, 2020, 2:11pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/8 "2020-07-10T14:11:29Z")

</div>

The ignition maven module plugin just only builds the module file when the entire project is built, not just one of the maven sub-modules.

---

<div class="post-metadata">

**Author:** ![rshah18](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@rshah18](https://forum.inductiveautomation.com/u/rshah18)\
**Post date:** [July 10, 2020, 3:12pm UTC](https://forum.inductiveautomation.com/t/mvn-package-does-not-produce-the-modl-file-when-running-on-example-code/36563/9 "2020-07-10T15:12:09Z")

</div>

thank you!
