Re: Building Hudson

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Building Hudson

Kohsuke Kawaguchi-2
Stephen Malherbe wrote:
> Kohsuke,
>
> The previous time I checked out the Hudson source (version 1.62), it
> compiled without a problem. Today I checked out the latest version
> (1.66-SNAPSHOT) and when I tried to build it I got this error:

You have to build the whole project at least once. So do:

$ cd main
$ mvn
    ... build core, war, etc.

 From that point on, you can just build individual modules. I think you
checked out the module, then immediately tried to build one of the
sub-modules.


> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.jvnet.hudson.main
> ArtifactId: pom
> Version: 1.66-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>   org.jvnet.hudson.main:pom:pom:1.66-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: POM
> 'org.jvnet.hudson.main:pom' not found in repository: Unable to download
> the artifact from any repository
>
>   org.jvnet.hudson.main:pom:pom:1.66-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         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:585)
>         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: POM
> 'org.jvnet.hudson.main:pom' not found in repository: Unable to download
> the artifact from any repository
>
>   org.jvnet.hudson.main:pom:pom:1.66-SNAPSHOT
>
> Any ideas?
>
> Thanks,
>
> Stephen
>
> Kohsuke Kawaguchi wrote:
>> Stephen Malherbe wrote:
>>> Thanks for the rapid response.
>>
>> No, thank you for the patch.
>>
>> I take it that you managed to build Hudson with Maven. How was your
>> experience? Did it work smoothly?
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment