Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 22695 invoked from network); 27 Aug 2007 18:47:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2007 18:47:54 -0000 Received: (qmail 18261 invoked by uid 500); 27 Aug 2007 18:47:47 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 18158 invoked by uid 500); 27 Aug 2007 18:47:47 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 18138 invoked by uid 99); 27 Aug 2007 18:47:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 11:47:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apacheben@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2007 18:47:43 +0000 Received: by nf-out-0910.google.com with SMTP id d3so1219345nfc for ; Mon, 27 Aug 2007 11:47:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=ms10NkBA652ZepFUhdxv/mb5qa8eVwZZSrQeh9tCJKZYAkyMft0XAeIF1Ep56QSI2lqoPeOyCUCs2YlwEnIIOEmTX9U4h1LZI5+QcrBAS+rJ5R7WhtYNVCke7atpba29xSbCPYEQEeJSZvtfKPj2gMLo5LCr1wNgdTon3IP6CjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=gx/RfqfM44Sk4Z0wSjqgFlDbblpORRftRN/UEGqieZVDxKUo9bMAeguK0JQDz9D073CEBGQl5KfR0ca/oiwJ8qd4jcwIVGCTcTSWCUNWlfKDBYpLCptLIcFjvb2EmjddyNmWsh1fVdTZI4FrlVLnyvIczZaPkC3hc4uH4zMl024= Received: by 10.78.180.18 with SMTP id c18mr4210495huf.1188240441427; Mon, 27 Aug 2007 11:47:21 -0700 (PDT) Received: by 10.78.177.7 with HTTP; Mon, 27 Aug 2007 11:47:21 -0700 (PDT) Message-ID: <6185d22e0708271147l17694206s36557cb5c77a2102@mail.gmail.com> Date: Mon, 27 Aug 2007 11:47:21 -0700 From: "Ben Speakmon" Sender: apacheben@gmail.com To: "Jakarta Commons Developers List" Subject: Re: [continuum] BUILD FAILURE: Commons Configuration In-Reply-To: <46D31A1B.3020202@oliver-heger.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_68271_21925475.1188240441242" References: <8974894.11187952223476.JavaMail.continuum@vmbuild> <46CEF61F.7000900@oliver-heger.de> <46D31A1B.3020202@oliver-heger.de> X-Google-Sender-Auth: 083ce5fc1ceb4419 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_68271_21925475.1188240441242 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If you find that the JVM required for the test is important, you can specify which one to use in the surefire plugin configuration. Never tried it myself, though. On 8/27/07, Oliver Heger wrote: > > Hi Michiel, > > thanks for this information. Obviously the tests depend on the JDK > version they are run. For me, using a JDK 1.5.0_09, the tests run fine. > CI also seems to use a JDK 1.5, but here 55 tests are failing, which > seems to be caused by classes from the java.awt package that cannot be > resolved (if I interpret the surefire reports correctly). > > I just checked with a JDK 1.6 and can reproduce your results. I will > have a look how these problems can be avoided (they seem to be indeed > related to static fields). > > The other improvements for the pom you suggest make certainly sense. > > Oliver > > Michiel Kalkman wrote: > > To me, it seems we should at least be able to run the tests first, > > outside of any continuous build systems. > > > > Here's what I had to do to get them running with Maven2 under > > jdk1.6.0_02. Maybe this helps ? > > > > 1) Get the Commons Parent project using subversion from > > http://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk. > > > > 2) From the project root, run "mvn install". > > > > 3) Then get the Commons Config project from > > http://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk > > > > Now running "mvn test" results in: > > > > Tests run: 1198, Failures: 1, Errors: 19, Skipped: 0 > > > > 4) In pom.xml replace: > > never > > By: > > pertest > > > > AFAIK, this is the same as forking mode in Ant, which in the build.xmlof > > Commons Config is set to true. I guess because some tests influence one > another > > (static variables or something like that). > > > > Then after running "mvn test" this results in: > > > > Tests run: 1198, Failures: 1, Errors: 0, Skipped: 0 > > > > This failure occurs in > org.apache.commons.configuration.TestConfigurationFactory > > (line 199) because it expects a SAXParseException where it gets only a > > SAXException. > > > > 5) To resolve this, replace: > > > > xerces > > xerces > > 2.2.1 > > By: > > > > xerces > > xerces > > 2.3.0 > > > > I have no idea why this works. > > > > 6) Then there are two warnings: > > [WARNING] While downloading xerces:xerces:2.3.0 > > This artifact has been relocated to xerces:xercesImpl:2.3.0. > > > > [WARNING] While downloading servletapi:servletapi:2.4 > > This artifact has been relocated to javax.servlet:servlet-api:2.4. > > > > Replace: > > > > xerces > > xerces > > 2.3.0 > > By: > > > > xerces > > xercesImpl > > 2.3.0 > > > > And replace: > > > > servletapi > > servletapi > > 2.4 > > By: > > > > javax.servlet > > servlet-api > > 2.4 > > > > Or did I overlook something more simple ? > > > > (BTW: I did not see any problems with colors) > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > > For additional commands, e-mail: dev-help@commons.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > ------=_Part_68271_21925475.1188240441242--