You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Pradeep Soundararajan <pr...@citrix.com> on 2012/09/13 18:28:25 UTC

Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/
-----------------------------------------------------------

Review request for cloudstack, Chip Childers and edison su.


Description
-------

The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 

>> Removed the occurrences of SNAPSHOT


Diffs
-----

  agent/pom.xml a559580 
  api/pom.xml db14775 
  awsapi/pom.xml a583384 
  client/pom.xml 50b85e9 
  console-proxy/pom.xml 8bfb753 
  core/pom.xml 510cb04 
  deps/XenServerJava/pom.xml 1337514 
  deps/pom.xml be30c9a 
  patches/pom.xml d62fc86 
  plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
  plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
  plugins/file-systems/netapp/pom.xml f10e5a4 
  plugins/host-allocators/random/pom.xml ad66c0e 
  plugins/hypervisors/kvm/pom.xml 2d1a001 
  plugins/hypervisors/ovm/pom.xml a8b23d0 
  plugins/hypervisors/vmware/pom.xml 435ae38 
  plugins/hypervisors/xen/pom.xml bf38e47 
  plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
  plugins/network-elements/f5/pom.xml 0cba48c 
  plugins/network-elements/juniper-srx/pom.xml 38a2b55 
  plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
  plugins/network-elements/netscaler/pom.xml 377e6e0 
  plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
  plugins/network-elements/ovs/pom.xml 02d455c 
  plugins/pom.xml 206d4a1 
  plugins/storage-allocators/random/pom.xml 6cb60cd 
  plugins/user-authenticators/ldap/pom.xml 7facc3f 
  plugins/user-authenticators/md5/pom.xml 1dac92d 
  plugins/user-authenticators/plain-text/pom.xml a4280a3 
  pom.xml 972d645 
  server/pom.xml f7178d8 
  test/pom.xml f70a89f 
  usage/pom.xml 92e5e72 
  utils/pom.xml e8d7827 
  vmware-base/pom.xml 1dabe83 
  wscript f1c9b62 

Diff: https://reviews.apache.org/r/7083/diff/


Testing
-------

Able to execute mvn install successfully after the changes...


Thanks,

Pradeep Soundararajan


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Rohit Yadav <ro...@citrix.com>.

> On Sept. 14, 2012, 1:26 p.m., Chip Childers wrote:
> > pom.xml, line 178
> > <https://reviews.apache.org/r/7083/diff/2/?file=155110#file155110line178>
> >
> >     This isn't correct, since we want to use the tomcat7 plugin as specified.

Pradeep can you fix the version number using a global maven variable, like define a <cs.version></cs.version> in top pom.xml and use ${cs.version} in all sub-modules, so we won't have to update version info in every submodule every time we do a release?


- Rohit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11534
-----------------------------------------------------------


On Sept. 14, 2012, 12:36 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2012, 12:36 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 02aa64f 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml be30c9a 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 2d1a001 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 972d645 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript f1c9b62 
>   wscript_build 2de698c 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by edison su <ed...@citrix.com>.

> On Sept. 14, 2012, 1:26 p.m., Chip Childers wrote:
> > Generally, I think that all of the child projects should inherit their version from the parent project's version.  This can be accomplished by referencing the parent version as a variable.  I'm not a maven guy, but I looked at a few samples out there, and this appears to be the right way to go.
> > 
> > However, all that being said...  Edison's comment earlier about this not actually being needed is important. If ant is doing things correctly, then this doesn't actually matter much.  IMO, I would like to see the maven project versions get that inheritance, so that it's already in place for when we convert from ant build tasks to maven builds completely.
> > 
> > Can you make the changes I've suggested (including the note about not modifying the tomcat7 plugin version), and then resubmit the patch?
> > 
> > In the meantime, CLOUDSTACK-43 may be able to be closed already.
> > 
> > Edison, do you agree?

Yes, I agree. right now, we are using ant to build JARs, so the version number in pom.xml doesn't bother us at all. After we switch to use maven to build JARs, we can change the the version number.


- edison


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11534
-----------------------------------------------------------


On Sept. 14, 2012, 12:36 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2012, 12:36 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 02aa64f 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml be30c9a 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 2d1a001 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 972d645 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript f1c9b62 
>   wscript_build 2de698c 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Chip Childers <ch...@sungard.com>.

> On Sept. 14, 2012, 1:26 p.m., Chip Childers wrote:
> > Generally, I think that all of the child projects should inherit their version from the parent project's version.  This can be accomplished by referencing the parent version as a variable.  I'm not a maven guy, but I looked at a few samples out there, and this appears to be the right way to go.
> > 
> > However, all that being said...  Edison's comment earlier about this not actually being needed is important. If ant is doing things correctly, then this doesn't actually matter much.  IMO, I would like to see the maven project versions get that inheritance, so that it's already in place for when we convert from ant build tasks to maven builds completely.
> > 
> > Can you make the changes I've suggested (including the note about not modifying the tomcat7 plugin version), and then resubmit the patch?
> > 
> > In the meantime, CLOUDSTACK-43 may be able to be closed already.
> > 
> > Edison, do you agree?
> 
> edison su wrote:
>     Yes, I agree. right now, we are using ant to build JARs, so the version number in pom.xml doesn't bother us at all. After we switch to use maven to build JARs, we can change the the version number.

Pradeep - The changes I suggested would be good to have ahead of a change to use maven for the actual build phase anyway.  Could you make stuff inherit from the parent project for version, and correct the tomcat7 plugin version?  I think we should pull in the change with those adjustments.


- Chip


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11534
-----------------------------------------------------------


On Sept. 14, 2012, 12:36 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2012, 12:36 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 02aa64f 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml be30c9a 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 2d1a001 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 972d645 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript f1c9b62 
>   wscript_build 2de698c 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Chip Childers <ch...@sungard.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11534
-----------------------------------------------------------


Generally, I think that all of the child projects should inherit their version from the parent project's version.  This can be accomplished by referencing the parent version as a variable.  I'm not a maven guy, but I looked at a few samples out there, and this appears to be the right way to go.

However, all that being said...  Edison's comment earlier about this not actually being needed is important. If ant is doing things correctly, then this doesn't actually matter much.  IMO, I would like to see the maven project versions get that inheritance, so that it's already in place for when we convert from ant build tasks to maven builds completely.

Can you make the changes I've suggested (including the note about not modifying the tomcat7 plugin version), and then resubmit the patch?

In the meantime, CLOUDSTACK-43 may be able to be closed already.

Edison, do you agree?


pom.xml
<https://reviews.apache.org/r/7083/#comment24781>

    This isn't correct, since we want to use the tomcat7 plugin as specified.


- Chip Childers


On Sept. 14, 2012, 12:36 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2012, 12:36 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 02aa64f 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml be30c9a 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 2d1a001 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 972d645 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript f1c9b62 
>   wscript_build 2de698c 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by edison su <ed...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11804
-----------------------------------------------------------



cloud.spec
<https://reviews.apache.org/r/7083/#comment25339>

    Don't you need to change debian/cloud-deps.install also?



deps/XenServerJava/pom.xml
<https://reviews.apache.org/r/7083/#comment25337>

    why not use cs.xapi.version here?



pom.xml
<https://reviews.apache.org/r/7083/#comment25338>

    why remove snapshot here?


- edison su


On Sept. 21, 2012, 4:15 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 21, 2012, 4:15 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Hugo Trippaers <ht...@schubergphilis.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review12065
-----------------------------------------------------------


Heya,

There is no need to make this change in the pom.xml files. Maven includes a mechanism to get this done automagically, but we will need to prepare for this.
In maven land a release is a onetime event where a release manager decides to push a button and a release happens. To support this maven has the release:prepare goal to help the release manager with this.

This goal will create a tag in the version management system, temporary update the pom to show a release version  (i.e. ditch the -SNAPSHOT extension) and push all created artifacts to the maven repository. This is a nice pointer to the related documentation: http://maven.apache.org/guides/mini/guide-releasing.html

Cheers,

Hugo

- Hugo Trippaers


On Sept. 25, 2012, 12:46 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2012, 12:46 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 908a411 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml e3e535a 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Chip Childers <ch...@sungard.com>.

> On Sept. 27, 2012, 1:30 p.m., Rohit Yadav wrote:
> > To be reviewed after 4.0, if that is fine.

Agreed - this is for after 4.0.


- Chip


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11982
-----------------------------------------------------------


On Sept. 25, 2012, 12:46 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2012, 12:46 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 908a411 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml e3e535a 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Rohit Yadav <ro...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11982
-----------------------------------------------------------


To be reviewed after 4.0, if that is fine.

- Rohit Yadav


On Sept. 25, 2012, 12:46 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2012, 12:46 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec 908a411 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml e3e535a 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/
-----------------------------------------------------------

(Updated Sept. 25, 2012, 12:46 p.m.)


Review request for cloudstack, Chip Childers and edison su.


Description
-------

The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 

>> Removed the occurrences of SNAPSHOT


Diffs (updated)
-----

  agent/pom.xml a559580 
  api/pom.xml db14775 
  awsapi/pom.xml a583384 
  client/pom.xml 50b85e9 
  cloud.spec 908a411 
  console-proxy/pom.xml 8bfb753 
  core/pom.xml 510cb04 
  debian/cloud-deps.install 74aade1 
  deps/XenServerJava/pom.xml 1337514 
  deps/pom.xml 1e20083 
  patches/pom.xml d62fc86 
  plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
  plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
  plugins/file-systems/netapp/pom.xml f10e5a4 
  plugins/host-allocators/random/pom.xml ad66c0e 
  plugins/hypervisors/kvm/pom.xml 4863085 
  plugins/hypervisors/ovm/pom.xml a8b23d0 
  plugins/hypervisors/vmware/pom.xml 435ae38 
  plugins/hypervisors/xen/pom.xml bf38e47 
  plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
  plugins/network-elements/f5/pom.xml 0cba48c 
  plugins/network-elements/juniper-srx/pom.xml 38a2b55 
  plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
  plugins/network-elements/netscaler/pom.xml 377e6e0 
  plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
  plugins/network-elements/ovs/pom.xml 02d455c 
  plugins/pom.xml 206d4a1 
  plugins/storage-allocators/random/pom.xml 6cb60cd 
  plugins/user-authenticators/ldap/pom.xml 7facc3f 
  plugins/user-authenticators/md5/pom.xml 1dac92d 
  plugins/user-authenticators/plain-text/pom.xml a4280a3 
  pom.xml e3e535a 
  server/pom.xml f7178d8 
  test/pom.xml f70a89f 
  usage/pom.xml 92e5e72 
  utils/pom.xml e8d7827 
  vmware-base/pom.xml 1dabe83 
  wscript_build 4264822 

Diff: https://reviews.apache.org/r/7083/diff/


Testing
-------

Able to execute mvn install successfully after the changes...


Thanks,

Pradeep Soundararajan


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Rohit Yadav <ro...@citrix.com>.

> On Sept. 24, 2012, 10:56 a.m., Rohit Yadav wrote:
> > Ship It!
> 
> Rohit Yadav wrote:
>     Note: The patch is find, but the refactoring of version tags to top level pom has one issue. If you now cd to a submodule and do mvn <lifecycle command>, it will fail in most cases. As submodule poms won't know where to get global variables.
>     
>     One solution in that case is to select a project, we need to build etc., like mvn -pl <project>
>     Other solution is to set relative path to parent as done in plugins/**
>       <parent>
>         <groupId>org.apache.cloudstack</groupId>
>         <artifactId>cloudstack-plugins</artifactId>
>         <version>${cs.version}</version>
>         <relativePath>../../pom.xml</relativePath>
>       </parent>

Found one more issue. The toplevel pom has version<>    <version>${cs.version}</version>
This fails as the variable declaration is below that.

To fix this, set the version here around line 31. And use Maven's reflections to get the variable. Like in submodule use ${project.parent.version} to get the version resolution from parent. In plugin/** one may use ${project.parent.parent.version}


- Rohit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


RE: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.
Yes, working on to fix it..

Thanks,
Pradeep.S


-----Original Message-----
From: Chip Childers [mailto:noreply@reviews.apache.org] On Behalf Of Chip Childers
Sent: Monday, September 24, 2012 8:46 PM
To: Chip Childers; Edison Su
Cc: cloudstack; Rohit Yadav; Pradeep Soundararajan
Subject: Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.



> On Sept. 24, 2012, 10:56 a.m., Rohit Yadav wrote:
> > Ship It!
> 
> Rohit Yadav wrote:
>     Note: The patch is find, but the refactoring of version tags to top level pom has one issue. If you now cd to a submodule and do mvn <lifecycle command>, it will fail in most cases. As submodule poms won't know where to get global variables.
>     
>     One solution in that case is to select a project, we need to build etc., like mvn -pl <project>
>     Other solution is to set relative path to parent as done in plugins/**
>       <parent>
>         <groupId>org.apache.cloudstack</groupId>
>         <artifactId>cloudstack-plugins</artifactId>
>         <version>${cs.version}</version>
>         <relativePath>../../pom.xml</relativePath>
>       </parent>
> 
> Rohit Yadav wrote:
>     Found one more issue. The toplevel pom has version<>    <version>${cs.version}</version>
>     This fails as the variable declaration is below that.
>     
>     To fix this, set the version here around line 31. And use Maven's reflections to get the variable. Like in submodule use ${project.parent.version} to get the version resolution from parent. In plugin/** one may use ${project.parent.parent.version}

We probably shouldn't commit this change until the above 2 items are resolved.


- Chip


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Chip Childers <ch...@sungard.com>.

> On Sept. 24, 2012, 10:56 a.m., Rohit Yadav wrote:
> > Ship It!
> 
> Rohit Yadav wrote:
>     Note: The patch is find, but the refactoring of version tags to top level pom has one issue. If you now cd to a submodule and do mvn <lifecycle command>, it will fail in most cases. As submodule poms won't know where to get global variables.
>     
>     One solution in that case is to select a project, we need to build etc., like mvn -pl <project>
>     Other solution is to set relative path to parent as done in plugins/**
>       <parent>
>         <groupId>org.apache.cloudstack</groupId>
>         <artifactId>cloudstack-plugins</artifactId>
>         <version>${cs.version}</version>
>         <relativePath>../../pom.xml</relativePath>
>       </parent>
> 
> Rohit Yadav wrote:
>     Found one more issue. The toplevel pom has version<>    <version>${cs.version}</version>
>     This fails as the variable declaration is below that.
>     
>     To fix this, set the version here around line 31. And use Maven's reflections to get the variable. Like in submodule use ${project.parent.version} to get the version resolution from parent. In plugin/** one may use ${project.parent.parent.version}

We probably shouldn't commit this change until the above 2 items are resolved.


- Chip


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Rohit Yadav <ro...@citrix.com>.

> On Sept. 24, 2012, 10:56 a.m., Rohit Yadav wrote:
> > Ship It!

Note: The patch is find, but the refactoring of version tags to top level pom has one issue. If you now cd to a submodule and do mvn <lifecycle command>, it will fail in most cases. As submodule poms won't know where to get global variables.

One solution in that case is to select a project, we need to build etc., like mvn -pl <project>
Other solution is to set relative path to parent as done in plugins/**
  <parent>
    <groupId>org.apache.cloudstack</groupId>
    <artifactId>cloudstack-plugins</artifactId>
    <version>${cs.version}</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>


- Rohit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.

> On Sept. 24, 2012, 10:56 a.m., Rohit Yadav wrote:
> > Ship It!
> 
> Rohit Yadav wrote:
>     Note: The patch is find, but the refactoring of version tags to top level pom has one issue. If you now cd to a submodule and do mvn <lifecycle command>, it will fail in most cases. As submodule poms won't know where to get global variables.
>     
>     One solution in that case is to select a project, we need to build etc., like mvn -pl <project>
>     Other solution is to set relative path to parent as done in plugins/**
>       <parent>
>         <groupId>org.apache.cloudstack</groupId>
>         <artifactId>cloudstack-plugins</artifactId>
>         <version>${cs.version}</version>
>         <relativePath>../../pom.xml</relativePath>
>       </parent>
> 
> Rohit Yadav wrote:
>     Found one more issue. The toplevel pom has version<>    <version>${cs.version}</version>
>     This fails as the variable declaration is below that.
>     
>     To fix this, set the version here around line 31. And use Maven's reflections to get the variable. Like in submodule use ${project.parent.version} to get the version resolution from parent. In plugin/** one may use ${project.parent.parent.version}
> 
> Chip Childers wrote:
>     We probably shouldn't commit this change until the above 2 items are resolved.

I have explored some more. As of now, I think we cannot have the ${cs.version} and its subsequent relativePath entries in all the sub module's POM <parent> section.  It is not resolving the variable ${cs.version} even with their relative path.

All of my build (mvn) executed for each submodules have been failed. Only my main mvn build has been succeeded with ${cs.version} with some warnings. 

My first patch is working fine in all the levels since I have exported the version explicitly. Attaching my first patch once again for your review. This will resolve the issue with the occurrences of SNAPSHOT.

There might be some resolution to fix this. Please let me know if any one aware of this? or shall we revisit this after 4.0.


- Pradeep


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Rohit Yadav <ro...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11827
-----------------------------------------------------------

Ship it!


Ship It!

- Rohit Yadav


On Sept. 24, 2012, 10:48 a.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 24, 2012, 10:48 a.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   cloud.spec c1fe56a 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   debian/cloud-deps.install 74aade1 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml 1e20083 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 4863085 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 49a71a1 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript_build 4264822 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/
-----------------------------------------------------------

(Updated Sept. 24, 2012, 10:48 a.m.)


Review request for cloudstack, Chip Childers and edison su.


Changes
-------

Fixed the review comments...

Also, please take a look at the warnings. Apply this patch if it is fine to go with..


Description
-------

The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 

>> Removed the occurrences of SNAPSHOT


Diffs (updated)
-----

  agent/pom.xml a559580 
  api/pom.xml db14775 
  awsapi/pom.xml a583384 
  client/pom.xml 50b85e9 
  cloud.spec c1fe56a 
  console-proxy/pom.xml 8bfb753 
  core/pom.xml 510cb04 
  debian/cloud-deps.install 74aade1 
  deps/XenServerJava/pom.xml 1337514 
  deps/pom.xml 1e20083 
  patches/pom.xml d62fc86 
  plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
  plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
  plugins/file-systems/netapp/pom.xml f10e5a4 
  plugins/host-allocators/random/pom.xml ad66c0e 
  plugins/hypervisors/kvm/pom.xml 4863085 
  plugins/hypervisors/ovm/pom.xml a8b23d0 
  plugins/hypervisors/vmware/pom.xml 435ae38 
  plugins/hypervisors/xen/pom.xml bf38e47 
  plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
  plugins/network-elements/f5/pom.xml 0cba48c 
  plugins/network-elements/juniper-srx/pom.xml 38a2b55 
  plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
  plugins/network-elements/netscaler/pom.xml 377e6e0 
  plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
  plugins/network-elements/ovs/pom.xml 02d455c 
  plugins/pom.xml 206d4a1 
  plugins/storage-allocators/random/pom.xml 6cb60cd 
  plugins/user-authenticators/ldap/pom.xml 7facc3f 
  plugins/user-authenticators/md5/pom.xml 1dac92d 
  plugins/user-authenticators/plain-text/pom.xml a4280a3 
  pom.xml 49a71a1 
  server/pom.xml f7178d8 
  test/pom.xml f70a89f 
  usage/pom.xml 92e5e72 
  utils/pom.xml e8d7827 
  vmware-base/pom.xml 1dabe83 
  wscript_build 4264822 

Diff: https://reviews.apache.org/r/7083/diff/


Testing
-------

Able to execute mvn install successfully after the changes...


Thanks,

Pradeep Soundararajan


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/
-----------------------------------------------------------

(Updated Sept. 21, 2012, 4:15 p.m.)


Review request for cloudstack, Chip Childers and edison su.


Changes
-------

Guys, updated the patch accordingly. I am able to perform mvn and waf rpm. But I am getting some warnings initially, please take a look at the attached logs...

/usr/lib/jvm/java
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.cloudstack:cloud-api:jar:4.0.0
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.cloudstack:cloudstack:${cs.version}, /var/lib/jenkins/workspace/test-cloudstack-4.0-rhel6.3/pom.xml, line 31, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.cloudstack:cloud-awsapi:jar:4.0.0
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.cloudstack:cloud-awsapi:${cs.version}, /var/lib/jenkins/workspace/test-cloudstack-4.0-rhel6.3/awsapi/pom.xml, line 23, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.cloudstack:cloudstack:pom:4.0.0
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.cloudstack:cloudstack:${cs.version}, /var/lib/jenkins/workspace/test-cloudstack-4.0-rhel6.3/pom.xml, line 31, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------


Description
-------

The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 

>> Removed the occurrences of SNAPSHOT


Diffs (updated)
-----

  agent/pom.xml a559580 
  api/pom.xml db14775 
  awsapi/pom.xml a583384 
  client/pom.xml 50b85e9 
  cloud.spec c1fe56a 
  console-proxy/pom.xml 8bfb753 
  core/pom.xml 510cb04 
  deps/XenServerJava/pom.xml 1337514 
  deps/pom.xml 1e20083 
  patches/pom.xml d62fc86 
  plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
  plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
  plugins/file-systems/netapp/pom.xml f10e5a4 
  plugins/host-allocators/random/pom.xml ad66c0e 
  plugins/hypervisors/kvm/pom.xml 4863085 
  plugins/hypervisors/ovm/pom.xml a8b23d0 
  plugins/hypervisors/vmware/pom.xml 435ae38 
  plugins/hypervisors/xen/pom.xml bf38e47 
  plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
  plugins/network-elements/f5/pom.xml 0cba48c 
  plugins/network-elements/juniper-srx/pom.xml 38a2b55 
  plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
  plugins/network-elements/netscaler/pom.xml 377e6e0 
  plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
  plugins/network-elements/ovs/pom.xml 02d455c 
  plugins/pom.xml 206d4a1 
  plugins/storage-allocators/random/pom.xml 6cb60cd 
  plugins/user-authenticators/ldap/pom.xml 7facc3f 
  plugins/user-authenticators/md5/pom.xml 1dac92d 
  plugins/user-authenticators/plain-text/pom.xml a4280a3 
  pom.xml 49a71a1 
  server/pom.xml f7178d8 
  test/pom.xml f70a89f 
  usage/pom.xml 92e5e72 
  utils/pom.xml e8d7827 
  vmware-base/pom.xml 1dabe83 
  wscript_build 4264822 

Diff: https://reviews.apache.org/r/7083/diff/


Testing
-------

Able to execute mvn install successfully after the changes...


Thanks,

Pradeep Soundararajan


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by Pradeep Soundararajan <pr...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/
-----------------------------------------------------------

(Updated Sept. 14, 2012, 12:36 p.m.)


Review request for cloudstack, Chip Childers and edison su.


Changes
-------

I have updated the patch right now with additional changes.

Right now I have removed *SNAPSHOT* from cloud.spec and wscript_build files (xapi-5.6.100-1-SNAPSHOT.jar).

I am able to execute "mvn install -P deps and ./waf rpm" successfully. 

*** No SNAPSHOT has been found in either build process or artifact directory. Please review and commit this patch...


Description
-------

The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 

>> Removed the occurrences of SNAPSHOT


Diffs (updated)
-----

  agent/pom.xml a559580 
  api/pom.xml db14775 
  awsapi/pom.xml a583384 
  client/pom.xml 50b85e9 
  cloud.spec 02aa64f 
  console-proxy/pom.xml 8bfb753 
  core/pom.xml 510cb04 
  deps/XenServerJava/pom.xml 1337514 
  deps/pom.xml be30c9a 
  patches/pom.xml d62fc86 
  plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
  plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
  plugins/file-systems/netapp/pom.xml f10e5a4 
  plugins/host-allocators/random/pom.xml ad66c0e 
  plugins/hypervisors/kvm/pom.xml 2d1a001 
  plugins/hypervisors/ovm/pom.xml a8b23d0 
  plugins/hypervisors/vmware/pom.xml 435ae38 
  plugins/hypervisors/xen/pom.xml bf38e47 
  plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
  plugins/network-elements/f5/pom.xml 0cba48c 
  plugins/network-elements/juniper-srx/pom.xml 38a2b55 
  plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
  plugins/network-elements/netscaler/pom.xml 377e6e0 
  plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
  plugins/network-elements/ovs/pom.xml 02d455c 
  plugins/pom.xml 206d4a1 
  plugins/storage-allocators/random/pom.xml 6cb60cd 
  plugins/user-authenticators/ldap/pom.xml 7facc3f 
  plugins/user-authenticators/md5/pom.xml 1dac92d 
  plugins/user-authenticators/plain-text/pom.xml a4280a3 
  pom.xml 972d645 
  server/pom.xml f7178d8 
  test/pom.xml f70a89f 
  usage/pom.xml 92e5e72 
  utils/pom.xml e8d7827 
  vmware-base/pom.xml 1dabe83 
  wscript f1c9b62 
  wscript_build 2de698c 

Diff: https://reviews.apache.org/r/7083/diff/


Testing
-------

Able to execute mvn install successfully after the changes...


Thanks,

Pradeep Soundararajan


Re: Review Request: CLOUDSTACK-43 : Jenkins build process needs to allow for setting the appropriate version number within the built JARs.

Posted by edison su <ed...@citrix.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7083/#review11483
-----------------------------------------------------------


Are you sure the the build system will generate jars with 4.0.0-snapshot? We use ant not maven to JARs, so the version number in pom.xml doesn't impact the JARs at all.

- edison su


On Sept. 13, 2012, 4:28 p.m., Pradeep Soundararajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7083/
> -----------------------------------------------------------
> 
> (Updated Sept. 13, 2012, 4:28 p.m.)
> 
> 
> Review request for cloudstack, Chip Childers and edison su.
> 
> 
> Description
> -------
> 
> The Jenkins binary build processes are producing JAR files that contain version numbers like 4.0.0-SNAPSHOT. We need a way to set a parameter within the build to set the version from SNAPSHOT to RC1 or even drop the pre-release identifier entirely (so that we can generate an actual release). 
> 
> >> Removed the occurrences of SNAPSHOT
> 
> 
> Diffs
> -----
> 
>   agent/pom.xml a559580 
>   api/pom.xml db14775 
>   awsapi/pom.xml a583384 
>   client/pom.xml 50b85e9 
>   console-proxy/pom.xml 8bfb753 
>   core/pom.xml 510cb04 
>   deps/XenServerJava/pom.xml 1337514 
>   deps/pom.xml be30c9a 
>   patches/pom.xml d62fc86 
>   plugins/deployment-planners/user-concentrated-pod/pom.xml ca2fae1 
>   plugins/deployment-planners/user-dispersing/pom.xml 6e1ffc6 
>   plugins/file-systems/netapp/pom.xml f10e5a4 
>   plugins/host-allocators/random/pom.xml ad66c0e 
>   plugins/hypervisors/kvm/pom.xml 2d1a001 
>   plugins/hypervisors/ovm/pom.xml a8b23d0 
>   plugins/hypervisors/vmware/pom.xml 435ae38 
>   plugins/hypervisors/xen/pom.xml bf38e47 
>   plugins/network-elements/elastic-loadbalancer/pom.xml c1ab2c5 
>   plugins/network-elements/f5/pom.xml 0cba48c 
>   plugins/network-elements/juniper-srx/pom.xml 38a2b55 
>   plugins/network-elements/midokura-midonet/pom.xml 7f2e2d3 
>   plugins/network-elements/netscaler/pom.xml 377e6e0 
>   plugins/network-elements/nicira-nvp/pom.xml 37c3a3a 
>   plugins/network-elements/ovs/pom.xml 02d455c 
>   plugins/pom.xml 206d4a1 
>   plugins/storage-allocators/random/pom.xml 6cb60cd 
>   plugins/user-authenticators/ldap/pom.xml 7facc3f 
>   plugins/user-authenticators/md5/pom.xml 1dac92d 
>   plugins/user-authenticators/plain-text/pom.xml a4280a3 
>   pom.xml 972d645 
>   server/pom.xml f7178d8 
>   test/pom.xml f70a89f 
>   usage/pom.xml 92e5e72 
>   utils/pom.xml e8d7827 
>   vmware-base/pom.xml 1dabe83 
>   wscript f1c9b62 
> 
> Diff: https://reviews.apache.org/r/7083/diff/
> 
> 
> Testing
> -------
> 
> Able to execute mvn install successfully after the changes...
> 
> 
> Thanks,
> 
> Pradeep Soundararajan
> 
>