Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EA3818EE7 for ; Wed, 20 Apr 2016 09:07:44 +0000 (UTC) Received: (qmail 12355 invoked by uid 500); 20 Apr 2016 09:07:42 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 12285 invoked by uid 500); 20 Apr 2016 09:07:42 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 12274 invoked by uid 99); 20 Apr 2016 09:07:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 09:07:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0B34FC0845 for ; Wed, 20 Apr 2016 09:07:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cyWt5eG2ragr for ; Wed, 20 Apr 2016 09:07:40 +0000 (UTC) Received: from mail.aurenz.de (mail.aurenz.de [80.150.205.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1124F5FB39 for ; Wed, 20 Apr 2016 09:07:39 +0000 (UTC) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01D19AE4.12E370FA" Subject: Maven and Continous Integration / Continous Delivery Date: Wed, 20 Apr 2016 11:07:32 +0200 Message-ID: <3B7A7BDFFD286F49A19A5B35D26E08FB01BB3B0E@srvmail2.aurenz.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Maven and Continous Integration / Continous Delivery Thread-Index: AdGa4rJA5nn6CErUQ+G3xUotNlv74g== From: "Hohl, Gerrit" To: ------_=_NextPart_001_01D19AE4.12E370FA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello everyone, :-) =20 I'm currently sitting on the book "Continuous Delivery" written by Jez Humble and David Farley. They write that each build is a potential release candidate. And each build should be triggered by the check-in into the SCM. So far, so good. But how do I realize that in Maven? Up until now the version number in our Maven projects and modules have been static. If it had to be changed the developer had to perform that step. But if the CI server performs the build as well as putting the result into the repository (in our case Nexus), the resulting artifacts have to include the build number in some way. Otherwise I overwrite the same artifact other and other again until a developer changes the version in the POM file. Depending projects then will see only the last version of the artifact and builds won't be repeatable (means the functionality of the artifact changes without anyone noticing it). One way would be to modify the POM between the check-out from the SCM and the Maven build process and writing the build number into it. But then I will have the problem in the IDE that it don't understand that the current version I've checked-out is the version I have referred on in another project I've checked-out. If the CI server checks-in the changed POM file afterwards it will trigger the next build. Also it will cause problems if the POM was changed in the SCM in the meantime as the CI maybe can't merge it. =20 Anyone solved that problem? =20 Regards, Gerrit =20 ------_=_NextPart_001_01D19AE4.12E370FA--