Build and Version Numbering for Java Projects (ant, cvs, hudson)

后端 未结 9 1062
野的像风
野的像风 2020-11-29 14:38

What are current best-practices for systematic build numbering and version number management in Java projects? Specifically:

  • How to manage build numbers sy

9条回答
  •  不知归路
    2020-11-29 14:56

    • Build numbers should be associated with a continuous integration server like hudson. Use different jobs for different branches/teams/distributions.
    • To keep the version number in the final build, I would recommend just using maven for build system. It will create a .properties file archived into the final .jar/.war/.whatever-ar on META-INF/maven///pom.properties. The .properties file will contain the version property.
    • Since I am recommending maven, I would urge you to check out the release plugin to prepare the release on source repository and keep the versions on sync.

提交回复
热议问题