Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 34176 invoked from network); 30 Oct 2005 00:50:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Oct 2005 00:50:15 -0000 Received: (qmail 97916 invoked by uid 500); 30 Oct 2005 00:50:13 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 97859 invoked by uid 500); 30 Oct 2005 00:50:13 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 97847 invoked by uid 99); 30 Oct 2005 00:50:13 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ammulder@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2005 17:50:12 -0700 Received: by zproxy.gmail.com with SMTP id 9so855537nzo for ; Sat, 29 Oct 2005 17:48:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S6yjuOgfpAPQT28ejHZxbqPtkeuioe7ZQ/e29+amgnSIuNaHgefJfnVFkVW3u4eSnDQfRW/7+YVTvtcbF4gRrnqYES1UD8KbDnfsAQ5h7+DfnMPnV8gIB3str90GfynQ+5u8K60mn0rYIF2lyHxFfYyVcugrPrvoHT7dR03Dcaw= Received: by 10.36.96.19 with SMTP id t19mr1998600nzb; Sat, 29 Oct 2005 17:48:51 -0700 (PDT) Received: by 10.37.13.69 with HTTP; Sat, 29 Oct 2005 17:48:51 -0700 (PDT) Message-ID: <74e15baa0510291748h10f7e4bfx373818bea17da1da@mail.gmail.com> Date: Sat, 29 Oct 2005 20:48:51 -0400 From: Aaron Mulder Sender: ammulder@gmail.com To: dev@geronimo.apache.org Subject: Re: Building specs with Maven 2.x In-Reply-To: <74e15baa0510291746y45a2814ctcec7fb8f00ee117f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1130571043.25786.521.camel@localhost.localdomain> <74e15baa0510291113u29a0a302g2d87c67acf5fec99@mail.gmail.com> <4363BED1.3070707@savoirtech.com> <74e15baa0510291241r31985b00gf17d6c55740bf4af@mail.gmail.com> <4363D73D.6020301@savoirtech.com> <74e15baa0510291508i2e91252boa429c2683299335b@mail.gmail.com> <43640D80.3000303@savoirtech.com> <74e15baa0510291733h785eef3eif21ba85b66f9dc7a@mail.gmail.com> <74e15baa0510291734j1ca53d14vf8e1e52ef7c82897@mail.gmail.com> <74e15baa0510291746y45a2814ctcec7fb8f00ee117f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, when I tried checking out specs *into* geronimo, and building Geronimo with Maven 1.1-beta-2, I got the error below. When I move specs out again, the Geronimo build at least gets past the "calculate submodules" stage, and then fails with the missing dependency error(s). Not a good build day for me. :) Aaron maven -o __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-2 DEPRECATED: the default goal should be specified in the section of project.xml instead of maven.xml DEPRECATED: the default goal should be specified in the section of project.xml instead of maven.xml build:start: m:-all: m:init: m:default: multiproject:projects-init: [echo] Gathering project list Starting the reactor... BUILD FAILED File...... /Users/ammulder/.maven/cache/maven-multiproject-plugin-1.4.1/plu= gin.jelly Element... maven:reactor Line...... 64 Column.... -1 Unknown error reading project Total time : 15 seconds Finished at : Saturday, October 29, 2005 8:44:34 PM EDT On 10/29/05, Aaron Mulder wrote: > On 10/29/05, Aaron Mulder wrote: > > Hmm, after looking again, I notice that you're checkout out specs > > *into* your Geronimo directory -- I guess that's the difference. > > > > Aaron > > > > On 10/29/05, Aaron Mulder wrote: > > > On 10/29/05, Jeff Genender wrote: > > > > I think the flux is that you didn't follow what I said ;-) > > > > > > The M2 stack dump was fixed by running the command in Jason's e-mail > > > from geronimo (not specs) trunk. I suspect you'd encounter it if you > > > whacked both .maven and .m2 repositories and tried to build without > > > running the M2 command from the geronimo (not specs) trunk. > > > > > > However, I'm still left with the problem that until Jason fixes the > > > specs build to write to the M1 repo instead of the M2 repo, I have to > > > manually copy over all the spec JARs from ~/.m2 to ~/.maven. I'm > > > confused as to how this could be working for you if your geronimo and > > > specs trunks are both up to date. > > > > > > But if you think I'm not following what you say, please try this: > > > > > > rm -rf ~/.maven > > > rm -rf ~/.m2 > > > mkdir foo > > > cd foo > > > svn co https://svn.apache.org/repos/asf/geronimo/trunk geronimo > > > svn co https://svn.apache.org/repos/asf/geronimo/specs/trunk geronimo= -specs > > > cd geronimo > > > maven m:co (works) > > > maven (fails) > > > cd ../geronimo-specs > > > mvn (fails) > > > cd ../geronimo > > > mvn -N install (works) > > > maven (fails) > > > cd ../geronimo-specs > > > mvn (works) > > > cd ../geronimo > > > maven (fails) > > > > > > In other words, I ultimately got the specs to build, but nothing make= s > > > the Geronimo build work without manual artifact copying, as far as I > > > can tell. Do you get a different result? > > > > > > Thanks, > > > Aaron > > > > > > > > > > > I just did it again and it worked fine. I even wiped out my maven = repo > > > > too to be sure. > > > > > > > > From what I can see...from your stack trace you ran M2. That was = your > > > > problem. Just do a checkout of specs, as I explained below...in yo= ur > > > > geronimo directory. > > > > > > > > Run the *old* maven, not the new one from the top of geronimo as yo= u > > > > normally did...and it will build fine. > > > > > > > > Jeff > > > > > > > > Aaron Mulder wrote: > > > > > OK, so here's the flux for me: > > > > > > > > > > 1) I did an m:rebuild-all (probably the first mistake) > > > > > 2) I can't build Geronimo offline because the specs are missing > > > > > 3) I can't build Geronimo online because > > > > > geronimo-spec-j2ee-jacc-1.0-rc5.jar is not in any of the the onli= ne > > > > > repos > > > > > 4) I can't build the specs at all (when I run Maven 2 I get the b= ig > > > > > stack traces) > > > > > > > > > > I'll keep checking every now and then. In the mean time, if some= one > > > > > with a working specs module could sync it to the repo so at least > > > > > there are binaries of all the specs online, that would get me goi= ng > > > > > again. > > > > > > > > > > Thanks, > > > > > Aaron > > > > > > > > > > On 10/29/05, Jeff Genender wrote: > > > > >> It must then be in a state of flux...this worked for me at 9AM (= on my > > > > >> new powerbook - yay) this morning...so I suspect they are workin= g on it. > > > > >> > > > > >> Jeff > > > > >> > > > > >> Aaron Mulder wrote: > > > > >>> On 10/29/05, Jeff Genender wrote: > > > > >>>> Aaron, > > > > >>>> > > > > >>>> I had the same issue... > > > > >>>> > > > > >>>> As a work around...go into your geronimo directory and issue t= his (all > > > > >>>> on one line): > > > > >>>> > > > > >>>> svn checkout https://svn.apache.org/repos/asf/geronimo/specs/t= runk/ specs > > > > >>>> > > > > >>>> Then you should be able to build it all. > > > > >>> Well, I did that, and when I tried to build that specs tree wit= h Maven > > > > >>> 2 I got the big Maven stack trace above. But I'll check it on = IRC > > > > >>> and/or later. Bad timing on my part, I guess. :) > > > > >>> > > > > >>> Aaron > > > > >>> > > > > >>>> Aaron Mulder wrote: > > > > >>>>> So I tried a rebuild-all. > > > > >>>>> > > > > >>>>> Geronimo won't build because the specs aren't there. > > > > >>>>> > > > > >>>>> The specs won't build because of the error below (is that say= ing > > > > >>>>> Geronimo isn't there?). I assume I'm supposed to use maven2 = on > > > > >>>>> geronimo/specs/trunk now because Maven 1.1 didn't seem to do = anything. > > > > >>>>> :) > > > > >>>>> > > > > >>>>> Thanks, > > > > >>>>> Aaron > > > > >>>>> > > > > >>>>> [INFO] Scanning for projects... > > > > >>>>> [INFO] ------------------------------------------------------= ---------------------- > > > > >>>>> [ERROR] FATAL ERROR > > > > >>>>> [INFO] ------------------------------------------------------= ---------------------- > > > > >>>>> [INFO] Failed to resolve artifact. > > > > >>>>> > > > > >>>>> GroupId: org.apache.geronimo > > > > >>>>> ArtifactId: geronimo > > > > >>>>> Version: 1.0-SNAPSHOT > > > > >>>>> > > > > >>>>> Reason: Unable to download the artifact from any repository > > > > >>>>> org.apache.geronimo:geronimo:1.0-SNAPSHOT:pom > > > > >>>>> > > > > >>>>> from the specified remote repositories: > > > > >>>>> central (http://repo1.maven.org/maven2) > > > > >>>>> > > > > >>>>> > > > > >>>>> [INFO] ------------------------------------------------------= ---------------------- > > > > >>>>> [INFO] Trace > > > > >>>>> org.apache.maven.reactor.MavenExecutionException: POM > > > > >>>>> 'org.apache.geronimo:geronimo' not found in repository: Unabl= e to > > > > >>>>> download the artifact from any repository > > > > >>>>> org.apache.geronimo:geronimo:1.0-SNAPSHOT:pom > > > > >>>>> > > > > >>>>> from the specified remote repositories: > > > > >>>>> central (http://repo1.maven.org/maven2) > > > > >>>>> > > > > >>>>> at org.apache.maven.DefaultMaven.getProjects(DefaultM= aven.java:359) > > > > >>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMav= en.java:276) > > > > >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven= .java:113) > > > > >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:2= 49) > > > > >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ= e Method) > > > > >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Native= MethodAccessorImpl.java:39) > > > > >>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De= legatingMethodAccessorImpl.java:25) > > > > >>>>> at java.lang.reflect.Method.invoke(Method.java:324) > > > > >>>>> at org.codehaus.classworlds.Launcher.launchEnhanced(L= auncher.java:315) > > > > >>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.= java:255) > > > > >>>>> at org.codehaus.classworlds.Launcher.mainWithExitCode= (Launcher.java:430) > > > > >>>>> at org.codehaus.classworlds.Launcher.main(Launcher.jav= a:375) > > > > >>>>> Caused by: org.apache.maven.project.ProjectBuildingException:= POM > > > > >>>>> 'org.apache.geronimo:geronimo' not found in repository: Unabl= e to > > > > >>>>> download the artifact from any repository > > > > >>>>> org.apache.geronimo:geronimo:1.0-SNAPSHOT:pom > > > > >>>>> > > > > >>>>> from the specified remote repositories: > > > > >>>>> central (http://repo1.maven.org/maven2) > > > > >>>>> > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.findModelFromRepository(DefaultMavenProjectBuilder.java:423) > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.assembleLineage(DefaultMavenProjectBuilder.java:955) > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.build(DefaultMavenProjectBuilder.java:586) > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.buildFromSourceFile(DefaultMavenProjectBuilder.java:298) > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.build(DefaultMavenProjectBuilder.java:276) > > > > >>>>> at org.apache.maven.DefaultMaven.getProject(DefaultMa= ven.java:509) > > > > >>>>> at org.apache.maven.DefaultMaven.collectProjects(Defa= ultMaven.java:441) > > > > >>>>> at org.apache.maven.DefaultMaven.getProjects(DefaultM= aven.java:345) > > > > >>>>> ... 11 more > > > > >>>>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoun= dException: > > > > >>>>> Unable to download the artifact from any repository > > > > >>>>> org.apache.geronimo:geronimo:1.0-SNAPSHOT:pom > > > > >>>>> > > > > >>>>> from the specified remote repositories: > > > > >>>>> central (http://repo1.maven.org/maven2) > > > > >>>>> > > > > >>>>> at org.apache.maven.artifact.resolver.DefaultArtifact= Resolver.resolve(DefaultArtifactResolver.java:136) > > > > >>>>> at org.apache.maven.artifact.resolver.DefaultArtifact= Resolver.resolve(DefaultArtifactResolver.java:63) > > > > >>>>> at org.apache.maven.project.DefaultMavenProjectBuilde= r.findModelFromRepository(DefaultMavenProjectBuilder.java:380) > > > > >>>>> ... 18 more > > > > >>>>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistExcepti= on: > > > > >>>>> Unable to download the artifact from any repository > > > > >>>>> at org.apache.maven.artifact.manager.DefaultWagonMana= ger.getArtifact(DefaultWagonManager.java:260) > > > > >>>>> at org.apache.maven.artifact.resolver.DefaultArtifact= Resolver.resolve(DefaultArtifactResolver.java:124) > > > > >>>>> ... 20 more > > > > >>>>> [INFO] ------------------------------------------------------= ---------------------- > > > > >>>>> [INFO] Total time: < 1 second > > > > >>>>> [INFO] Finished at: Sat Oct 29 14:08:38 EDT 2005 > > > > >>>>> [INFO] Final Memory: 1M/2M > > > > >>>>> [INFO] ------------------------------------------------------= ---------------------- > > > > >>>>> > > > > >>>>> On 10/29/05, Jeff Genender wrote: > > > > >>>>>> This is just the and = parameters > > > > >>>>>> in the section of the pom, so we do not need to move= anything in > > > > >>>>>> the interim, just add those declarations to point at our loc= ations. > > > > >>>>>> > > > > >>>>>> Jeff > > > > >>>>>> > > > > >>>>>> Aaron Mulder wrote: > > > > >>>>>>> Jason, > > > > >>>>>>> > > > > >>>>>>> I guess this is really a Maven question, but... If I read = that page > > > > >>>>>>> right it says that what's now > > > > >>>>>>> > > > > >>>>>>> geronimo/module-name/src/java > > > > >>>>>>> geronimo/module-name/src/test > > > > >>>>>>> > > > > >>>>>>> Would need to change (for Maven 2) to > > > > >>>>>>> > > > > >>>>>>> geronimo/module-name/src/main/java > > > > >>>>>>> geronimo/module-name/src/test/java > > > > >>>>>>> > > > > >>>>>>> Is that correct? Is that easy to override so the former la= yout works > > > > >>>>>>> for all the modules in one shot? > > > > >>>>>>> > > > > >>>>>>> Thanks, > > > > >>>>>>> Aaron > > > > >>>>>>> > > > > >>>>>>> On 10/29/05, Jason van Zyl wrote: > > > > >>>>>>>> Hi, > > > > >>>>>>>> > > > > >>>>>>>> I've got all the specs builds working with Maven 2.x excep= t for the > > > > >>>>>>>> corba module for which I need to whip up a quick plug-in t= o deal with > > > > >>>>>>>> IDL. > > > > >>>>>>>> > > > > >>>>>>>> Are the specs built frequently because I see that you've c= hanged the > > > > >>>>>>>> directory structure of the SVN repository and so many of y= our references > > > > >>>>>>>> like: > > > > >>>>>>>> > > > > >>>>>>>> ../../etc/project.xml > > > > >>>>>>>> > > > > >>>>>>>> Won't work anymore unless I'm not seeing something. > > > > >>>>>>>> > > > > >>>>>>>> If I can get the specs building with Maven 2.x and get the= artifacts > > > > >>>>>>>> produced into the m1 repository, and get the spec builds r= unning under > > > > >>>>>>>> Continuum can I flip the spec builds over to Maven 2.x sta= ndards and use > > > > >>>>>>>> it as the default build? I figure that the specs don't cha= nge that often > > > > >>>>>>>> and is a good place to start if folks are interesting in c= onverting the > > > > >>>>>>>> build over to Maven 2.x. > > > > >>>>>>>> > > > > >>>>>>>> This basically boils down to adhering to this: > > > > >>>>>>>> > > > > >>>>>>>> http://maven.apache.org/guides/introduction/introduction-t= o-the-standard-directory-layout.html > > > > >>>>>>>> > > > > >>>>>>>> And getting a few tips about the corba module (Alan :-)). = Everything > > > > >>>>>>>> else appears to be working. > > > > >>>>>>>> > > > > >>>>>>>> -- > > > > >>>>>>>> jvz. > > > > >>>>>>>> > > > > >>>>>>>> Jason van Zyl > > > > >>>>>>>> jason at maven.org > > > > >>>>>>>> http://maven.apache.org > > > > >>>>>>>> > > > > >>>>>>>> you are never dedicated to something you have complete con= fidence in. > > > > >>>>>>>> No one is fanatically shouting that the sun is going to ri= se tomorrow. > > > > >>>>>>>> They know it is going to rise tomorrow. When people are fa= natically > > > > >>>>>>>> dedicated to political or religious faiths or any other ki= nd of > > > > >>>>>>>> dogmas or goals, it's always because these dogmas or > > > > >>>>>>>> goals are in doubt. > > > > >>>>>>>> > > > > >>>>>>>> -- Robert Pirzig, Zen and the Art of Motorcycle Maintena= nce > > > > >>>>>>>> > > > > >>>>>>>> > > > > > > > > > >