Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 17048 invoked from network); 23 Feb 2009 21:09:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2009 21:09:00 -0000 Received: (qmail 94688 invoked by uid 500); 23 Feb 2009 21:08:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 94604 invoked by uid 500); 23 Feb 2009 21:08:52 -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 94593 invoked by uid 99); 23 Feb 2009 21:08:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 13:08:52 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [168.158.192.19] (HELO testadvantage.com) (168.158.192.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 21:08:45 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C995FA.DD21DF82" Subject: Disable/Enable tests per plugin/goal Date: Mon, 23 Feb 2009 14:08:41 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Disable/Enable tests per plugin/goal thread-index: AcmV+udij37vFFO3RZ6R4kYaj1iujg== From: "Randall Fidler" To: "Maven Users List" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C995FA.DD21DF82 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I'm looking into using a feature of Clover, test optimization, and run into a tricky situation. I would like to use the test optimization to speed up build times on Hudson and the issue comes in that Clover, as part of it's test optimization, puts hooks inside your code. This effectively means you cannot use any artifacts generated during the test optimization process for deployment, which in turn means the CI can't automatically deploy snapshots if Clover optimization is on. =20 So, where's the Maven question? Well what I'm trying to figure out is can you, in one call, specify variables per plugin or even a profile per plugin? For example, I believe the following "could" work: =20 mvn verify -Pclover.optimize clean deploy =20 NOTE: the clover.optimize profile simply configures the clover2 plugin to run the proper clover goals, it doesn't change any other behavior with other plugins. =20 I say it could work IF tests were disabled for deploy. If tests are not disabled for deploy then what's the point of trying to optimize as all the tests would be run anyhow - right? This is where things get tricky, I could just disable tests but then the clover plugin thinks it doesn't have any work to do so my question is: is there a way with Maven to say that tests are disabled for the deploy goal but NOT for the clover portion? =20 I thought for a minute that mvn verify -Pclover.optimize clean package deploy might work but of course the default lifecycle is going to run the test goal when deploy runs, which I can't disable - at least not per goal/plugin that I've found. =20 Any advice is appreciated. =20 Regards, =20 Randall ------_=_NextPart_001_01C995FA.DD21DF82--