From issues-return-149810-archive-asf-public=cust-asf.ponee.io@maven.apache.org Mon May 27 21:32:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B33E0180638 for ; Mon, 27 May 2019 23:32:02 +0200 (CEST) Received: (qmail 23387 invoked by uid 500); 27 May 2019 21:32:02 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 23373 invoked by uid 99); 27 May 2019 21:32:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2019 21:32:02 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5D555E2B4B for ; Mon, 27 May 2019 21:32:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D4C4D24599 for ; Mon, 27 May 2019 21:32:00 +0000 (UTC) Date: Mon, 27 May 2019 21:32:00 +0000 (UTC) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MNG-6661) Override project.build.directory via user property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-6661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Scholte updated MNG-6661: -------------------------------- Description: I would like to improve a build speed of a big project. The project uses a lot of IO operation during a build. So I decided to put all /target directories into RAM disk while keeping sources on a hard drive. I mounted a RAM disk to /mnt/ramdisk and created a profile: {code:xml} true ramDisk /mnt/ramdisk/${project.groupId}/${project.artifactId}/target {code} In fact this is an equivalent of specifying -Dproject.build.directory But unfortunately this doesn't work because the property here (i.e. "user property") is ignored. To make it working I should add into pom.xml this: {code} ${project.build.directory} {code} I.e. explicitly reuse the user property project.build.directory as configuration. Don't be confused, we can call the user property anyhow e.g. ${ram_dir} but I just wan't to reuse existing property. I found a ticket that looks similar https://issues.apache.org/jira/browse/MNG-2598 but this is another story. So could we implement this? was: I would like to improve a build speed of a big project. The project uses a lot of IO operation during a build. So I decided to put all /target directories into RAM disk while keeping sources on a hard drive. I mounted a RAM disk to /mnt/ramdisk and created a profile: ``` true ramDisk /mnt/ramdisk/${project.groupId}/${project.artifactId}/target ``` In fact this is an equivalent of specifying -Dproject.build.directory But unfortunately this doesn't work because the property here (i.e. "user property") is ignored. To make it working I should add into pom.xml this: {code} ${project.build.directory} {code} I.e. explicitly reuse the user property project.build.directory as configuration. Don't be confused, we can call the user property anyhow e.g. ${ram_dir} but I just wan't to reuse existing property. I found a ticket that looks similar https://issues.apache.org/jira/browse/MNG-2598 but this is another story. So could we implement this? > Override project.build.directory via user property > -------------------------------------------------- > > Key: MNG-6661 > URL: https://issues.apache.org/jira/browse/MNG-6661 > Project: Maven > Issue Type: Improvement > Components: core > Reporter: Sergey Ponomarev > Priority: Minor > > I would like to improve a build speed of a big project. The project uses a lot of IO operation during a build. So I decided to put all /target directories into RAM disk while keeping sources on a hard drive. > I mounted a RAM disk to /mnt/ramdisk and created a profile: > {code:xml} > > > true > > ramDisk > > /mnt/ramdisk/${project.groupId}/${project.artifactId}/target > > > {code} > In fact this is an equivalent of specifying -Dproject.build.directory > But unfortunately this doesn't work because the property here (i.e. "user property") is ignored. > To make it working I should add into pom.xml this: > {code} > > ${project.build.directory} > {code} > I.e. explicitly reuse the user property project.build.directory as configuration. > Don't be confused, we can call the user property anyhow e.g. ${ram_dir} but I just wan't to reuse existing property. > I found a ticket that looks similar https://issues.apache.org/jira/browse/MNG-2598 but this is another story. > So could we implement this? -- This message was sent by Atlassian JIRA (v7.6.3#76005)