camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: "Unable to download the artifact from any repository" running "camel-example-loan-broker"
Date Thu, 28 Aug 2008 10:07:20 GMT
This looks like its a maven issue that you're behind a HTTP proxy so
can't download artefacts from maven.

This should help...
http://maven.apache.org/guides/mini/guide-proxies.html

2008/8/28 Sandro Tosi <sandro.tosi@gmail.com>:
>
> Hello,
> I'm really new to activemq and camel, so I'm trying to follow examples as
> much as possible, but I'm stuck on "camel-example-loan-broker" example.
>
> I've installed activemq 5.1.0 and started it up:
>
> # ps -af | grep activemq
> root     27436 18654  0 11:57 pts/1    00:00:00 grep activemq
>
> Then I downloaded camel 1.4 to have examples/ directory and try to play with
> them a bit.
>
> Untarred into /usr/local (and doing the same for maven 2.0.9) and then set
> some variables like:
>
> export JAVA_HOME=/opt/geps/jdk1.5.0_14/
> export ACTIVEMQ_HOME=/usr/local/apache-activemq-5.1.0/
> export http_proxy=http://<host>:<port>
> export M2_HOME=/usr/local/apache-maven-2.0.9/
> export M2=$M2_HOME/bin
> export PATH=$M2:$PATH
>
> I went into examples/camel-example-loan-broker dir and executed (as reported
> in the README.txt file):
>
> # mvn -X compile
> + Error stacktraces are turned on.
> Maven version: 2.0.9
> Java version: 1.5.0_14
> OS name: "linux" version: "2.6.9-34.elhugemem" arch: "i386" Family: "unix"
> [DEBUG] Building Maven user-level plugin registry from:
> '/root/.m2/plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> '/usr/local/apache-maven-2.0.9/conf/plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Searching for parent-POM: org.apache.camel:examples::1.4.0 of
> project: null:camel-example-loan-broker:jar:null in relative path:
> ../pom.xml
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
> project: null:camel-example-loan-broker:jar:null
> [DEBUG] Searching for parent-POM: org.apache.camel:camel-parent::1.4.0 of
> project: null:examples:pom:null in relative path: ../pom.xml
> [DEBUG] Parent-POM: org.apache.camel:camel-parent::1.4.0 not found in
> relative path: ../pom.xml
> [DEBUG] Retrieving parent-POM: org.apache.camel:camel-parent::1.4.0 for
> project: null:examples:pom:null from the repository.
> [DEBUG] Trying repository apache.m2.repo
> Downloading:
> http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-parent/1.4.0/camel-parent-1.4.0.pom
> [DEBUG] Unable to get resource 'org.apache.camel:camel-parent:pom:1.4.0'
> from repository apache.m2.repo
> (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
> [DEBUG] Trying repository central
> Downloading:
> http://repo1.maven.org/maven2/org/apache/camel/camel-parent/1.4.0/camel-parent-1.4.0.pom
> [DEBUG] Unable to get resource 'org.apache.camel:camel-parent:pom:1.4.0'
> from repository central (http://repo1.maven.org/maven2)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.camel
> ArtifactId: camel-parent
> Version: 1.4.0
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.camel:camel-parent:pom:1.4.0
>
> from the specified remote repositories:
>  apache.m2.repo
> (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
>  central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.apache.camel:camel-parent for project: null:examples:pom:null for
> project null:examples:pom: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:585)
>        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.camel:camel-parent for project: null:examples:pom:null
> for project null:examples:pom:null
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1387)
>        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.apache.camel:camel-parent' not found in repository: Unable to download
> the artifact from any repository
>
>  org.apache.camel:camel-parent:pom:1.4.0
>
> from the specified remote repositories:
>  apache.m2.repo
> (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
>  central (http://repo1.maven.org/maven2)
>  for project org.apache.camel:camel-parent
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
>        ... 18 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable to download the artifact from any repository
>
>  org.apache.camel:camel-parent:pom:1.4.0
>
> from the specified remote repositories:
>  apache.m2.repo
> (http://people.apache.org/repo/m2-ibiblio-rsync-repository),
>  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)
>        ... 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:331)
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
>        ... 21 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Aug 28 12:01:47 CEST 2008
> [INFO] Final Memory: 1M/59M
> [INFO]
> ------------------------------------------------------------------------
>
> Is this because I'm behind a proxy? what could be the problem here?
>
> Thanks a lot in advance for your help,
> Sandro
> --
> View this message in context: http://www.nabble.com/%22Unable-to-download-the-artifact-from-any-repository%22-running-%22camel-example-loan-broker%22-tp19197607s22882p19197607.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message