# Change module version using maven in pom.xml

**URL:** <https://forum.inductiveautomation.com/t/change-module-version-using-maven-in-pom-xml/43790>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [February 24, 2021, 4:00pm UTC](https://forum.inductiveautomation.com/t/change-module-version-using-maven-in-pom-xml/43790 "2021-02-24T16:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.delvecchio](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@ivan.delvecchio](https://forum.inductiveautomation.com/u/ivan.delvecchio)\
**Post date:** [February 24, 2021, 4:00pm UTC](https://forum.inductiveautomation.com/t/change-module-version-using-maven-in-pom-xml/43790/1 "2021-02-24T16:00:15Z")

</div>

Hi everyone,

I am new to module developing and I’m facing this problem: I have generated my new project using maven by the follwing command in powershell:  
mvn archetype:generate `

```auto
"-DarchetypeGroupId=com.inductiveautomation.ignitionsdk" `
"-DarchetypeArtifactId=client-designer-gateway-archetype" `
"-DarchetypeVersion=1.2.0"

```

and everything went well, because I get all the folders structure and I can also compile and install the module to my Gateway. But, if I want to change the version or the description in pom.xml file just like this:  
 ![immagine](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f9229f5fc217193e7634a0bf83f79170c6993340.png)

I notice that, when I re-install the module, the description has changed but the version not. Infact, when I open the module.xml file in the .modl, I see always the old version string. The commands that i run are:  
`mvn versions:set -DnewVersion="2.50.1-beta1"`  
which changes the version number in all the pom.xml files, and then:  
`mvn versions:commit`  
If I start a search for the old version string, there are no results but somehow, when run one of the followings:

```auto
mvn clean install
mvn clean compile

```

and then the  
`mvn clean package command`,  
in the module.xml I see always the very first version of my module (1.0.0-snapshot).

I use either Vs Code or Intellij, any help would be very useful.

Thanks

---

<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 24, 2021, 4:06pm UTC](https://forum.inductiveautomation.com/t/change-module-version-using-maven-in-pom-xml/43790/2 "2021-02-24T16:06:20Z")

</div>

The maven versions plugin doesn’t update the `moduleVersion` element in the `ignition-maven-plugin` configuration found in the build `pom.xml`.

If you will restrict your versioning scheme to be compatible with Ignition’s versions you can change it from a hard-coded version to something like `${project.version}` instead as the [examples do](https://github.com/inductiveautomation/ignition-sdk-examples/blob/61a8ccf1c733c75125d3e0f722758119217a507b/opc-ua-device/opc-ua-device-build/pom.xml#L50).

---

<div class="post-metadata">

**Author:** ![ivan.delvecchio](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@ivan.delvecchio](https://forum.inductiveautomation.com/u/ivan.delvecchio)\
**Post date:** [February 24, 2021, 4:12pm UTC](https://forum.inductiveautomation.com/t/change-module-version-using-maven-in-pom-xml/43790/3 "2021-02-24T16:12:12Z")

</div>

Thank you for replying, I will do this way 👍
