Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 514E018415 for ; Wed, 13 Jan 2016 09:35:26 +0000 (UTC) Received: (qmail 9070 invoked by uid 500); 13 Jan 2016 09:35:25 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 8989 invoked by uid 500); 13 Jan 2016 09:35:25 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 8977 invoked by uid 99); 13 Jan 2016 09:35:24 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2016 09:35:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 45533C156D for ; Wed, 13 Jan 2016 09:35:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id QZX72H0NheY9 for ; Wed, 13 Jan 2016 09:35:15 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id B8A1742ADC for ; Wed, 13 Jan 2016 09:35:14 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id f206so361798771wmf.0 for ; Wed, 13 Jan 2016 01:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=OGqqk7sjWOVf9q00rPhQSeC0q9ZsJajjhHgrP/aPiiM=; b=AF2TCiMl9jrE0M+vNT7NSunJ2lCqGlB7IyDpy1mLKmiFaKPZORqh66mwD0TqkCLVda dIeR6zBhr4pysF0ARY5F/MJ/w3/ZNB0PI1j+tSFGmOGs5QjDDGVrcTRpdm6kxR3YH649 11wD17UpPRnJQoAAq5kmFRuxcR1QRWMtVjtsN5I4fRQR5+qeTun5iagNz70YN66f3JLB vuSEx/SLSSOfRs/yASL83sCN6NavcIb4weui5xJUBfcB6vO7mKvOZ43GtnFGhD1YNZBZ GCW1N5AqR1+lFQQzNPGKLHBD8FE01N1Ka1XeTM4ukImD1cOo4e1uMr+P1jUb/o6z+ils 791A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OGqqk7sjWOVf9q00rPhQSeC0q9ZsJajjhHgrP/aPiiM=; b=NxYYDGs9lsYkqSgw+Ej5sDIqASJZ9V8q29dkSeHVsod9zGXmThi8kKgs03BazMuQ9/ fg4p30rl39PQ8WC4lDCA0Np+rTrUI4yvHb7itBeIIUU5NJ7kmYasm3R/DP+XqGx9JdGa WsnlDDSrqPNXvjEFc5+JrOHalgG1ieVLzK9SU9AxfzBVomP7EmHX7Cb6KiBDasy0ZPyc ux4WyHtFsL4BW9DttkK7IjpIhJaaf9QK67yx/8cgLGSdYHhU1XV9Ig8SYVSPa2Za4SrN mSB2byBQCtkkcQyhh5VmQKiabLmyUw10eqSQsm0+nidXQQBrMwMW+7YSrBglz75/C/SC O2uA== X-Gm-Message-State: ALoCoQnnw0RtzH4WZlNOTVUYRp8xtKU571bxD7wbrgf9NeSoSx0dqiJWpybsfemfr6FfqKulMJ61ZNKsI9O/aaByESxEsHZq2w== MIME-Version: 1.0 X-Received: by 10.28.186.87 with SMTP id k84mr24191369wmf.13.1452677713780; Wed, 13 Jan 2016 01:35:13 -0800 (PST) Sender: anders.g.hammar@gmail.com Received: by 10.194.175.72 with HTTP; Wed, 13 Jan 2016 01:35:13 -0800 (PST) In-Reply-To: References: Date: Wed, 13 Jan 2016 10:35:13 +0100 X-Google-Sender-Auth: CY9QHh6SbaNYrhxpxPO896HPljk Message-ID: Subject: Re: Should I disable maven-compiler-plugin when using aspectj-maven-compiler? From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=001a114a0af41a6650052933e3fb --001a114a0af41a6650052933e3fb Content-Type: text/plain; charset=UTF-8 > > Does this act differently though than the aspectj-maven-plugin? Does it > play well with AJDT and eclipse? > I don't know; I don't use aspectj. Couldn't find any pointers on this in the aspact-maven-plugin docs so it might be the wrong path. However, couldn't find any instructions on using your workaround either...:-) As you stated "aspectj-compiler-plugin" in the subject, I thought that you wanted to use the aspectj compiler. But maybe I misunderstood and you just want to weave with aspectj? /Anders > > > On Wed, Jan 13, 2016 at 10:59 AM, Anders Hammar wrote: > > > Can't you just tell maven-compiler-plugin to use the aspectj compiler? > > > > > https://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html > > > > /Anders > > > > On Wed, Jan 13, 2016 at 9:41 AM, Dagan Sandler > > wrote: > > > > > Hi, > > > > > > I am in the process of updating my plugin definitions in all of the > > > projects I manage. > > > Notably, I tried updating maven-compiler-plugin from 2.5.1 to 3.3 but > > > encountered an issue in a project that uses aspectj-maven-plugin. > > > > > > The issue is, it seems, that the maven-compiler-plugin is invoked > before > > > the aspectj-maven-plugin, and causes the build to fail. > > > > > > I have previously used a workaround for this issue by setting the > > > aspectj-maven-plugin to execute in phase process-sources, so it's > invoked > > > before the maven plugin > > > However, in maven-compiler-plugin 3.1+ there's this bug > > > which causes the > > > maven-compiler-plugin to recompile all sources and to fail the build, > so > > > you must set useIncrementalCompilation to *false* > > > > > > Another workaround I found before finding out about the incremental > build > > > bug, is to disable the maven-compiler-plugin altogether in that project > > and > > > let aspectj-maven-plugin do all the compilation by adding > > > > > > default-compile > > > none > > > > > > to the maven-compiler-plugin definition > > > > > > Anyone knows the downsides of any of these workarounds? Is there > another > > > configuration that I should be using instead of these options? > > > > > > --001a114a0af41a6650052933e3fb--