Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC7EB7AD2 for ; Mon, 29 Aug 2011 18:07:00 +0000 (UTC) Received: (qmail 65533 invoked by uid 500); 29 Aug 2011 18:07:00 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 65415 invoked by uid 500); 29 Aug 2011 18:06:59 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 65402 invoked by uid 99); 29 Aug 2011 18:06:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 18:06:59 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 18:06:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E2D7ED5EDD for ; Mon, 29 Aug 2011 18:06:37 +0000 (UTC) Date: Mon, 29 Aug 2011 18:06:37 +0000 (UTC) From: "Scott Carey (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <2002182956.4070.1314641197926.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2099000988.3967.1314640238198.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7589) Prefer mvn test -DskipTests over mvn compile in test-patch.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-7589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093030#comment-13093030 ] Scott Carey commented on HADOOP-7589: ------------------------------------- Doesn't using 'mvn test-compile' the same as 'mvn test -DskipTests' ? > Prefer mvn test -DskipTests over mvn compile in test-patch.sh > ------------------------------------------------------------- > > Key: HADOOP-7589 > URL: https://issues.apache.org/jira/browse/HADOOP-7589 > Project: Hadoop Common > Issue Type: Bug > Components: build > Affects Versions: 0.23.0, 0.24.0 > Reporter: Robert Joseph Evans > Assignee: Robert Joseph Evans > Fix For: 0.23.0, 0.24.0 > > Attachments: HADOOP-7589-V1.patch > > > I got a failure running test-patch with a clean .m2 directory. > To quote Alejandro: > {quote} > The reason for this failure is because of how Maven reactor/dependency > resolution works (IMO a bug). > Maven reactor/dependency resolution is smart enough to create the classpath > using the classes from all modules being built. > However, this smartness falls short just a bit. The dependencies are > resolved using the deepest maven phase used by current mvn invocation. If > you are doing 'mvn compile' you don't get to the test compile phase. This > means that the TEST classes are not resolved from the build but from the > cache/repo. > The solution is to run 'mvn test -DskipTests' instead 'mvn compile'. This > will include the TEST classes from the build. > {quote} > So this is to replace mvn compile in test-patch.sh with mvn test -DskipTests -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira