Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-5346

Build failure with maven : can't find the parent module org.springframework.parent

    Details

    • Last commented by a User:
      true

      Description

      Can't find the parent module org.springframework.parent when build each module with maven2.

      The scenario is described as below:

      I check out the trunk of spring-framework 3.0 and walking all the pom.xml of each module,but I can't find the org.springframework.org.springframework.parent-3.0-M1-SNAPSHOT module which is defined in the pom.xml.
      e.g. Describes in the pom.xml of the org.springframework.core module is

      <?xml version="1.0"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <parent>
      <groupId>org.springframework</groupId>
      <artifactId>org.springframework.parent</artifactId>
      <version>3.0-M1-SNAPSHOT</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <artifactId>org.springframework.core</artifactId>
      <packaging>jar</packaging>
      <name>Spring Framework: Core</name>
      ......

      Then I build the core module from the command line with maven and I got the failure information:

      [INFO] Scanning for projects...
      Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/org.springframework.parent/3.0-M1-SNAPSHOT/org.springframework.parent-3.0-M1-SNAPSHOT.pom
      Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/springframework/org.springframework.parent/3.0-M1-SNAPSHOT/org.springframework.parent-3.0-M1-SNAPSHOT.pom
      Downloading: http://snapshots.repository.codehaus.org/org/springframework/org.springframework.parent/3.0-M1-SNAPSHOT/org.springframework.parent-3.0-M1-SNAPSHOT.pom
      Downloading: http://snapshots.jboss.org/maven2/org/springframework/org.springframework.parent/3.0-M1-SNAPSHOT/org.springframework.parent-3.0-M1-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).

      Project ID: null:org.springframework.core:jar:null

      Reason: Cannot find parent: org.springframework:org.springframework.parent for project: null:org.springframework.core:jar:null for project null:org.springframework.core:jar:null

      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.springframework:org.springframework.parent for project: null:org.springframework.core:jar:null for project null:org.springframework.core:jar:null
      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
      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.springframework:org.springframework.parent for project: null:org.springframework.core:jar:null for project null:org.springframework.core:jar:null
      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
      at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
      at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
      at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
      ... 11 more
      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.springframework:org.springframework.parent' not found in repository: Unable to download the artifact from any repository

      org.springframework:org.springframework.parent:pom:3.0-M1-SNAPSHOT

      from the specified remote repositories:
      jboss.org (http://repository.jboss.org/maven2),
      codehaus.snapshots (http://snapshots.repository.codehaus.org),
      jboss-snapshot (http://snapshots.jboss.org/maven2),
      apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
      jboss.com (http://repository.jboss.com/maven2),
      maven2.mirrors.ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2),
      maven.central (http://repo1.maven.org/maven2),
      codehaus.central (http://repository.codehaus.org),
      central (http://repo1.maven.org/maven2)
      for project org.springframework:org.springframework.parent
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
      at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
      ... 17 more
      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

      org.springframework:org.springframework.parent:pom:3.0-M1-SNAPSHOT

      from the specified remote repositories:
      jboss.org (http://repository.jboss.org/maven2),
      codehaus.snapshots (http://snapshots.repository.codehaus.org),
      jboss-snapshot (http://snapshots.jboss.org/maven2),
      apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
      jboss.com (http://repository.jboss.com/maven2),
      maven2.mirrors.ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2),
      maven.central (http://repo1.maven.org/maven2),
      codehaus.central (http://repository.codehaus.org),
      central (http://repo1.maven.org/maven2)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
      ... 18 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:331)
      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
      ... 20 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6 seconds
      [INFO] Finished at: Sun Dec 07 19:51:36 CST 2008
      [INFO] Final Memory: 1M/254M
      [INFO] ------------------------------------------------------------------------

      Obviously,this is because miss the parent module 'org.springframework.parent-3.0-M1-SNAPSHOT'. The parent module should be included in the source in the svn so that anyone can build successful from sources with maven.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hyysguyang Yang Gu
              Last updater:
              Brian Clozel
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 14 weeks ago