Announcement Announcement Module
Collapse
No announcement yet.
Build error spring-WS samples Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Build error spring-WS samples

    Hi,

    I am new to Spring-WS and Maven. I have deployed spring-ws-1.5.2 and Maven2.0.9 on my machine. I went to samples\mtom directory and tried to build the sample mtom. However I get the following error


    [INFO] Scanning for projects...
    Downloading: [uurl]http:/s3.amazonaws.com/maven.springframework.org/milestone/org/springframework/ws/spring-ws-parent/1.5.2/spring-ws-parent-1.5.2.pom[/uurl]
    Downloading: [uurl]http:/repo1.maven.org/maven2/org/springframework/ws/spring-ws-parent/1.5.2/spring-ws-parent-1.5.2.pom[/uurl]
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    GroupId: org.springframework.ws
    ArtifactId: spring-ws-parent
    Version: 1.5.2

    Reason: Unable to download the artifact from any repository

    org.springframework.ws:spring-ws-parentom:1.5.2

    from the specified remote repositories:
    central ([uurl]http:/repo1.maven.org/maven2[/uurl]),
    spring-milestone ([uurl]http:/s3.amazonaws.com/maven.springframework.org/milestone[/uurl])


    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.springframework.ws:spring-ws-parent for project: null:spring-ws-samplesom:null for project null:spring-ws-samplesom:null
    at org.apache.maven.DefaultMaven.getProjects(DefaultM aven.java:378)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:292)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:2 87)
    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:585)
    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.ja va:375)
    Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.springframework.ws:spring-ws-parent for project: null:spring-ws-samplesom:null for project null:spring-ws-samplesom:null
    at org.apache.maven.project.DefaultMavenProjectBuilde r.assembleLineage(DefaultMavenProjectBuilder.java: 1370)
    at org.apache.maven.project.DefaultMavenProjectBuilde r.buildInternal(DefaultMavenProjectBuilder.java:82 1)
    at org.apache.maven.project.DefaultMavenProjectBuilde r.buildFromSourceFileInternal(DefaultMavenProjectB uilder.java:506)
    at org.apache.maven.project.DefaultMavenProjectBuilde r.build(DefaultMavenProjectBuilder.java:198)
    at org.apache.maven.DefaultMaven.getProject(DefaultMa ven.java:583)
    at org.apache.maven.DefaultMaven.collectProjects(Defa ultMaven.java:461)
    at org.apache.maven.DefaultMaven.getProjects(DefaultM aven.java:365)
    ... 11 more
    Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.springframework.ws:spring-ws-parent' not found in repository: Unable to download the artifact from any repository

    org.springframework.ws:spring-ws-parentom:1.5.2

    from the specified remote repositories:
    central ([uurl]http:/repo1.maven.org/maven2[/uurl]),
    spring-milestone ([uurl]http:/s3.amazonaws.com/maven.springframework.org/milestone[/uurl])
    for project org.springframework.ws:spring-ws-parent
    at org.apache.maven.project.DefaultMavenProjectBuilde r.findModelFromRepository(DefaultMavenProjectBuild er.java:603)
    at org.apache.maven.project.DefaultMavenProjectBuilde r.assembleLineage(DefaultMavenProjectBuilder.java: 1366)
    ... 17 more
    Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoun dException: Unable to download the artifact from any repository

    org.springframework.ws:spring-ws-parentom:1.5.2

    from the specified remote repositories:
    central ([uurl]http:/repo1.maven.org/maven2[/uurl]),
    spring-milestone ([uurl]http:/s3.amazonaws.com/maven.springframework.org/milestone[/uurl])

    at org.apache.maven.artifact.resolver.DefaultArtifact Resolver.resolve(DefaultArtifactResolver.java:212)
    at org.apache.maven.artifact.resolver.DefaultArtifact Resolver.resolve(DefaultArtifactResolver.java:74)
    at org.apache.maven.project.DefaultMavenProjectBuilde r.findModelFromRepository(DefaultMavenProjectBuild er.java:556)
    ... 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:331)
    at org.apache.maven.artifact.resolver.DefaultArtifact Resolver.resolve(DefaultArtifactResolver.java:200)
    ... 20 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6 seconds
    [INFO] Finished at: Mon Jun 09 18:42:44 GMT+05:30 2008
    [INFO] Final Memory: 1M/2M
    [INFO] ------------------------------------------------------------------------




    I do not have anything in my local repository(user_dir\.m2) and it is empty.


    Could somebody help me out please?

  • #2
    Do you use a proxy to access the internet? If so, you need to give those proxy settings to maven.

    Comment

    Working...
    X