Hi Freeman,

You are right. This is a windows issue. However, the good news is that it
compiles fine on Windiws if I turn tests off.
It is not preventing me from doing anything useful at this time. I guess we
can close this issue at this point.

Thanks for your help and sorry for any inconvenience.

Cheers,

Ashwin...


Freeman Fang wrote:
> 
> Hi Ashwin,
> 
> Looks like a windows specific issue, I'm using maven 2.0.9 on linux but 
> can't reproduce it.
> 
> Freeman
> 
> Ashwin Karpe wrote:
>> Hi Freeman,
>>
>> Please see pasted entry below. It is simple to re-create. All you need to
>> do
>> is to run mvn clean install in the catalog directory...
>>
>> Cheers,
>>
>> Ashwin...
>>
>> ======================== Output
>> ==========================================
>> chetype-catalog>mvn clean install
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Archetypes :: Catalog
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean]
>> [INFO] Deleting directory
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\arch
>> etypes\trunk\servicemix-archetype-catalog\target
>> [INFO] [servicemix-build:copy {execution: default}]
>> [INFO] [antrun:run {execution: default}]
>> [INFO] Executing tasks
>>     [mkdir] Created dir:
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\arche
>> types\trunk\servicemix-archetype-catalog\target
>>     [mkdir] Created dir:
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\arche
>> types\trunk\servicemix-archetype-catalog\target\temp\allversions
>>     [mkdir] Created dir:
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\arche
>> types\trunk\servicemix-archetype-catalog\target\temp\duplicates
>> [INFO] Executed tasks
>> [INFO] [archetype:crawl {execution: default}]
>> repository
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\archetypes\trunk\se
>> rvicemix-archetype-catalog\file:\C:\Documents and
>> Settings\akarpe\.m2\repository\
>> org\apache\servicemix\tooling
>> catalogFile
>> C:\PS_OSCOC\SMX4_Archetype_Project\Servicemix_code\archetypes\trunk\s
>> ervicemix-archetype-catalog\target\temp\allversions\archetype-catalog.xml
>> [WARNING] File is not a directory
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] null
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NullPointerException
>>         at
>> org.apache.maven.archetype.catalog.io.xpp3.ArchetypeCatalogXpp3Writer.
>> write(ArchetypeCatalogXpp3Writer.java:55)
>>         at
>> org.apache.maven.archetype.repositorycrawler.DefaultRepositoryCrawler.
>> writeCatalog(DefaultRepositoryCrawler.java:170)
>>         at
>> org.apache.maven.archetype.mojos.CrawlRepositoryMojo.execute(CrawlRepo
>> sitoryMojo.java:77)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin
>> Manager.java:451)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau
>> ltLifecycleExecutor.java:558)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif
>> ecycle(DefaultLifecycleExecutor.java:499)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul
>> tLifecycleExecutor.java:478)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
>> leFailures(DefaultLifecycleExecutor.java:330)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
>> s(DefaultLifecycleExecutor.java:291)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif
>> ecycleExecutor.java:142)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>         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.j
>> ava:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> orImpl.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)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 16 seconds
>> [INFO] Finished at: Wed Nov 26 08:48:49 CST 2008
>> [INFO] Final Memory: 11M/19M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> ======================================================================
>>
>> Freeman Fang wrote:
>>   
>>> Hi Ashwin,
>>>
>>> Could you paste the error stacktrace, since I can run it with all tests 
>>> pass here.
>>> Regards
>>> Freeman
>>>
>>> Ashwin Karpe wrote:
>>>     
>>>> Hi Freeman,
>>>>
>>>> It looks like the tests in servicemix-archetype-catalog fail to run. I
>>>> was
>>>> able to compile when I added -Dmaven.test.skip=true.
>>>>
>>>> Looks like it is not a serious issue.
>>>>
>>>> Cheers,
>>>>
>>>> Ashwin....
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>   
>>>>       
>>>>> Hi Ashwin,
>>>>>
>>>>> What's kind of problem you see, it works on my side?
>>>>> Regards
>>>>> Freeman
>>>>>
>>>>> Ashwin Karpe wrote:
>>>>>     
>>>>>         
>>>>>> Hi Freeman & Guillaume,
>>>>>>
>>>>>> It seems like there is a problem in the servicemix-archetype-catalog
>>>>>> archetype in the archetypes\trunk folder.
>>>>>>
>>>>>> Can you please take a look at it. I would be happy to fix it but I do
>>>>>> not
>>>>>> have the requisite understanding of what this archetype does...
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Ashwin...
>>>>>>
>>>>>> -----
>>>>>> --- 
>>>>>> Ashwin Karpe, Principal Consultant, PS - Opensource Center of
>>>>>> Competence 
>>>>>> Progress Software Corporation
>>>>>> 14 Oak Park Drive
>>>>>> Bedford, MA 01730
>>>>>> --- 
>>>>>> +1-972-304-9084 (Office) 
>>>>>> +1-972-971-1700 (Mobile) 
>>>>>> ---- 
>>>>>> Blog: http://opensourceknowledge.blogspot.com/
>>>>>>
>>>>>>
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>     
>>>>>         
>>>> -----
>>>> --- 
>>>> Ashwin Karpe, Principal Consultant, PS - Opensource Center of
>>>> Competence 
>>>> Progress Software Corporation
>>>> 14 Oak Park Drive
>>>> Bedford, MA 01730
>>>> --- 
>>>> +1-972-304-9084 (Office) 
>>>> +1-972-971-1700 (Mobile) 
>>>> ---- 
>>>> Blog: http://opensourceknowledge.blogspot.com/
>>>>
>>>>
>>>>   
>>>>       
>>>
>>>     
>>
>>
>> -----
>> --- 
>> Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
>> Progress Software Corporation
>> 14 Oak Park Drive
>> Bedford, MA 01730
>> --- 
>> +1-972-304-9084 (Office) 
>> +1-972-971-1700 (Mobile) 
>> ---- 
>> Blog: http://opensourceknowledge.blogspot.com/
>>
>>
>>   
> 
> 
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: 
http://www.nabble.com/Servicemix-archetype-catalog-archetype-fails-compilation...-tp20685518p20734694.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Reply via email to