Hi all,

I would like to update some basic information:

maven version: 2.0.9
servicemix version: 3.3
OS: Windows XP Professional
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

BTW, I also checkout servicemix source from SVN, smx3\trunk and try to build
it by running:
mvn -Dmaven.test.skip=true -P=step1

but it fails.

Then, I see there is a hint:
If maven build dies with some checkstyle or pmd errors then do the
following:
mvn -Dmaven.test.skip=true -Pstep1,nochecks install

So, I run "mvn -Dmaven.test.skip=true -Pstep1,nochecks install", still fails
with the message:

[INFO] Writing new spring.schemas file
[INFO] [compiler:compile]
[INFO] Compiling 293 source files to
D:\personal\esb\smx3_source\core\servicemix
-core\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\personal\esb\smx3_source\core\servicemix-core\src\main\java\org\apache\servic
emix\jbi\container\JBIContainer.java:[62,37] cannot find symbol
symbol  : class ComponentUtil
location: package org.apache.servicemix.jbi.api

......

I....... :,( thank you for any help.....



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
>> 
> 
> 

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

Reply via email to