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 CD8131011C for ; Tue, 30 Jul 2013 04:29:15 +0000 (UTC) Received: (qmail 79867 invoked by uid 500); 30 Jul 2013 04:29:11 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 79802 invoked by uid 500); 30 Jul 2013 04:29:11 -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 99247 invoked by uid 99); 30 Jul 2013 03:26:39 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ginger.zc@gmail.com designates 209.85.213.172 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=OXZ2oiiEAZkNh0ef3wJZ2NLDDHhkNAQFUNNmNGGorDs=; b=tD3ATHUcNesWC0RWk1aces9vYA6qclkxx0CQsiKmRQqM7BZ2VmwPcmR9b06SEwZTur lPwXsyNgWVL/1EWNGS8+IHHXowuVGQZwlTekh/rmZctWSO0obwonKS8lfxdFhijQD7Dv IMQZrqV4V6oBfrzXd9sEoxO7R75CVoWe0k1LBAsHigyQoCeJPNqG/rCXR9sqBbj4Q9nZ Av2XNgOG+FePkYOBKXEe6HJOZIMaZapULA4rWS3E0LRB94wMHOi+xsgVk4dXeDjiepDe n720XTzXoe0qjkQQipDqPf1nhNlCXgzb/j5xKh1EDmhNHGacx47rxrAtHk/k1wE6usi8 h4iQ== X-Received: by 10.236.133.168 with SMTP id q28mr28489611yhi.142.1375154772023; Mon, 29 Jul 2013 20:26:12 -0700 (PDT) Message-ID: <51F7324A.70103@gmail.com> Date: Mon, 29 Jul 2013 23:26:02 -0400 From: ginger User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@maven.apache.org Subject: odd behavior of running tests with surefire plugin Content-Type: multipart/alternative; boundary="------------000500010001030805080202" X-Virus-Checked: Checked by ClamAV on apache.org --------------000500010001030805080202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, Maven gurus, We run into something very bizarre when trying to run some unit tests that use a embedded jetty server with surefire and cobertura. It works well with our original configuration like org.codehaus.mojo cobertura-maven-plugin ${maven.test.skip} 30 30 true 55 55 50 50 clean check org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 org.apache.maven.plugins maven-war-plugin cxf org.apache.maven.plugins maven-dependency-plugin install install org.apache.maven.plugins maven-surefire-plugin -Xms512m -Xmx1024m -XX:MaxPermSize=512m junit:junit **/*UnitTest* **/*JettyTest* org.codehaus.mojo sonar-maven-plugin 2.0 org.apache.maven.wagon wagon-ssh 1.0-beta-6 But when I tried to separate the running of UnitTest and JettyTest like the following, so UnitTest are run all the time and JettyTests are only run in a specific profile, org.apache.maven.plugins maven-surefire-plugin -Xms512m -Xmx1024m -XX:MaxPermSize=512m junit:junit **/*UnitTest* org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 org.apache.maven.plugins maven-war-plugin cxf org.apache.maven.plugins maven-dependency-plugin install install org.codehaus.mojo sonar-maven-plugin 2.0 org.apache.maven.wagon wagon-ssh 1.0-beta-6 and get the JettyTest and Cobertura in a profile called all-test all-test org.apache.maven.plugins maven-surefire-plugin -Xms512m -Xmx1024m -XX:MaxPermSize=512m junit:junit **/*UnitTest* **/*JettyTest* org.codehaus.mojo cobertura-maven-plugin ${maven.test.skip} 30 30 true 55 55 50 50 clean check It runs fine in my centos 5.5 x86_64. But if I submit it to centos 5.7 x86_64, jetty tests are giving me all kinds of errors, like the jetty server cannot be initiated right. But with the original configuration, jetty tests are OK. I'm so confused. Totally out of clues. Can any one please give me some hint/insights? Anything would be deeply appreciated --------------000500010001030805080202--