2 Replies Latest reply on May 28, 2012 7:15 PM by Antoine Herzog

    Maven 2 build error (GateIn 3.2.0-M01)

    skowroniasty Newbie

      Hi,

      I trying   build project for  eclipse,  i have some  trouble with maven2,

      Does anyone know how to fix it?

      I use  Debian 6 x64 , GateIn 3.2.0-M01 from svn,

       

      rafal@amd-x6:/media/22D0821AD081F477/gatein/3.2.0-M01$ mvn -version

      Apache Maven 2.2.1 (rdebian-4)

      Java version: 1.6.0_18

      Java home: /usr/lib/jvm/java-6-openjdk/jre

      Default locale: pl_PL, platform encoding: UTF-8

      OS name: "linux" version: "2.6.32-5-amd64" arch: "amd64" Family: "unix"

       

      when  I use:

      maven -e clean install

      I get these error:

       

      TIA:

      [INFO] ------------------------------------------------------------------------

      [INFO] Building GateIn Portal Component PC integration

      [INFO]    task-segment: [clean, install]

      [INFO] ------------------------------------------------------------------------

      [INFO] [clean:clean {execution: default-clean}]

      Downloading: http://repo1.maven.org/maven2/org/gatein/gatein-dep/1.1.0-Beta02/gatein-dep-1.1.0-Beta02.pom

      [INFO] Unable to find resource 'org.gatein:gatein-dep:pom:1.1.0-Beta02' in repository central (http://repo1.maven.org/maven2)

      [INFO] ------------------------------------------------------------------------

      [ERROR] BUILD ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Error building POM (may not be this project's POM).

       

       

      Project ID: org.gatein:gatein-dep

       

      Reason: POM 'org.gatein:gatein-dep' not found in repository: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2)

       

      for project org.gatein:gatein-dep

       

       

      [INFO] ------------------------------------------------------------------------

      [INFO] Trace

      org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.gatein.pc:pc-api:jar': POM 'org.gatein:gatein-dep' not found in repository: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2)

       

      for project org.gatein:gatein-dep

        org.gatein.pc:pc-api:jar:2.3.0-Beta04

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)

       

      Path to dependency:

      1) org.exoplatform.portal:exo.portal.component.pc:jar:3.2.0-M01

       

       

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

      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.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.gatein.pc:pc-api:jar': POM 'org.gatein:gatein-dep' not found in repository: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2)

       

      for project org.gatein:gatein-dep

        org.gatein.pc:pc-api:jar:2.3.0-Beta04

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)

       

      Path to dependency:

      1) org.exoplatform.portal:exo.portal.component.pc:jar:3.2.0-M01

       

       

      at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:430)

      at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:74)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:316)

      at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)

      at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)

      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)

      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

      ... 17 more

      Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact 'org.gatein.pc:pc-api:jar': POM 'org.gatein:gatein-dep' not found in repository: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2)

       

      for project org.gatein:gatein-dep

      at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:200)

      at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedArtifact(MavenMetadataSource.java:94)

      at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:387)

      ... 23 more

      Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.gatein:gatein-dep' not found in repository: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2)

       

      for project org.gatein:gatein-dep

      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)

      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)

      at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:1456)

      at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:999)

      at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)

      at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:255)

      at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:163)

      ... 25 more

      Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

       

        org.gatein:gatein-dep:pom:1.1.0-Beta02

       

      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)

      ... 31 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)

      ... 33 more

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 1 minute 57 seconds

      [INFO] Finished at: Fri Aug 26 03:30:04 CEST 2011

      [INFO] Final Memory: 106M/728M

      [INFO] ------------------------------------------------------------------------