Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 66768 invoked from network); 10 Jun 2007 12:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 12:52:17 -0000 Received: (qmail 98033 invoked by uid 500); 10 Jun 2007 12:52:20 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 97999 invoked by uid 500); 10 Jun 2007 12:52:20 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 97990 invoked by uid 99); 10 Jun 2007 12:52:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 05:52:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.174] (HELO moutng.kundenserver.de) (212.227.126.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 05:52:16 -0700 Received: from [85.180.14.149] (helo=[85.180.14.149]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1HxMte2sIo-0006MU; Sun, 10 Jun 2007 14:51:54 +0200 Message-ID: <466BF519.5000306@dubioso.net> Date: Sun, 10 Jun 2007 14:56:57 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070602 SeaMonkey/1.1.2 MIME-Version: 1.0 To: HttpComponents Project Subject: Re: version detection ideas References: <3fb8d2f00706090703k3b916a1fx7dbec4b0aec86504@mail.gmail.com> <466BCF3F.4070708@dubioso.net> <3fb8d2f00706100326u3c4610d0sc7d07c001fefdfa@mail.gmail.com> <466BE0EA.7000306@dubioso.net> <3fb8d2f00706100533w55ed1d51t9505a15cd82df0db@mail.gmail.com> In-Reply-To: <3fb8d2f00706100533w55ed1d51t9505a15cd82df0db@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19PTEGMVDwKhwHYOpIkojm22gvVb2tE7vjAFQh 6pm9F+ik+Hv7FK0MtZDV063qRAbbIswdcyOK20vhqsCM8gEsQV 0bXr5Hxxde+SWWZ8qL6rtuq0hG7hbPp X-Virus-Checked: Checked by ClamAV on apache.org Hi Daniel, > One of the simple options to solve the problem is to use a profile. its > very > likely that custom built distributions are built with: > mvn package or mvn install > and not > mvn package -P release-profile > and you could still issue a warning in the pom as xml comment, to not do > that and giving the reasons. In the profile configuration can be whatever > change to the build procedure you'd like (version file, ant-style filtering > of classes or ressources, whatever). While it's not fail proof I think it > would solve the problem nicely and without requiring too much thinking > during the build process (which I definitely like: "did you do A before you > did B and shipped the thing to be dropped on production servers" > immediately > followed by a wail of despair ;) > > Would that solve the problem or is a more secure solution necessary? I like that approach. The concept has similarities with a local properties file, and is more general as it allows even actions to be modified. I'll keep that in mind when I think about the versioning problem in the future. thanks, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org