Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8C2B200B9A for ; Fri, 7 Oct 2016 21:40:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D77BD160AE8; Fri, 7 Oct 2016 19:40:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 21AE7160AC6 for ; Fri, 7 Oct 2016 21:40:15 +0200 (CEST) Received: (qmail 58771 invoked by uid 500); 7 Oct 2016 19:40:15 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 58759 invoked by uid 99); 7 Oct 2016 19:40:15 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 19:40:15 +0000 Received: from [192.168.1.8] (p3E9D2106.dip0.t-ipconnect.de [62.157.33.6]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6A2A71A0046 for ; Fri, 7 Oct 2016 19:40:14 +0000 (UTC) To: Maven Developers List From: Michael Osipov Subject: Skimming m2.conf Message-ID: Date: Fri, 7 Oct 2016 21:40:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Fri, 07 Oct 2016 19:40:17 -0000 Hi folks, what purpose serves "set maven.home default ${user.home}/m2" in ${maven.home}/bin/m2.conf [1]? As far as I understood the parser of Plexus Classworlds, it sets the value if it is not present in the system properties. In my opinion, there is no sense in here. I have removed -Dmaven.home from bin/mvn and Maven immediately crashed because and of course there is no m2 home in my home. Only the startup script shall set this. According to configuration-management.apt, it seems to be a relic from Maven 1, at most 2. I removed the line and ran all ITs. All passed. I'd like to file an issue and wipe that out. Any objections? [1] https://github.com/apache/maven/blob/38300cf2832e9a40198091aa9e0bf6d3dbc3268d/apache-maven/src/bin/m2.conf#L3 Michael --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org