Hi Gert,

Thanks for your kindly feedback. :-)

Is it possible the version issue? Or should I try ServiceMix 3.2.2 ?

PS. I also try to download the source from SVN and use maven 2.0.8 to make a
build,
but it fails.

I try it but it still fails, get the same message as before:

[INFO] snapshot
org.apache.servicemix.tutorial.camel:tutorial-camel-su:1.0-SNAPS
HOT: checking for updates from apache.snapshots
[INFO] [jbi:generate-jbi-service-assembly-descriptor]
[INFO] Generating jbi.xml
[INFO] Determining component name for service unit tutorial-camel-su
[INFO] Project MavenProject: org.apache.servicemix:servicemix-camel:3.2.2 @ 
pac
kaged jbi-component
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Unable to reparse the pom.xml
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 50 seconds
[INFO] Finished at: Tue Dec 30 15:56:34 CST 2008
[INFO] Final Memory: 23M/42M
[INFO]
------------------------------------------------------------------------



Gert Vanthienen wrote:
> 
> L.S.,
> 
> Could you try removing the org/apache/servicemix/tooling directory from 
> your local Maven repo (which is typically at ~/.m2/repository)? This 
> will download everything again with the next build -- replacing any 
> artifacts that might have been corrupted.
> 
> Regards,
> 
> Gert
> 
> tee05 wrote:
>> Hi,
>>
>> I follow the hint from Gert to run "mvn -X install" and get more detial
>> message.
>>
>> But it looks like some "lifecycle" issue and I don't know how to fix
>> it....
>> :confused:
>>
>> Can someone give me a hint?
>>
>> The message is as below:
>>
>> (This is tutorial 7)
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building A custom project
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [DEBUG] Error looking up lifecycle mapping to retrieve optional mojos.
>> Lifecycle
>>  ID: default. Error: Component descriptor cannot be found in the
>> component
>> repos
>> itory:
>> org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly.
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> Com
>> ponent descriptor cannot be found in the component repository:
>> org.apache.maven.
>> lifecycle.mapping.LifecycleMappingjbi-service-assembly.
>>         at
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
>> ner.java:323)
>>         at
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
>> ner.java:440)
>>         at
>> org.apache.maven.execution.MavenSession.lookup(MavenSession.java:125)
>>
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findOptionalMojos
>>
>> ........
>>
>> [DEBUG]
>> org.apache.servicemix.examples:http-upload-sa:jbi-service-assembly:1.0-S
>> NAPSHOT (selected for null)
>> [DEBUG]  
>> org.apache.servicemix.examples:http-consumer-su:jar:1.0-SNAPSHOT:compi
>> le (selected for compile)
>>
>> ........
>>
>> [INFO] Project MavenProject: org.apache.servicemix:servicemix-bean:3.2.2
>> @ 
>> pack
>> aged jbi-component
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Unable to reparse the pom.xml
>> [INFO]
>> ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to reparse
>> the po
>> m.xml
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:583)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:499)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:478)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:330)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:291)
>>
>>
>> Best Regards,
>> Tee
>>
>>
>>
>> Gert Vanthienen wrote:
>>   
>>> L.S.,
>>>
>>> Could you try running this with mvn -X install?  This will give you a
>>> lot of output but hopefully this will also contain a hint to the
>>> underlying exception/problem.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> teebev wrote:
>>>     
>>>> Hi all,
>>>>
>>>> I got the error when doing my own practice, the message is as below:
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Building Tutorial :: SA
>>>> [INFO]    task-segment: [install]
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] snapshot
>>>> org.apache.servicemix.tutorial:tutorial-file-su:1.0-SNAPSHOT: ch
>>>> ecking for updates from apache.snapshots
>>>> [INFO] [jbi:generate-jbi-service-assembly-descriptor]
>>>> [INFO] Generating jbi.xml
>>>> [INFO] Determining component name for service unit tutorial-file-su
>>>> [INFO] Project MavenProject:
>>>> org.apache.servicemix:servicemix-file:3.2.2
>>>> @ 
>>>> pack
>>>> aged jbi-component
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Unable to reparse the pom.xml
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] For more information, run Maven with the -e switch
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 24 seconds
>>>> [INFO] Finished at: Thu Dec 25 09:25:23 CST 2008
>>>> [INFO] Final Memory: 20M/37M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> I use:
>>>> maven 2.0.9
>>>> servicemix 3.3
>>>>
>>>> It happened when doing tutorial 2.4 Beginner - Creating the service
>>>> assembly, the last step "mvn install" 
>>>>
>>>> I try to google it but get nothing. Please help........ Thanks a lot.
>>>>
>>>>
>>>>   
>>>>       
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://gertvanthienen.blogspot.com
>>>
>>>     
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: 
http://www.nabble.com/Having-problems-in-the-tutorial-2.4-Beginner---Creating-the-service-assembly-tp21156983p21214147.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to