Uploaded image for project: 'James Mailbox'
  1. James Mailbox
  2. MAILBOX-52

Integration tester does not build with empty local maven repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2
    • 0.2
    • None
    • None
    • All

    Description

      It's logical it will fail when having an emtpy local maven repo.

      mailbox-integration-tester/pom.xml defines

      <parent>
      <artifactId>apache-james-mailbox</artifactId>
      <groupId>org.apache.james</groupId>
      <version>0.2-M2-SNAPSHOT</version>
      </parent>

      but not the (snapshot-) repository where this parent can be found. The snapshot repository for james stuff is defined in the james project pom.xml.

      Possible solutions may be:

      • Add the snapshot-repository to the mailbox-integration-tester/pom.xml
      • Change the parent to james project pom.xml and add james-mailbox as dependency instead of parent
      • Add the snapshot-repository to the local .m2/settings.xml into an active profile

      Regards
      Felix

      > es, I also had that issue on clean env.
      > If nobody confirms this should be working, please open a JIRA.
      > Tks,
      > - Eric
      >
      >
      > On 13/04/2011 16:16, AAMIR KHAN wrote:
      >> I tried cloning with svn checkout
      >> https://svn.apache.org/repos/asf/james/mailbox-integration-tester/ .
      >> And then changes directory to mailbox-integration-tester.
      >> tried mvn tests and it fails.
      >>
      >> Stacktrace :
      >>
      >> aamir@aamir-laptop:/media/Workspace/mailbox-integration-tester$ mvn test
      >> [INFO] Scanning for projects...
      >> [INFO]
      >> ------------------------------------------------------------------------
      >> [ERROR] FATAL ERROR
      >> [INFO]
      >> ------------------------------------------------------------------------
      >> [INFO] Error building POM (may not be this project's POM).
      >>
      >>
      >> Project ID:
      >> org.apache.james:apache-james-mailbox-integration-tester:jar:null
      >>
      >> Reason: Cannot find parent: org.apache.james:apache-james-mailbox for
      >> project:
      >> org.apache.james:apache-james-mailbox-integration-tester:jar:null
      >> for project
      >> org.apache.james:apache-james-mailbox-integration-tester:jar:null
      >>
      >>
      >> [INFO]
      >> ------------------------------------------------------------------------
      >> [INFO] Trace
      >> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
      >> org.apache.james:apache-james-mailbox for project:
      >> org.apache.james:apache-james-mailbox-integration-tester:jar:null for
      >> project org.apache.james:apache-james-mailbox-integration-tester:jar:null
      >> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
      >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
      >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      >> at
      >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      >> at
      >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      >>
      >> at
      >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      >>
      >> at java.lang.reflect.Method.invoke(Method.java:616)
      >> 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.apache.james:apache-james-mailbox for project:
      >> org.apache.james:apache-james-mailbox-integration-tester:jar:null for
      >> project org.apache.james:apache-james-mailbox-integration-tester:jar:null
      >> at
      >> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
      >>
      >> 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:604)
      >> at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
      >> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
      >> ... 12 more
      >> Caused by: org.apache.maven.project.ProjectBuildingException: POM
      >> 'org.apache.james:apache-james-mailbox' not found in repository:
      >> Unable to
      >> download the artifact from any repository
      >>
      >> org.apache.james:apache-james-mailbox:pom:0.2-M2-SNAPSHOT
      >>
      >> from the specified remote repositories:
      >> central (http://repo1.maven.org/maven2)
      >>
      >> for project org.apache.james:apache-james-mailbox
      >> at
      >> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
      >>
      >> at
      >> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
      >>
      >> ... 18 more
      >> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
      >> Unable to download the artifact from any repository
      >>
      >> org.apache.james:apache-james-mailbox:pom:0.2-M2-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:404)
      >>
      >> at
      >> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
      >>
      >> ... 21 more
      >> [INFO]
      >> ------------------------------------------------------------------------
      >> [INFO] Total time:< 1 second
      >> [INFO] Finished at: Wed Apr 13 19:31:07 IST 2011
      >> [INFO] Final Memory: 1M/45M
      >> [INFO]
      >> ------------------------------------------------------------------------
      >>
      >
      > ---------------------------------------------------------------------
      > To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
      > For additional commands, e-mail: server-dev-help@james.apache.org
      >

      ---------------------------------------------------------------------
      To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
      For additional commands, e-mail: server-dev-help@james.apache.org

      Attachments

        Activity

          People

            norman Norman Maurer
            felixk Felix Knecht
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: