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 AC102200D03 for ; Sat, 9 Sep 2017 15:27:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AAAFD1609C4; Sat, 9 Sep 2017 13:27:13 +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 F03961609B5 for ; Sat, 9 Sep 2017 15:27:12 +0200 (CEST) Received: (qmail 36241 invoked by uid 500); 9 Sep 2017 13:27:11 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 36231 invoked by uid 99); 9 Sep 2017 13:27:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Sep 2017 13:27:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 83AFC18FF61 for ; Sat, 9 Sep 2017 13:27:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.009 X-Spam-Level: * X-Spam-Status: No, score=1.009 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id JSZEaPLmDrnD for ; Sat, 9 Sep 2017 13:27:08 +0000 (UTC) Received: from mail.am-soft.de (mail.am-soft.de [83.218.36.120]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F287161257 for ; Sat, 9 Sep 2017 13:27:07 +0000 (UTC) Envelope-To: java-dev@axis.apache.org Received: from tschoening-nb.fritz.box (dslb-178-008-218-148.178.008.pools.vodafone-ip.de [178.8.218.148]) by mail.am-soft.de (Postfix) with ESMTP id 972BDED288 for ; Sat, 9 Sep 2017 15:27:06 +0200 (CEST) Date: Sat, 9 Sep 2017 15:27:06 +0200 From: =?windows-1252?Q?Thorsten_Sch=F6ning?= Organization: AM-SoFT IT-Systeme Message-ID: <1945397673.20170909152706@am-soft.de> To: Martin Gainty Subject: Re: [AXIS2] Some project builds fail if goal "clean" is not used In-Reply-To: References: <165709498.20170905111249@am-soft.de> ,<365974901.20170909122544@am-soft.de> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable archived-at: Sat, 09 Sep 2017 13:27:13 -0000 Guten Tag Martin Gainty, am Samstag, 9. September 2017 um 13:36 schrieben Sie: MG>>maven-compiler-plugin (with incremental) overwrites most recent changed= classes inside target\classes and target\test-classes MG>>maven-compiler-plugin (full compile) compiles and overwrites ALL classe= s (changed or not) MG>>as you have already discovered default behaviour for mvn clean is to = delete ALL classes in target\classes and target\test-classes You are getting it wrong: The problem is e.g. "mvn test" without(!) "clean". In that case there is something which deletes totally unchanged, formerly successfully compiled classes and only the class files itself, not the parent directory or any other directory. And that is bad because some builds depend on formerly compiled/packaged/whatever results and those are not available anymore sometimes, because they has been deleted. Adding "clean" fixes that, because a complete rebuild is issued, but that shouldn't be needed if I don't change things. Let me quote myself: > One example is with axis-metadata, were the following command fails > after a former successful build: > > > mvn test --projects :axis2-metadata > > While the following one succeeds: > > > mvn clean test --projects :axis2-metadata From=20my understanding, "mvn test ..." only shouldn't fail after a successful former build, but it does. Instead it should simply execute tests again, which it is doing, but it fails for some tests because some of those depend on compiled Java classes which are not available anymore. So the question only is if "mvn test ..." should have deleted those files or not. Mit freundlichen Gr=FC=DFen, Thorsten Sch=F6ning --=20 Thorsten Sch=F6ning E-Mail: Thorsten.Schoening@AM-SoFT.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Gesch=E4ftsf=FChrer: Andreas Muchow --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org