cellularrest.blogg.se

Maven versions
Maven versions










maven versions
  1. #MAVEN VERSIONS FULL#
  2. #MAVEN VERSIONS CODE#

#MAVEN VERSIONS CODE#

  • Jenkins clones the git repo with the source code, and say the source code has version 1.0-SNAPSHOT.
  • Snapshot versions such as 1.0-SNAPSHOT are turned into real versions such as 1.0.buildNumber where the buildNumber is the Jenkins job number.
  • Don't use snapshot builds in the Continuous Delivery pipeline and don't use the maven release plugin.
  • The solution requires a DVCS like git and a CI server like Jenkins.
  • Forms one half of the built-in “Poor Man’s SCM”.This is my summary based on the video linked by Mark O'Connor's answer.

    maven versions

  • versions:revert restores the pom.xml files from the  files.
  • Forms one half of the built-in “Poor Man’s SCM”.
  • versions:use-latest-versions searches the pom for all versions which have been a newer version and replaces them with the latest version.
  • versions:use-next-versions searches the pom for all versions which have been a newer version and replaces them with the next version.
  • versions:use-latest-snapshots searches the pom for all non-SNAPSHOT versions which have been a newer -SNAPSHOT version and replaces them with the latest -SNAPSHOT version.
  • versions:use-next-snapshots searches the pom for all non-SNAPSHOT versions which have been a newer -SNAPSHOT version and replaces them with the next -SNAPSHOT version.
  • versions:use-latest-releases searches the pom for all non-SNAPSHOT versions which have been a newer release and replaces them with the latest release version.
  • versions:use-next-releases searches the pom for all non-SNAPSHOT versions which have been a newer release and replaces them with the next release version.
  • versions:use-releases searches the pom for all -SNAPSHOT versions which have been released and replaces them with the corresponding release version.
  • versions:set can be used to set the project version from the command line.
  • versions:resolve-ranges finds dependencies using version ranges and resolves the range to the specific version being used.
  • maven versions

    versions:unlock-snapshots searches the pom for all timestamp locked snapshot versions and replaces them with -SNAPSHOT.versions:lock-snapshots searches the pom for all -SNAPSHOT versions and replaces them with the current timestamp version of that -SNAPSHOT, e.g.(Note you may need to invoke Maven with the -N option in order to run this goal if your project is broken so badly that it cannot build because of the version mis-match). For example, if you have an aggregator pom that is also the parent for the projects that it aggregates and the children and parent versions get out of sync, this mojo can help fix the versions of the child modules. versions:update-child-modules updates the parent section of the child modules of a project so the version matches the version of the current project.This can be useful if a suite of dependencies must all be locked to one version. versions:update-properties updates properties defined in a project so that they correspond to the latest available version of specific dependencies.For example, if you use a corporate root POM, this goal can be helpful if you need to ensure you are using the latest version of the corporate root POM. versions:update-parent updates the parent section of a project so that it references the newest available version.versions:display-property-updates scans a projectand produces a report of those properties which are used to control artifact versions and which properies have newer versions available.versions:display-plugin-updates scans a project’s plugins and produces a report of those plugins which have newer versions available.versions:display-dependency-updates scans a project’s dependencies and produces a report of those dependencies which have newer versions available.versions:compare-dependencies compares the dependency versions of the current project to the dependency management section of a remote project.

    #MAVEN VERSIONS FULL#

    I’m not going to copy here the full documentation, but just to make you wishing more, here is the goals list:

    maven versions

    A friend and colleague pointed me to a great Maven plugin I wasn’t aware of and that is probably going to save me some headaches: the Codehaus hosted versions-maven-plugin brings to Maven users some very nice functionality!












    Maven versions