Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 32435 invoked from network); 8 Feb 2008 20:28:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 20:28:25 -0000 Received: (qmail 4657 invoked by uid 500); 8 Feb 2008 20:28:17 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 4630 invoked by uid 500); 8 Feb 2008 20:28:17 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 4621 invoked by uid 99); 8 Feb 2008 20:28:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 12:28:17 -0800 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 kwsutter@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 20:27:47 +0000 Received: by wx-out-0506.google.com with SMTP id s7so3645523wxc.24 for ; Fri, 08 Feb 2008 12:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=0yxMfiFXxA9tVw/8X17+oEjL2kEcaADegjZ5qg1Gup4=; b=opwJ7yN28dZX75p22ojrniyGBVj7mRJe09N5gB4qv/D3opoLsXBkU+WXBxA+c/21r/kIHmEeldTCOaCaZmx7OLBANBEX6gU68/bCBGqyXsc2bxaNhH3KVxOHCi83UCAa4f8Am8ip2ytTsokh0tx67prbnlvOKoJfLWreFt3HHg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FOiWIDxFdP7ECtNXY6UQmGxZcqZIVQuwZBeTuKY4QVzdmeYr8hBBA7UOjnrUjpKpZouNhzkcEa9/3ATlu3kba4sCpgU9AsVhuh8N24Tufj8RJOP7PPDCPpFBZA91k0pte98kpCFjSJfGyb7HS7YZ2YnZqLwZObKS9dCLJjjJN0A= Received: by 10.115.75.1 with SMTP id c1mr5769939wal.84.1202502472195; Fri, 08 Feb 2008 12:27:52 -0800 (PST) Received: by 10.114.75.15 with HTTP; Fri, 8 Feb 2008 12:27:52 -0800 (PST) Message-ID: <89c0c52c0802081227s1d3a000buc74cc37f132a4154@mail.gmail.com> Date: Fri, 8 Feb 2008 14:27:52 -0600 From: "Kevin Sutter" To: dev@openjpa.apache.org Subject: Re: Compilation errors on trunk In-Reply-To: <89c0c52c0802081210l69cb6ca2j349ab060d044ff35@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_31813_12857037.1202502472186" References: <47AA4D97.4060902@gmail.com> <47AB058B.4060402@apache.org> <47AB703F.6040204@gmail.com> <72c1350f0802071548j506155b0l17c0022214108cba@mail.gmail.com> <3992B07C0590B548BB294D31768A1DA2D88F23@repbex01.amer.bea.com> <7262f25e0802071905m2a431385s2e1ba2e933d9f0a@mail.gmail.com> <72c1350f0802072018p799c2795heba7953d3902ccf2@mail.gmail.com> <3992B07C0590B548BB294D31768A1DA2D88FEF@repbex01.amer.bea.com> <47ACAEB6.6030009@apache.org> <89c0c52c0802081210l69cb6ca2j349ab060d044ff35@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_31813_12857037.1202502472186 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Okay, I have figured out that if I force the use of the surefire 2.4 plugin, then things will build okay. But, without the 2.4 element, then maven pulls down the 2.3 plugin by default and then we hit the problems described by Pinaki and myself. So, what's the deal with the surefire default version? Does anybody know how to force it to pull the 2.4version by default? Or, should we put the 2.4 element back in? Thanks, Kevin On Feb 8, 2008 2:10 PM, Kevin Sutter wrote: > Pinaki, > I am getting that same surefire error that you reported: > > The java class is not found: > org.apache.maven.surefire.booter.SurefireBooter > > I have cleaned out my maven surefire repository and tried the builds again > with the same results. I'll keep experimenting, but I thought I would > indicate a "me too"... > > Thanks, > Kevin > > > On Feb 8, 2008 1:34 PM, David Ezzio wrote: > > > Hi Pinaki, > > > > The Surefire plugin has moved from 2.2 to 2.4. For me, the plugin was > > just drawn from the remote repository by maven. I haven't configured > > that in any way. A 'mvn clean install' runs just fine at r619978 (last > > OpenJPA revision recorded: 619770) on my Windows machine. > > > > David > > > > > > Pinaki Poddar wrote: > > > Hi, > > > With revision 619964, 'mvn install' fails with > > > > > > [INFO] Surefire report directory: > > > C:\project\openjpa\openjpa-lib\target\surefire-reports > > > [INFO] Building jar: C:\WINDOWS\TEMP\surefirebooter15422.jar > > > java.lang.NoClassDefFoundError: > > > org/apache/maven/surefire/booter/SurefireBooter > > > Exception in thread "main" > > > > > > Does it require some Surefire upgrade? > > > > > > > > > mvn install -Dmaven.skip.test=true > > > > > > passes. > > > > > > > > > C:\project\openjpa>mvn install > > > [INFO] Scanning for projects... > > > [INFO] Reactor build order: > > > [INFO] OpenJPA > > > [INFO] OpenJPA Utilities > > > [INFO] OpenJPA Kernel > > > [INFO] OpenJPA JDBC > > > [INFO] OpenJPA XML Store > > > [INFO] OpenJPA JDBC 1.5 > > > [INFO] OpenJPA Utilities 1.5 > > > [INFO] OpenJPA Kernel 1.5 > > > [INFO] OpenJPA JPA > > > [INFO] OpenJPA JPA JDBC > > > [INFO] OpenJPA Slice > > > [INFO] OpenJPA Aggregate Jar > > > [INFO] OpenJPA Distribution > > > [INFO] OpenJPA Integration Tests > > > [INFO] OpenJPA Examples Integration Tests > > > [INFO] OpenJPA JPA TCK Integration Tests > > > [INFO] OpenJPA Persistence Examples > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > ---- > > > [INFO] Building OpenJPA > > > [INFO] task-segment: [install] > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > ---- > > > [INFO] [site:attach-descriptor] > > > [INFO] [install:install] > > > [INFO] Installing C:\project\openjpa\pom.xml to C:\Documents and > > > Settings\ppoddar\.m2\repository\org\apache\openjpa\open > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > ---- > > > [INFO] Building OpenJPA Utilities > > > [INFO] task-segment: [install] > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > ---- > > > [INFO] [resources:resources] > > > [INFO] Using default encoding to copy filtered resources. > > > [INFO] [compiler:compile] > > > [INFO] Nothing to compile - all classes are up to date > > > [INFO] [antrun:run {execution: set subversion revision}] > > > [INFO] Executing tasks > > > [echo] Revision: 420667:619770M > > > [echo] OpenJPA version: 1.1.0-SNAPSHOT > > > [INFO] Executed tasks > > > [INFO] [antrun:run {execution: delete sun.misc.Perf}] > > > [INFO] Executing tasks > > > [INFO] Executed tasks > > > [INFO] [resources:testResources] > > > [INFO] Using default encoding to copy filtered resources. > > > [INFO] [compiler:testCompile] > > > [INFO] Nothing to compile - all classes are up to date > > > [INFO] [surefire:test] > > > [INFO] Surefire report directory: > > > C:\project\openjpa\openjpa-lib\target\surefire-reports > > > [INFO] Building jar: C:\WINDOWS\TEMP\surefirebooter15422.jar > > > java.lang.NoClassDefFoundError: > > > org/apache/maven/surefire/booter/SurefireBooter > > > Exception in thread "main" > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > [ERROR] BUILD FAILURE > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > [INFO] There are test failures. > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > [INFO] For more information, run Maven with the -e switch > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > [INFO] Total time: 5 seconds > > > [INFO] Finished at: Fri Feb 08 12:35:31 CST 2008 > > > [INFO] Final Memory: 9M/16M > > > [INFO] > > > > > ------------------------------------------------------------------------ > > > > > > > > > -----Original Message----- > > > From: Michael Dick [mailto:michael.d.dick@gmail.com] > > > Sent: Thursday, February 07, 2008 10:18 PM > > > To: dev@openjpa.apache.org > > > Subject: Re: Compilation errors on trunk > > > > > > This is just my understanding of how it works, any maven gurus out > > there > > > can correct me. > > > > > > -Dtest=xxxx is a Surefire setting and will execute any test(s) that > > > match xxxx (not sure whether it supports wildcards). Unless you have a > > > test class named false, no tests will execute and the build will > > report > > > sucess (at least from the command line). > > > > > > -Dmaven.test.skip=true is a more general maven setting which tells > > maven > > > not to compile the test code, or to run surefire. The build will > > report > > > success. > > > > > > > > > I forgot about OPENJPA-347 and didn't think to check existing JIRA > > > reports. > > > The ant task can certainly be made to skip the enhancer if > > -Dtest=false > > > is specified. We'll have to avoid naming any testcases false but that > > > shouldn't be too big of a deal.. > > > > > > -Mike > > > > > > On Feb 7, 2008 9:05 PM, Patrick Linskey wrote: > > > > > >> -Dtest=false is a surefire thing. But note that now that we're using > > >> the more recent version of surefire, -Dtest=false will report failure > > >> at the end of the test run; -DskipTests will skip tests and report > > >> success. > > >> > > >> -Patrick > > >> > > >> On Feb 7, 2008 6:33 PM, Pinaki Poddar wrote: > > >>> Hi, > > >>> The related build issue is enhancer still runs even when > > > -Dtest=false > > >>> http://issues.apache.org/jira/browse/OPENJPA-374 > > >>> > > >>> This unnecessary enhancement slows down a modify-build-test-debug > > > cycle. > > >>> Some maven expert may suggest how to enhance conditionally? > > >>> > > >>> More naive question: > > >>> which part of the build switches off the surefire test execution > > >>> when -Dtest=false? > > >>> > > >>> > > >>> > > >>> -----Original Message----- > > >>> From: Michael Dick [mailto:michael.d.dick@gmail.com] > > >>> Sent: Thursday, February 07, 2008 5:48 PM > > >>> To: dev@openjpa.apache.org; rahul.thakur.xdev@gmail.com > > >>> Subject: Re: Compilation errors on trunk > > >>> > > >>> Hi Rahul, > > >>> > > >>> Looks like there is a problem if the tests aren't compiled the > > >>> enhancer will still run. I think most of us have been skipping the > > >>> tests by doing this : > > >>> > > >>> mvn clean install -Dtest=false. > > >>> > > >>> Could you give that a try and see if it works for you? > > >>> > > >>> On Feb 7, 2008 2:55 PM, Rahul Thakur > > >>> wrote: > > >>> > > >>>> Hi David, > > >>>> > > >>>> Can you please try this command and I would be keen to see what > > >>>> output > > >>>> you get: > > >>>> > > >>>> > mvn clean install -Dmaven.test.skip=true > > >>>> > > >>>> Cheers, > > >>>> Rahul > > >>>> > > >>>> > > >>>> David Ezzio wrote: > > >>>>> Hi Rahul, > > >>>>> > > >>>>> On the theory that it's nice to see something working as well as > > > > > >>>>> something broken when trying to debug, I've attached the output > > >>>>> from > > >>>>> a "mvn clean compile" run here, on Windows XP, with additional > > >>>>> information on my environment setup. Hope this helps. > > >>>>> > > >>>>> David > > >>>>> > > >>>>> > > >>>>> Rahul Thakur wrote: > > >>>>>> I was compiling with JDK 1.6 but I ensured that JAVA_HOME was > > >>>>>> set to JDK 1.5 after Pinaki mentioned it earlier on this > > > thread. > > >>>>>> Rahul > > >>>>>> > > >>>>>> Patrick Linskey wrote: > > >>>>>>> Are you compiling with Java 1.6? OpenJPA does not compile with > > > > > >>>>>>> Java 6 currently; this is due to JDBC incompatibilities. > > >>>>>>> > > >>>>>>> Note that OpenJPA does work with Java 1.6, of course. > > >>>>>>> > > >>>>>>> -Patrick > > >>>>>>> > > >>>>>>> On Feb 6, 2008 9:21 PM, Rahul Thakur > > >>>>>>> > > >>>>>>> wrote: > > >>>>>>> > > >>>>>>>> Those errors show up when you run the maven build 'mvn clean > > >>>>>>>> install -Dmaven.test.skip=true' > > >>>>>>>> > > >>>>>>>> Even otherwise, there are tests that are failing for > > >>>>>>>> 'openjpa-persistence-jdbc' module here at my end. > > >>>>>>>> > > >>>>>>>> I am not sure why no one else seeing them (I am on a > > >>>>>>>> different PC > > >>>>>>>> now but same errors) > > >>>>>>>> > > >>>>>>>> Rahul > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> Craig L Russell wrote: > > >>>>>>>> > > >>>>>>>>> Hi Rahul, > > >>>>>>>>> > > >>>>>>>>> On Feb 6, 2008, at 5:28 PM, Rahul Thakur wrote: > > >>>>>>>>> > > >>>>>>>>>> output with Maven 2.0.7 > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> apache\openjpa\openjpa-persistence\1.1.0-SNAPSHOT\openjpa- > > >>>> persistence-1.1.0-SNAPSHOT.jar > > >>>>>>>>>> > > >>>>>>>>>> [INFO] > > >>>>>>>>>> > > >>>> ------------------------------------------------------------------ > > >>>> ---- > > >>>> ------ > > >>>>>>>>>> > > >>>>>>>>>> [INFO] Building OpenJPA JPA JDBC > > >>>>>>>>>> [INFO] task-segment: [clean, install] > > >>>>>>>>>> [INFO] > > >>>>>>>>>> > > >>>> ------------------------------------------------------------------ > > >>>> ---- > > >>>> ------ > > >>>>>>>>>> > > >>>>>>>>>> [INFO] [clean:clean] > > >>>>>>>>>> [INFO] Deleting directory > > >>>>>>>>>> C:\oss\openjpa\openjpa-persistence-jdbc\target > > >>>>>>>>>> [INFO] [resources:resources] [INFO] Using default encoding > > >>>>>>>>>> to copy filtered resources. > > >>>>>>>>>> [INFO] [compiler:compile] > > >>>>>>>>>> [INFO] Compiling 65 source files to > > >>>>>>>>>> C:\oss\openjpa\openjpa-persistence-jdbc\target\classes > > >>>>>>>>>> [INFO] [resources:testResources] [INFO] Using default > > >>>>>>>>>> encoding to copy filtered resources. > > >>>>>>>>>> [INFO] [compiler:testCompile] [INFO] Not compiling test > > >>>>>>>>>> sources > > >>>>>>>>> I'm running mvn --version Maven version: 2.0.6 > > >>>>>>>>> > > >>>>>>>>> My mvn install run compiles test sources: > > >>>>>>>>> > > >>>>>>>>> [INFO] [compiler:testCompile] Compiling 372 source files to > > >>>>>>>>> > > >>>> /Users/clr/openjpa/openjpa/trunk/openjpa-persistence-jdbc/target/t > > >>>> est- > > >>>> classes > > >>>>>>>>> > > >>>>>>>>> [INFO] [antrun:run {execution: default}] [INFO] Executing > > >>>>>>>>> tasks > > >>>>>>>>> > > >>>>>>>>> I'm wondering why doesn't yours? > > >>>>>>>>> > > >>>>>>>>> Craig > > >>>>>>>>>> [INFO] [antrun:run {execution: default}] [INFO] Executing > > > tasks > > >>>>>>>>>> 297 xml-persistence-unit INFO [main] openjpa.Tool - No > > >>> targets > > >>>>>>>>>> were given. Running on all classes in your persisten t > > >>>>>>>>>> classes > > >>>>>>>>>> list, or all metadata files in classpath directories if you > > > > > >>>>>>>>>> have not listed your persistent classes. Use -hel p to > > >>>>>>>>>> display > > >>>>>>>>>> tool usage information. > > >>>>>>>>>> java.lang.IllegalArgumentException: > > >>>>>>>>>> java.lang.ClassNotFoundException: > > >>>>>>>>>> org.apache.openjpa.persistence.xml.SimpleXmlEntity > > >>>>>>>>> Craig Russell > > >>>>>>>>> Architect, Sun Java Enterprise System > > >>>>>>>>> http://java.sun.com/products/jdo > > >>>>>>>>> 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? > > >>>>>>>>> O, Gasp! > > >>>>>>>>> > > >>>>>>> > > >>>>>>> > > >>>> > > >>> > > >>> Notice: This email message, together with any attachments, may > > >>> contain > > >> information of BEA Systems, Inc., its subsidiaries and > > >> affiliated entities, that may be confidential, proprietary, > > >> copyrighted and/or legally privileged, and is intended solely for > > the > > > > > >> use of the individual or entity named in this message. If you are not > > >> the intended recipient, and have received this message in error, > > >> please immediately return this by email and then delete it. > > >> > > >> > > >> -- > > >> Patrick Linskey > > >> 202 669 5907 > > >> > > > > > > Notice: This email message, together with any attachments, may > > contain information of BEA Systems, Inc., its subsidiaries and > > affiliated entities, that may be confidential, proprietary, copyrighted > > and/or legally privileged, and is intended solely for the use of the > > individual or entity named in this message. If you are not the intended > > recipient, and have received this message in error, please immediately > > return this by email and then delete it. > > > > > > > ------=_Part_31813_12857037.1202502472186--