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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -