[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Trying to Build Jetty-7 (or 8) Under Windows.

http://wiki.eclipse.org/Jetty/Project/Building

cheers,
jesse
--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx



On Mon, Jun 22, 2009 at 10:50, Jesse McConnell<jesse.mcconnell@xxxxxxxxx> wrote:
> you shouldn't need to touch the toolchain stuff, everything is
> operating off of released versions from there...
>
> just checkout and build jetty-7 or jetty-8 and run 'mvn install'
>
> if that doesn't work report the error and I'll fix it.
>
> cheers!
> jesse
>
> p.s. looks like we need to fix that BUILDING.txt file as well
>
> --
> jesse mcconnell
> jesse.mcconnell@xxxxxxxxx
>
>
>
> On Mon, Jun 22, 2009 at 10:37, David Smith<david.smith@xxxxxxxxxxxxxx> wrote:
>> In the jetty-7 repository
>> (http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/) is a
>> file called BUILDING.txt. It contains the following:
>>
>>> Jetty is built with maven >= 2.0.8
>>>
>>> Currently there is not eclipse maven repository and we are not yet
>>> cleared to make releases to the public maven repositories. ÂThus in
>>> order to build jetty, you need to locally check out and build
>>> two modules used by the build system:
>>>
>>> Â cd /my/work/directory
>>> Â svn co
>> http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty-parent/trunk/jetty-parent
>> jetty-parent
>>> Â cd jetty-parent
>>> Â mvn install
>>> Â cd ..
>>> Â svn co
>> svn+ssh://gwilkins@xxxxxxxxxxxxxxx/svnroot/rt/org.eclipse.jetty/jetty-toolchain/trunk
>> jetty-toolchain
>>> Â cd jetty-toolchain
>>> Â mvn install
>>> Â cd ..
>>>
>>> You can then build this project:
>>>
>>> Â cd /my/work/directory/jetty-7
>>> Â mvn install
>>
>> So In my working directory E:\Projects I do:
>>
>> E:\Projects>set Java_HOME=C:\Program Files\Java\jdk1.6.0_14
>>
>> E:\Projects>svn co
>> http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty-parent/trunk/jetty-parent
>> .\jetty-parent
>> svn: URL
>> 'http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty-parent/trunk/jetty-parent'
>> doesn't exist
>>
>> OK, correct the obvious typo and try again:
>>
>> E:\Projects>svn co
>> http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty-parent/trunk/
>> .\jetty-parent
>> A Â Â.\jetty-parent/pom.xml
>> ÂU Â .\jetty-parent
>> Checked out revision 426.
>>
>> E:\Projects>cd jetty-parent
>>
>> E:\Projects\jetty-parent>mvn install
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Jetty :: Administrative Parent
>> [INFO] Â Âtask-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [enforcer:enforce {execution: enforce-java}]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing E:\Projects\jetty-parent\target\pom-transformed.xml to
>> E:\tools\.m2\repository2\org\eclipse\jetty\jetty-parent\1.1-SNAPSHOT\jetty-parent-1.1-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Mon Jun 22 16:20:53 BST 2009
>> [INFO] Final Memory: 11M/21M
>> [INFO]
>> ------------------------------------------------------------------------
>> E:\Projects\jetty-parent>
>>
>> Looks good so far, so move on to:
>>
>> E:\Projects\jetty-parent>cd ..
>>
>> E:\Projects>svn co
>> svn+ssh://gwilkins@xxxxxxxxxxxxxxx/svnroot/rt/org.eclipse.jetty/jetty-toolchain/trunk
>> jetty-toolchain
>> svn: Error in child process: exec of 'ssh' failed: No such file or directory
>>
>> Hmm, unless I am mistaken I would need a copy of Greg's key for this to
>> work, so I tried non-ssh access (I that a problem?):
>>
>> E:\Projects>svn co
>> http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty-toolchain/trunk
>> .\jetty-toolchain
>> A Â Â.\jetty-toolchain/jetty-build-resources
>> A Â Â.\jetty-toolchain/jetty-build-resources/src
>> A Â Â.\jetty-toolchain/jetty-build-resources/src/main
>> A Â Â.\jetty-toolchain/jetty-build-resources/src/main/resources
>> A Â Â.\jetty-toolchain/jetty-build-resources/src/main/resources/org
>> A Â Â.\jetty-toolchain/jetty-build-resources/src/main/resources/org/eclipse
>> A
>> .\jetty-toolchain/jetty-build-resources/src/main/resources/org/eclipse/jetty
>> A
>> .\jetty-toolchain/jetty-build-resources/src/main/resources/org/eclipse/jetty/build
>> A
>> .\jetty-toolchain/jetty-build-resources/src/main/resources/org/eclipse/jetty/build/resources
>> A
>> .\jetty-toolchain/jetty-build-resources/src/main/resources/org/eclipse/jetty/build/resources/javadoc.css
>> A Â Â.\jetty-toolchain/jetty-build-resources/pom.xml
>> A Â Â.\jetty-toolchain/pom.xml
>> A Â Â.\jetty-toolchain/jetty-artifact-remote-resources
>> A Â Â.\jetty-toolchain/jetty-artifact-remote-resources/src
>> A Â Â.\jetty-toolchain/jetty-artifact-remote-resources/src/main
>> A Â Â.\jetty-toolchain/jetty-artifact-remote-resources/src/main/resources
>> A
>> .\jetty-toolchain/jetty-artifact-remote-resources/src/main/resources/about.html
>> A Â Â.\jetty-toolchain/jetty-artifact-remote-resources/pom.xml
>> A Â Â.\jetty-toolchain/jetty-assembly-descriptors
>> A Â Â.\jetty-toolchain/jetty-assembly-descriptors/src
>> A Â Â.\jetty-toolchain/jetty-assembly-descriptors/src/main
>> A Â Â.\jetty-toolchain/jetty-assembly-descriptors/src/main/resources
>> A
>> .\jetty-toolchain/jetty-assembly-descriptors/src/main/resources/assemblies
>> A
>> .\jetty-toolchain/jetty-assembly-descriptors/src/main/resources/assemblies/plugin-site-component.xml
>> A
>> .\jetty-toolchain/jetty-assembly-descriptors/src/main/resources/assemblies/tests.xml
>> A
>> .\jetty-toolchain/jetty-assembly-descriptors/src/main/resources/assemblies/site-component.xml
>> A
>> .\jetty-toolchain/jetty-assembly-descriptors/src/main/resources/assemblies/config.xml
>> A Â Â.\jetty-toolchain/jetty-assembly-descriptors/pom.xml
>> A Â Â.\jetty-toolchain/jetty-distribution-remote-resources
>> A Â Â.\jetty-toolchain/jetty-distribution-remote-resources/src
>> A Â Â.\jetty-toolchain/jetty-distribution-remote-resources/src/test
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/test/resources
>> A Â Â.\jetty-toolchain/jetty-distribution-remote-resources/src/main
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/main/resources
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/main/resources/LICENSE-ECLIPSE-1.0.html
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/main/resources/notice.html
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/main/resources/INCUBATION.txt
>> A
>> .\jetty-toolchain/jetty-distribution-remote-resources/src/main/resources/LICENSE-APACHE-2.0.txt
>> A Â Â.\jetty-toolchain/jetty-distribution-remote-resources/pom.xml
>> A Â Â.\jetty-toolchain/jetty-toolchain
>> A Â Â.\jetty-toolchain/jetty-toolchain/pom.xml
>> ÂU Â .\jetty-toolchain
>> Checked out revision 426.
>>
>> E:\Projects\jetty-toolchain>mvn install
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>> Project ID: null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT
>>
>> Reason: Cannot find parent: org.eclipse.jetty.toolchain:jetty-toolchain
>> for project: null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT for
>> project null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
>> org.eclipse.jetty.toolchain:jetty-toolchain for project:
>> null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT for project
>> null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT
>> Â Â Â Âat org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
>> Â Â Â Âat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
>> Â Â Â Âat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>> Â Â Â Âat org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>> Â Â Â Âat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> Â Â Â Âat
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> Â Â Â Âat
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> Â Â Â Âat java.lang.reflect.Method.invoke(Method.java:597)
>> Â Â Â Âat
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.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.java:375)
>> Caused by: org.apache.maven.project.ProjectBuildingException: Cannot
>> find parent: org.eclipse.jetty.toolchain:jetty-toolchain for project:
>> null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT for project
>> null:jetty-assembly-descriptors:jar:1.1-SNAPSHOT
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1398)
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>> Â Â Â Âat org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
>> Â Â Â Âat
>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
>> Â Â Â Âat
>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:588)
>> Â Â Â Âat org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
>> Â Â Â Â... 11 more
>> Caused by: org.apache.maven.project.ProjectBuildingException: POM
>> 'org.eclipse.jetty.toolchain:jetty-toolchain' not found in repository:
>> Unable to download the artifact from any repository
>>
>> Âorg.eclipse.jetty.toolchain:jetty-toolchain:pom:1.1-SNAPSHOT
>>
>> from the specified remote repositories:
>> Âcentral (http://repo1.maven.org/maven2)
>>
>> Âfor project org.eclipse.jetty.toolchain:jetty-toolchain
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1394)
>> Â Â Â Â... 18 more
>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>> Unable to download the artifact from any repository
>>
>> Âorg.eclipse.jetty.toolchain:jetty-toolchain:pom:1.1-SNAPSHOT
>>
>> from the specified remote repositories:
>> Âcentral (http://repo1.maven.org/maven2)
>>
>>
>> Â Â Â Âat
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
>> Â Â Â Âat
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
>> Â Â Â Âat
>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
>> Â Â Â Â... 19 more
>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
>> to download the artifact from any repository
>> Â Â Â Âat
>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
>> Â Â Â Âat
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
>> Â Â Â Â... 21 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Mon Jun 22 16:31:46 BST 2009
>> [INFO] Final Memory: 1M/4M
>> [INFO]
>> ------------------------------------------------------------------------
>> E:\Projects\jetty-toolchain>
>>
>> What went wrong there? For the record:
>>
>> E:\Projects\jetty-toolchain>mvn -version
>> Apache Maven 2.1.0 (r755702; 2009-03-18 19:10:27+0000)
>> Java version: 1.6.0_14
>> Java home: C:\Program Files\Java\jdk1.6.0_14\jre
>> Default locale: en_GB, platform encoding: Cp1252
>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>> E:\Projects\jetty-toolchain>
>>
>> The instructions for building jetty-8 are *very* similar, infact they
>> tell you to checkout jetty-7! :)
>>
>> Thanks,
>> David
>>
>>
>>
>> --
>>
>> _______________________________________________
>> jetty-dev mailing list
>> jetty-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>>
>