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 A9B5D10EA0 for ; Wed, 2 Apr 2014 17:01:29 +0000 (UTC) Received: (qmail 78572 invoked by uid 500); 2 Apr 2014 17:01:24 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 77882 invoked by uid 500); 2 Apr 2014 17:01:22 -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 77813 invoked by uid 99); 2 Apr 2014 17:01:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 17:01:19 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of eugen.rabii@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 17:01:12 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WVOWw-0003HP-Ol for users@maven.apache.org; Wed, 02 Apr 2014 10:00:50 -0700 Date: Wed, 2 Apr 2014 10:00:50 -0700 (PDT) From: eugene To: users@maven.apache.org Message-ID: <533C4232.6070602@gmail.com> In-Reply-To: <533C1F4F.8050207@landrus.de> References: <1396438658817-5790393.post@n5.nabble.com> <1396447740034-5790400.post@n5.nabble.com> <533C1AAC.4030402@landrus.de> <1396448081542-5790402.post@n5.nabble.com> <533C1C70.8030806@landrus.de> <533C1DBE.1030106@gmail.com> <533C1F4F.8050207@landrus.de> Subject: Re: Scanning for Projects... before MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_448602_236516.1396458050760" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_448602_236516.1396458050760 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I still attempt the deletion only once, that is already implemented inside my plugin and it does not work :( On 4/2/14, 5:32 PM, Christian Domsch [via Maven] wrote: > And I think here is the problem. As far as I understand maven, what > happens with your setup is that maven recognizes the dependency to > com.test, then you delete it, after that maven treis to use it e.g. in > the compile step which leads to the error. And the reason is that > through your setup you call it everytime a project is run in the reactor. > > What I meant, is that you create a regular project, through dependency > mechanisms ensure that it is the very first project to be run (probably > multiple ways to achieve that) and so the deletion of com.test is only > attempted once. Every other project afterwards should then try to > download the plugin because it is not found in the local repo. > > Maybe may way is flawed as well, since my idea suggests that each > project scans the repo uncached. > > Christian > > On 02.04.2014 16:25, eugene wrote: > > > Well.. there are a lot of projects like this.. My plugin is actually > > inside the maven's super pom from maven-model-builder jar > > And it gets invoked once per project (even if there are multiple > modules) > > > > I actually wanted a solution that will not trigger any changes in my > poms.. > > > > On 4/2/14, 5:20 PM, Christian Domsch [via Maven] wrote: > >> Have you tried creating a dependency for you rproject, that does that > >> deleting? If I am not mistaken, dependencies should be downloaded (or > >> attempted to download) for every project in a reactor run. So lets say > >> your project is P and the newly introduced project is M then it would > >> look like: > >> > >> /-+-M (deletes com.test in any of its goals...) > >> | > >> +-P has dependency on com.test and M > >> > >> Christian > >> > >> > >> On 02.04.2014 16:14, eugene wrote: > >> > >>> I could not agree more if only I had a choice :) Thx for the comment > >>> > >>> > >>> > >>> -- > >>> View this message in context: > >> > http://maven.40175.n5.nabble.com/Scanning-for-Projects-before-tp5790393p5790402.html > >>> Sent from the Maven - Users mailing list archive at Nabble.com. > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [hidden email] > >> > >>> For additional commands, e-mail: [hidden email] > >> > >> > >> > >> > ------------------------------------------------------------------------ > >> If you reply to this email, your message will be added to the > >> discussion below: > >> > http://maven.40175.n5.nabble.com/Scanning-for-Projects-before-tp5790393p5790403.html > >> > >> To unsubscribe from Scanning for Projects... before, click here > >> < > >> NAML > >> > > > >> > > > > > > > > > > -- > > View this message in context: > http://maven.40175.n5.nabble.com/Scanning-for-Projects-before-tp5790393p5790404.html > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://maven.40175.n5.nabble.com/Scanning-for-Projects-before-tp5790393p5790405.html > > To unsubscribe from Scanning for Projects... before, click here > . > NAML > > -- View this message in context: http://maven.40175.n5.nabble.com/Scanning-for-Projects-before-tp5790393p5790419.html Sent from the Maven - Users mailing list archive at Nabble.com. ------=_Part_448602_236516.1396458050760--