# Scripting problem when moving from ant to maven

**URL:** <https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226>\
**Category:** Module Development\
**Created:** [October 12, 2016, 9:27am UTC](https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226 "2016-10-12T09:27:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mmacerl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmacerl/32/4024_2.png) [@Mmacerl](https://forum.inductiveautomation.com/u/Mmacerl)\
**Post date:** [October 12, 2016, 9:27am UTC](https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226/1 "2016-10-12T09:27:02Z")

</div>

I made a module with custom scripts which I use in all scopes. I was building it with ant and it worked perfectly. Now I moved to maven and built the same module with it. My custom scripts are normally visible but they don’t work anymore. Whenever I try to use them I get the next error:

Where could be the problem?

[attachment=0]Selection\_043.png[/attachment]

---

<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:** [October 12, 2016, 11:07am UTC](https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226/2 "2016-10-12T11:07:30Z")

</div>

Unzip a working .modl file and compare its contents to the latest .modl. That should give you a clue.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [October 12, 2016, 5:37pm UTC](https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226/3 "2016-10-12T17:37:53Z")

</div>

One thing I have seen trip up people moving from ant to maven (or gradle) is that their resources/project folder structure may not follow the [standard directory structure](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) used by the newer build systems. Might want to verify your project is set up in a way that maven recognizes, or customize your pom.xml to pull in any non-standard resources.

---

<div class="post-metadata">

**Author:** ![Mmacerl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmacerl/32/4024_2.png) [@Mmacerl](https://forum.inductiveautomation.com/u/Mmacerl)\
**Post date:** [October 13, 2016, 5:56am UTC](https://forum.inductiveautomation.com/t/scripting-problem-when-moving-from-ant-to-maven/12226/4 "2016-10-13T05:56:24Z")

</div>

> [@pturmel](#):
>
> Unzip a working .modl file and compare its contents to the latest .modl. That should give you a clue.

Thank you for suggestion. I found the problem in module.xml file. The tag was inconsistent. Since I changed it to "com.aplikom.labagentmanager" everything works fine now.
