jenkins - how to automate the snapshot versions in maven 3 -
i have 2 projects namely abc , def. project def has dependency of project abc. daily use run jenkins build. project abc artifacts deployed nexus. project def has utilized latest snapshot nexus directory created project abc.
i should not change project def pom.xml files every-time pickup latest build project abc. how can achieve automates process.
by way used buildnumber-maven-plugin
auto version increment in project abc.
i assume have in pom.xml of def
<dependency> <groupid>some.group.id</groupid> <artifactid>abc</artifactid> <version>1.00.000-snapshot</version> <scope>compile</scope> </dependency>
with that, long both abc , def configured maven-jobs in jenkins, ci-server should notice every time snapshot abc built , therefore trigger new build of def (unless, of course, beside ci-server building , deploying snapshot nexus repository, shouldn't happen.)
if want enforce using latest snapshot nexus repository can add option -u maven option.
Comments
Post a Comment