Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 86445 invoked from network); 30 May 2009 01:14:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 May 2009 01:14:13 -0000 Received: (qmail 52902 invoked by uid 500); 30 May 2009 01:14:25 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 52891 invoked by uid 99); 30 May 2009 01:14:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 01:14:25 +0000 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 [64.142.19.5] (HELO b.mail.sonic.net) (64.142.19.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2009 01:14:15 +0000 Received: from [192.168.1.101] (97-124-36-11.phnx.qwest.net [97.124.36.11]) (authenticated bits=0) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id n4U1DsAa010634 for ; Fri, 29 May 2009 18:13:54 -0700 Message-ID: <4A208961.4020506@sonic.net> Date: Fri, 29 May 2009 18:18:25 -0700 From: Michelle Caisse Reply-To: michelle@caisse.us User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Re: Again: runtck.iut and datanucleus trunk References: <4A171F8D.5070806@web.de> In-Reply-To: <4A171F8D.5070806@web.de> Content-Type: multipart/alternative; boundary="------------040205050505060607040209" X-Virus-Checked: Checked by ClamAV on apache.org --------------040205050505060607040209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi J�rg, You are right that the TCK was not designed for the RI to be run just like any IUT, but only with the RI jars listed as dependencies. Since this is a special case, the cleanest solution is probably to change the dependencies in project.xml to name the DataNucleus version that you want to run against and manually drop the jars into your local repository. Also, instead of manually copying the jars you could change maven.repo.remote in project.properties to list a URL from which the jars could be downloaded by maven. -- Michelle J�rg von Frantzius wrote: > Hi, > > again I'm stumbling on the problem of running the tck against > datanucleus as "implementation under test". Michelle had written previously: > >> From Michelle Caisse >> Subject Re: runtck.iut >> Date Fri, 03 Apr 2009 04:00:00 GMT >> I just checked in a fix for this problem. When the tck datanucleus >> dependencies change, both jdo.jdori.classpath in maven.xml and >> iut.runtck.classpath in build.properties need to be updated in parallel. >> The latter is used when runtck.iut is invoked. >> >> -- Michelle >> >> >> > So I copied my datanucleus 1.1.4-snapshot jars to tck2/iut_jars and > changed tck2/build.properties as follows: > iut.runtck.classpath = > ${jta.jarfile}${path.separator}${xmlparser}${path.separator}${asm.jarfile}${path.separator}${logging.log4j.jarfile} > > Yet still I end up with datanucleus twice in the classpath, seemingly > because the RI is drawn in as a maven dependency: > > [java] Exception in thread "main" Plugin (Bundle) > "org.datanucleus" is already registered. Ensure you dont have > multiple JAR versions of the same plugin in the classpath. The URL > "file:/home/joerg/jdo/trunk/tck2/iut_jars/datanucleus-core-1.1.4-SNAPSHOT.jar" > is already registered, and you are trying to register an identical > plugin located at URL > "file:/home/joerg/.maven/repository/org.datanucleus/jars/datanucleus-core-1.1-SNAPSHOT.jar." > [java] org.datanucleus.exceptions.NucleusException: Plugin > (Bundle) "org.datanucleus" is already registered. Ensure you dont > have multiple JAR versions of the same plugin in the classpath. The > URL > "file:/home/joerg/jdo/trunk/tck2/iut_jars/datanucleus-core-1.1.4-SNAPSHOT.jar" > is already registered, and you are trying to register an identical > plugin located at URL > "file:/home/joerg/.maven/repository/org.datanucleus/jars/datanucleus-core-1.1-SNAPSHOT.jar." > [java] at [..] > > The only way around this probably is to overwrite the RI jars in the > local maven1 repo with the datanucleus 1.1.4-SNAPSHOT jars originating > from building with maven2, but using the maven1 names of the RI. That's > not a very clean approach, though... > > I'm asking because maven1 build support has been dropped entirely from > datanucleus, so the jars cannot be put into the local maven1 repo by > simply building datanucleus (with maven1). > > I don't know if conditional dependencies in maven1 are feasible at all? > With maven2, a clean way to do it would be profiles. Just to have > mentioned it ;) > > Regards, > J�rg > > > --------------040205050505060607040209--