Author Message
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
I am confused as to where to set the version for a dynamic task. I changed version number to 1.0.0.0.1 in the top level pom.xml, rebuilt with mvn clean package, and it still creates an svar with the previous version (1.0.0.0.0).

<properties>
<serviceName>ArrowTask</serviceName>
<serviceVersion>1.0.0.0.1</serviceVersion>
<checkstyle.version>2.2</checkstyle.version>
</properties>

I went into the pom.xml under task-snapin-svar and found that it always seems to want to create an svar with 1.0.0.0.0.

<destFileName>ArrowTask-1.0.0.0.0.svar</destFileName>

I then read in the build document that there is snapinVersion in tasks.json.

"snapinVersion": "3.0",

That seems to have no bearing on the 1.0.0.0.0 version of the svar.

So, what is the right way to change version so my next dynamic task is not the same version as the previous?

Thanks!
ATGracey
Joined: Jul 28, 2015
Messages: 9
Offline
I changed my svar pom.xml to have the destFileName:

<destFileName>${serviceName}-${serviceVersion}.svar</destFileName>

This should allow it to pull the changes from the variable in the parent project down.
Andrew.Prokop
Joined: Oct 28, 2014
Messages: 179
Offline
Thanks for the tip!
Go to:   
Mobile view