2 Replies Latest reply on Jun 9, 2011 11:02 AM by Fred Curry

    Cannot Build Site Publisher from Source

    Fred Curry Newbie

      I am trying to compile Site Publisher (and ultimately the demo portal) from source, however, I cannot complete my build using Maven. When I do a mvn -D install from any of the directories, I get the below message. Maven cannot find http://repo1.maven.org/maven2/org/exoplatform/exo.parent/8/exo.parent-8.pom. Has anyone seen this problem? Anyone know of a solution? Thanks,

       

      Fred

       

       

      Frederick-Currys-MacBook-Pro:exo-ecms-2.1.2 fcurry$ mvn -X install

      + Error stacktraces are turned on.

      Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)

      Java version: 1.6.0_24

      Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

      Default locale: en_US, platform encoding: MacRoman

      OS name: "mac os x" version: "10.6.7" arch: "x86_64" Family: "mac"

      [DEBUG] Building Maven user-level plugin registry from: '/Users/fcurry/.m2/plugin-registry.xml'

      [DEBUG] Building Maven global-level plugin registry from: '/Users/fcurry/apache-maven-2.2.1/conf/plugin-registry.xml'

      [INFO] Scanning for projects...

      [DEBUG] Searching for parent-POM: org.exoplatform:exo.parent:pom:8 of project: org.exoplatform.ecms:exo-ecms:pom:2.1.2 in relative path: ../pom.xml

      [DEBUG] Parent-POM: org.exoplatform:exo.parent:pom:8 not found in relative path: ../pom.xml

      [DEBUG] Retrieving parent-POM: org.exoplatform:exo.parent:pom:8 for project: org.exoplatform.ecms:exo-ecms:pom:2.1.2 from the repository.

      [DEBUG] Trying repository central

      [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http

      [DEBUG] Checking for pre-existing User-Agent configuration.

      [DEBUG] Adding User-Agent configuration.

      [DEBUG] Connecting to repository: 'central' with url: 'http://repo1.maven.org/maven2'.

      Downloading: http://repo1.maven.org/maven2/org/exoplatform/exo.parent/8/exo.parent-8.pom

      [DEBUG] Unable to locate resource in repository

      org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository

                at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:139)

                at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)

                at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)

                at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)

                at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)

                at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)

                at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)

                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

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

                at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

                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)

                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: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: java.io.FileNotFoundException: http://repo1.maven.org/maven2/org/exoplatform/exo.parent/8/exo.parent-8.pom

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

                at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)

                at java.security.AccessController.doPrivileged(Native Method)

                at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)

                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)

                at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:122)

                ... 28 more

      Caused by: java.io.FileNotFoundException: http://repo1.maven.org/maven2/org/exoplatform/exo.parent/8/exo.parent-8.pom

                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)

                at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)

                at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)

                ... 28 more

      [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http

      [INFO] Unable to find resource 'org.exoplatform:exo.parent:pom:8' in repository central (http://repo1.maven.org/maven2)

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

      [ERROR] FATAL ERROR

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

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

       

       

       

       

      Project ID: org.exoplatform.ecms:exo-ecms:pom:2.1.2

       

       

      Reason: Cannot find parent: org.exoplatform:exo.parent for project: org.exoplatform.ecms:exo-ecms:pom:2.1.2 for project org.exoplatform.ecms:exo-ecms:pom:2.1.2

       

       

       

       

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

      [DEBUG] Trace

      org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.exoplatform:exo.parent for project: org.exoplatform.ecms:exo-ecms:pom:2.1.2 for project org.exoplatform.ecms:exo-ecms:pom:2.1.2

                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: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.exoplatform:exo.parent for project: org.exoplatform.ecms:exo-ecms:pom:2.1.2 for project org.exoplatform.ecms:exo-ecms:pom:2.1.2

                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.exoplatform:exo.parent' not found in repository: Unable to download the artifact from any repository

       

       

        org.exoplatform:exo.parent:pom:8

       

       

      from the specified remote repositories:

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

       

       

      for project org.exoplatform:exo.parent

                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.exoplatform:exo.parent:pom:8

       

       

      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: Tue Jun 07 22:51:37 EDT 2011

      [INFO] Final Memory: 2M/81M

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