From dev-return-125825-archive-asf-public=cust-asf.ponee.io@maven.apache.org Fri Apr 13 22:29:36 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C9661180627 for ; Fri, 13 Apr 2018 22:29:35 +0200 (CEST) Received: (qmail 79262 invoked by uid 500); 13 Apr 2018 20:29:34 -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 79241 invoked by uid 99); 13 Apr 2018 20:29:33 -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; Fri, 13 Apr 2018 20:29:33 +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 38A74C00A6 for ; Fri, 13 Apr 2018 20:29:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hammant-org.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9xwB__mceZf4 for ; Fri, 13 Apr 2018 20:29:31 +0000 (UTC) Received: from mail-ot0-f175.google.com (mail-ot0-f175.google.com [74.125.82.175]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4A5BD5F254 for ; Fri, 13 Apr 2018 20:29:30 +0000 (UTC) Received: by mail-ot0-f175.google.com with SMTP id p33-v6so11217523otp.11 for ; Fri, 13 Apr 2018 13:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammant-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+V24mkm1wfhuxO74TghUW+uJs4vQB0NB9ODRAzVbDnk=; b=ohxvjOMUkNkQYm/LRaoxEb1EeQJ6EmY7HHqhUJUYR1nUbN0tWUo2fUpMTxvXfZ7BLL DvAnb+KPRtydLr7av+ooWySL4ddp1VbqArjy5Yo4Y7t1oCzRslx6RVLPUDk0sOIX+YuN D5iCSDz2NSaKphpMeKdA1BH+0uVaWbVoaltOYEdFaMFPFr4GoEwECWKKR/cGwq/HdJOC qD7GxB6e7/v9mCU8KeuOB6OEnQtQQ8Rh5K9+LXWVZpc7glQwLj+o4bu49NOv924eCMJC 9WDh1uF0bVor3fYRWh43bVxY0C05VM4ieFx1KI9qC9iP6fAS+xtCIijaeG6yzpUJEImJ qADA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+V24mkm1wfhuxO74TghUW+uJs4vQB0NB9ODRAzVbDnk=; b=Q9ddFaPLbUAyYz4AjNdL9yBVCwJcl6v9Enz7ZCYZ0EVOj35eKDtwWzCwul6qs8EquQ NOep4VXp2oWJY06qsfoOsdkKOxKT7EWVRzUlwXuNXcx5WwFlCbR7qBa0fCshYJ9bQlPm pMX7j9eE19d9VIlqoGhqpV/B/iUxRHlqhiTAAWCC4raWqSL/5k881a6/ukfvtLXb6RLE dnRH1isQelo04l8lxmEN5TNHmLv3j5jiauswbLE8CnK3cEz+JbgsNIW3Bk5s+HnfM/mu syX32BkFLvkJu6evNX8lxWpfLnRkGHzGARYFqiPLnn9vTb7MyXAmled4ISPEnK6xrryD TOgQ== X-Gm-Message-State: ALQs6tAO39vJd6At7gisz0pjtakAHt2h+anhhmVfjGlQnPqdKX374zEG Pros0I9ZtzdxFFKbsbMI8sQHd/RUWWj5r47abBOAWRw8hic= X-Google-Smtp-Source: AIpwx4+VkSzF6FieNejJ/n7zyx6NvonJgmLnmDhTKWxaR5Le9LFQ3gdeqiliWxrmK+tpoYSu6bbJq7xFOR4RPnxETrc= X-Received: by 2002:a9d:1d3:: with SMTP id e77-v6mr4872816ote.376.1523651368732; Fri, 13 Apr 2018 13:29:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.68.133 with HTTP; Fri, 13 Apr 2018 13:29:27 -0700 (PDT) X-Originating-IP: [50.200.174.215] In-Reply-To: <20180413192011.7f9ec961@copperhead.int.arc7.info> References: <20180413192011.7f9ec961@copperhead.int.arc7.info> From: Paul Hammant Date: Fri, 13 Apr 2018 16:29:27 -0400 Message-ID: Subject: Re: Speeding up Maven To: Maven Developers List Content-Type: multipart/alternative; boundary="00000000000098635c0569c0ba5f" --00000000000098635c0569c0ba5f Content-Type: text/plain; charset="UTF-8" Mark, Assuming a pre-filled Maven local cache, I've a 16 second build that's only longer when I run a screen recorder in order to make the video show here - https://paulhammant.com/2017/02/05/a-16-second-java-webapp-build-including-webdriver-tests/ That one runs three WebDriver tests too after the unit and service tests - meaning (implicitly) it's testing JavaScript as well as Java in that time. In order to make it fast I've abandoned the fail-safe plugin and do all parts of the test-pyramid in surefire (see the pom). - Paul On Fri, Apr 13, 2018 at 3:20 PM, Mark Raynsford < org.apache.maven.user@io7m.com> wrote: > Hello. > > Is there any way I might speed up Maven? I've been using it for years > and, for the first time, I'm actually executing it from an IDE rather > than using the IDE's built-in compiler. It seems like there's a rather > large and apparently fixed amount of overhead per invocation. Take the > following "could not be simpler" project: > > https://github.com/io7m/maven-minimal-20180413 > > I piped the output through tai64n [1] to give a better indication of > exactly how long everything is taking. That's a project that compiles a > single Java file and produces a jar. It doesn't run any tests, it > doesn't include any resources. 16 seconds total execution [2]! > > Now for an infrequent command-line build, that's not *too* obnoxious. > For a "click a button in the IDE because I want to try this bit of code > now" build, that's a world of suffering. > > It seems like Maven first spends ten entire seconds doing not very > much. That cannot be attributed to JVM startup time (Hello World on my > system takes about 100ms to reach user code, and even the largest Java > application I still takes less than a second to reach user code after > all the classes have loaded). > > Is there anything I can do to cut this down? If not, is this something > that's intended to be addressed in the near future? > > [1] http://cr.yp.to/daemontools/tai64n.html > [2] The Maven output claims 6 seconds, but that doesn't include the > time it took for the build to start. > > -- > Mark Raynsford | http://www.io7m.com > > -- Paul Hammant DevOps Let me give your enterprise a step by step plan to get out of the hell of crazy branching models (ClearCase maybe?) and into the world of high-throughput CD on DevOps foundations. --00000000000098635c0569c0ba5f--