You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dead_devil_66 <de...@hotmail.com> on 2011/03/29 04:36:56 UTC

camel-example-cxf pom.xml

Greetings.

I'm getting an error after importing the example project camel-example-cxf.
The error is in the pom.xml. This is what i get:

Project build error: Non-resolvable parent POM: Could not find artifact
org.apache.camel:examples:pom:
 2.8-SNAPSHOT and 'parent.relativePath' points at wrong local POM

i download the project from apache repository.

What is the problem?

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4268673.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: unique ExecuterService for each CamelContext

Posted by Claus Ibsen <cl...@gmail.com>.
If you provide a custom executor service using executorServiceRef
thats a reference to X.
And Camel just uses X as given by the container (usually Spring bean container).

So if you configure Spring to use prototype scope then Spring will
create a new X. If not it will create a shared X.

In Camel you can use ThreadPoolProfiles to setup thread pool settings,
which will be used as a "template" to create thread pools when needed.
So that allows you to easily setup pool boundaries and have each
splitter create their own thread pool instance based on the profile.

Read the documentation
http://camel.apache.org/threading-model.html



On Thu, Mar 31, 2011 at 9:37 AM, Stefan Below <st...@gmx.de> wrote:
> Hello,
>
> i've found a workaround.
> It looks like that the instance of  the ExecutorService and Splitter are
> stored in the model (RouteDefinition).
> So everything works fine if i create a new instance of the RouteDefinition.
> But i think it should be fixed for consistency (Aggregator and
> AggregatorRepository are not stored in the model)
>>
>> Hi,
>> I am running multiple Camel instances in the same JVM. Each Camel instance
>> should have an unique, custom Executerservice. I set  the Executerservice to
>> the CamelContext registry.
>> But when i start the same route in two different contexts, the
>> executerservice gets shared.... (Same issue with a custom splitter)
>>
>> How can i avoid this?
>>
>> Thanks,
>> Stefan
>>
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: unique ExecuterService for each CamelContext

Posted by Stefan Below <st...@gmx.de>.
Hello,

i've found a workaround.
It looks like that the instance of  the ExecutorService and Splitter are 
stored in the model (RouteDefinition).
So everything works fine if i create a new instance of the 
RouteDefinition. But i think it should be fixed for consistency 
(Aggregator and AggregatorRepository are not stored in the model)
> Hi,
> I am running multiple Camel instances in the same JVM. Each Camel 
> instance should have an unique, custom Executerservice. I set  the 
> Executerservice to the CamelContext registry.
> But when i start the same route in two different contexts, the 
> executerservice gets shared.... (Same issue with a custom splitter)
>
> How can i avoid this?
>
> Thanks,
> Stefan
>


unique ExecuterService for each CamelContext

Posted by Stefan Below <st...@gmx.de>.
Hi,
I am running multiple Camel instances in the same JVM. Each Camel 
instance should have an unique, custom Executerservice. I set  the 
Executerservice to the CamelContext registry.
But when i start the same route in two different contexts, the 
executerservice gets shared.... (Same issue with a custom splitter)

How can i avoid this?

Thanks,
Stefan

Re: camel-example-cxf pom.xml

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Mar 30, 2011 at 6:11 PM, dead_devil_66 <de...@hotmail.com> wrote:
> Hi Claus.
>
> Yes, i have done that.
>
> I ran mvn install -Pfastinstall and mvn clean install in the root of
> camel-example-cxf.
>

Ah its in root of camel source,

camel-source
  + examples
      + camel-example-cxf

eg in the ROOT which would be camel-source or whats the directory name
you gave it when checking out the source code.

You can also try updating the source code with the latest changes. I
think willem fixed the relative path issue of the examples so you can
build them without going to the ROOT folder.




> For both commands, i get the same error.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271768.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: camel-example-cxf pom.xml

Posted by dead_devil_66 <de...@hotmail.com>.
Hi Claus.

Yes, i have done that.

I ran mvn install -Pfastinstall and mvn clean install in the root of
camel-example-cxf.

For both commands, i get the same error.

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271768.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by Claus Ibsen <cl...@gmail.com>.
You have to execute the cmd from the ROOT of the source code.


On Wed, Mar 30, 2011 at 4:26 PM, dead_devil_66 <de...@hotmail.com> wrote:
> Hi Claus.
>
> I tried to build but, unfortunetly, i got a new error...
>
> This is how i did it:
>
> a) Through eclipse, i used the maven plugin. This is the error i got:
>
> http://pastie.org/1735237
>
> b) Through command prompt, in the project directory. This is the output i
> got:
>
> http://pastie.org/1735242
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271585.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: camel-example-cxf pom.xml

Posted by dead_devil_66 <de...@hotmail.com>.
Hi Claus.

I tried to build but, unfortunetly, i got a new error...

This is how i did it:

a) Through eclipse, i used the maven plugin. This is the error i got:

http://pastie.org/1735237

b) Through command prompt, in the project directory. This is the output i
got:

http://pastie.org/1735242

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271585.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by Claus Ibsen <cl...@gmail.com>.
Follow the guide here
http://camel.apache.org/building

eg do a build from the ROOT of the Camel source code to get all
artifacts build and whatnot.
For example as the quick build say.

The source code can be checked out from SVN as explained here
http://camel.apache.org/source.html



On Wed, Mar 30, 2011 at 4:18 PM, dead_devil_66 <de...@hotmail.com> wrote:
> Hi Claus.
>
> I tried to build but, unfortunetly, i got a new error...
>
> This is how i did it:
>
> a) Through eclipse, i used the maven plugin. This is the error i got:
>
>
> [INFO] Scanning for projects...
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.apache.camel:camel-example-cxf:2.8-SNAPSHOT
> (/home/echo66/camel_workspace/camel-example-cxf/pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.apache.camel:examples:pom:2.8-SNAPSHOT and 'parent.relativePath' points
> at wrong local POM @ line 23, column 10 -> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
> b) Through command prompt, in the project directory. This is the output i
> got:
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:camel-example-cxf:bundle:null
>
> Reason: Cannot find parent: org.apache.camel:examples for project:
> null:camel-example-cxf:bundle:null for project
> null:camel-example-cxf:bundle:null
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.apache.camel:examples for project: null:camel-example-cxf:bundle:null
> for project null:camel-example-cxf:bundle: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.camel:examples for project:
> null:camel-example-cxf:bundle:null for project
> null:camel-example-cxf:bundle: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.camel:examples' not found in repository: Unable to download the
> artifact from any repository
>
>  org.apache.camel:examples:pom:2.8-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>  for project org.apache.camel:examples
>        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.camel:examples:pom:2.8-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 Mar 30 14:20:49 WEST 2011
> [INFO] Final Memory: 1M/30M
> [INFO]
> ------------------------------------------------------------------------
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271569.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: camel-example-cxf pom.xml

Posted by dead_devil_66 <de...@hotmail.com>.
i tried to to build another camel example of the trunk and it has the same
problem (camel-example-osgi)

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4279503.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by "Willem.Jiang" <wi...@gmail.com>.
I just cleaned up the file which name has 2.8-SNAPSHOT in my ~/.m2/  and
start to run 'mvn clean install'  from examples/camel-example-cxf and can't
get the error that you reported again.

Willem

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4285499.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by dead_devil_66 <de...@hotmail.com>.
Greetings.

I still have the same issue....

i have downloaded it and i tried to build the project. Same error as
before...

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4279492.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

Can you try the latest code in the camel trunk, I did some change on the 
relative path of the camel examples pom recently.
Can you verify the change with your eclipse maven plugin :)

Willem
On 3/30/11 10:18 PM, dead_devil_66 wrote:
> Hi Claus.
>
> I tried to build but, unfortunetly, i got a new error...
>
> This is how i did it:
>
> a) Through eclipse, i used the maven plugin. This is the error i got:
>
>
> [INFO] Scanning for projects...
> [ERROR] The build could not read 1 project ->  [Help 1]
> [ERROR]
> [ERROR]   The project org.apache.camel:camel-example-cxf:2.8-SNAPSHOT
> (/home/echo66/camel_workspace/camel-example-cxf/pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.apache.camel:examples:pom:2.8-SNAPSHOT and 'parent.relativePath' points
> at wrong local POM @ line 23, column 10 ->  [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
> b) Through command prompt, in the project directory. This is the output i
> got:
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:camel-example-cxf:bundle:null
>
> Reason: Cannot find parent: org.apache.camel:examples for project:
> null:camel-example-cxf:bundle:null for project
> null:camel-example-cxf:bundle:null
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.apache.camel:examples for project: null:camel-example-cxf:bundle:null
> for project null:camel-example-cxf:bundle: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.camel:examples for project:
> null:camel-example-cxf:bundle:null for project
> null:camel-example-cxf:bundle: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.camel:examples' not found in repository: Unable to download the
> artifact from any repository
>
>    org.apache.camel:examples:pom:2.8-SNAPSHOT
>
> from the specified remote repositories:
>    central (http://repo1.maven.org/maven2)
>
>   for project org.apache.camel:examples
> 	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.camel:examples:pom:2.8-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 Mar 30 14:20:49 WEST 2011
> [INFO] Final Memory: 1M/30M
> [INFO]
> ------------------------------------------------------------------------
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271569.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Re: camel-example-cxf pom.xml

Posted by dead_devil_66 <de...@hotmail.com>.
Hi Claus.

I tried to build but, unfortunetly, i got a new error...

This is how i did it:

a) Through eclipse, i used the maven plugin. This is the error i got:


[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.camel:camel-example-cxf:2.8-SNAPSHOT
(/home/echo66/camel_workspace/camel-example-cxf/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact
org.apache.camel:examples:pom:2.8-SNAPSHOT and 'parent.relativePath' points
at wrong local POM @ line 23, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

b) Through command prompt, in the project directory. This is the output i
got:

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: null:camel-example-cxf:bundle:null

Reason: Cannot find parent: org.apache.camel:examples for project:
null:camel-example-cxf:bundle:null for project
null:camel-example-cxf:bundle:null


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache.camel:examples for project: null:camel-example-cxf:bundle:null
for project null:camel-example-cxf:bundle: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.camel:examples for project:
null:camel-example-cxf:bundle:null for project
null:camel-example-cxf:bundle: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.camel:examples' not found in repository: Unable to download the
artifact from any repository

  org.apache.camel:examples:pom:2.8-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.camel:examples
	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.camel:examples:pom:2.8-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 Mar 30 14:20:49 WEST 2011
[INFO] Final Memory: 1M/30M
[INFO]
------------------------------------------------------------------------

--
View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4271569.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-example-cxf pom.xml

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Mar 29, 2011 at 4:36 AM, dead_devil_66 <de...@hotmail.com> wrote:
> Greetings.
>
> I'm getting an error after importing the example project camel-example-cxf.
> The error is in the pom.xml. This is what i get:
>
> Project build error: Non-resolvable parent POM: Could not find artifact
> org.apache.camel:examples:pom:
>  2.8-SNAPSHOT and 'parent.relativePath' points at wrong local POM
>
> i download the project from apache repository.
>
> What is the problem?

The examples dont have the relativePath set in the pom.xml so you need
to build the source code first
http://camel.apache.org/building


>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp4268673p4268673.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/