I was using -DarchetypeCatalog=local  because  servicemix-service-unit 
archetype defined in archetype-catalog.xml file locally in .M2 / folder. 

i tried to use smx-arch tool but it was also trying to load the required
files from remote repository and asking for following option.But there is no
matching option.

C:\Apache Software Foundation\projects\file-xslt-tx>smx-arch su saxon-xslt
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building File and XSLT transform example
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:create
[INFO] No goals needed for project - skipping
Downloading:
http://repo1.maven.org/maven2/com/mycompany/wagon-http-shared/1.0-beta-2/wagon-http-shared-
1.0-beta-2.pom
Downloading:
http://repo1.maven.org/maven2/com/mycompany/wagon-http-shared/1.0-beta-2/wagon-http-shared-
1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] No archetype repository found.
[WARNING] Specified archetype not found.
Choose archetype:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web
application with Hibernate, Sprin
g and JSF)
2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web
application with Hibernate, Sp
ring and Spring MVC)
3: internal -> appfuse-basic-struts (AppFuse archetype for creating a web
application with Hibernate, Sp
ring and Struts 2)
4: internal -> appfuse-basic-tapestry (AppFuse archetype for creating a web
application with Hibernate,
Spring and Tapestry 4)
5: internal -> appfuse-core (AppFuse archetype for creating a jar
application with Hibernate and Spring
and XFire)
6: internal -> appfuse-modular-jsf (AppFuse archetype for creating a modular
application with Hibernate,
 Spring and JSF)
7: internal -> appfuse-modular-spring (AppFuse archetype for creating a
modular application with Hiberna
te, Spring and Spring MVC)
8: internal -> appfuse-modular-struts (AppFuse archetype for creating a
modular application with Hiberna
te, Spring and Struts 2)
9: internal -> appfuse-modular-tapestry (AppFuse archetype for creating a
modular application with Hiber
nate, Spring and Tapestry 4)
10: internal -> maven-archetype-j2ee-simple (A simple J2EE Java application)
11: internal -> maven-archetype-marmalade-mojo (A Maven plugin development
project using marmalade)
12: internal -> maven-archetype-mojo (A Maven Java plugin development
project)
13: internal -> maven-archetype-portlet (A simple portlet application)
14: internal -> maven-archetype-profiles ()
15: internal -> maven-archetype-quickstart ()
16: internal -> maven-archetype-site-simple (A simple site generation
project)
17: internal -> maven-archetype-site (A more complex site project)
18: internal -> maven-archetype-webapp (A simple Java web application)
19: internal -> struts2-archetype-starter (A starter Struts 2 application
with Sitemesh, DWR, and Spring
)
20: internal -> struts2-archetype-blank (A minimal Struts 2 application)
21: internal -> struts2-archetype-portlet (A minimal Struts 2 application
that can be deployed as a port
let)
22: internal -> struts2-archetype-dbportlet (A starter Struts 2 portlet that
demonstrates a simple CRUD
interface with db backing)
23: internal -> struts2-archetype-plugin (A Struts 2 plugin)
24: internal -> shale-archetype-blank (A blank Shale web application with
JSF)
25: internal -> maven-adf-archetype (Archetype to ease the burden of
creating a new application based wi
th ADF)
26: internal -> data-app (A new Databinder application with sources and
resources.)
27: internal -> jini-service-archetype (Archetype for Jini service project
creation)
28: internal -> softeu-archetype-seam (JSF+Facelets+Seam Archetype)
29: internal -> softeu-archetype-seam-simple (JSF+Facelets+Seam (no
persistence) Archetype)
30: internal -> softeu-archetype-jsf (JSF+Facelets Archetype)
31: internal -> jpa-maven-archetype (JPA application)
32: internal -> spring-osgi-bundle-archetype (Spring-OSGi archetype)
33: internal -> confluence-plugin-archetype (Atlassian Confluence plugin
archetype)
34: internal -> maven-archetype-har (Hibernate Archive)
35: internal -> maven-archetype-sar (JBoss Service Archive)
36: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
Choose a number: 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/3
2/33/34/35/36):




lhe wrote:
> 
> Why are you using the -DarchetypeCatalog=local parameter?
> Try skipping it. Another way of creating a service unit is to use
> the smx-arch tool in the bin folder of your smx installation.
> Run it without parameters to get a description how to use it.
> 
> Regards,
> Lars
> 
> 
> 
> Bhupinder Singh schrieb:
>> i am getting following error while cearting simple file SU
>>
>> C:\Apache Software Foundation\projects\file-xslt-tx>mvn archetype:create
>> -DarchetypeArtifactId=servicemi
>> x-service-unit -DarchetypeGroupId=org.apache.servicemix.tooling
>> -DartifactId=proj-file-su -DarchetypeCat
>> alog=local
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building File and XSLT transform example
>> [INFO]    task-segment: [archetype:create] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Preparing archetype:create
>> [INFO] No goals needed for project - skipping
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus.velocity.ContextClassLo
>> aderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] [archetype:create]
>> [INFO] Archetype
>> [org.apache.servicemix.tooling:servicemix-service-unit:3.2.1 ->
>> http://repo1.maven.org/
>> maven2] found in catalog local
>> org.apache.maven.archetype.downloader.DownloadException: Error
>> downloading.
>>         at
>> org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:58)
>>        
>> at
>> org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArti
>> factManager.java:298)
>>         at
>> org.apache.maven.archetype.ui.DefaultArchetypeGenerationConfigurator.configureArchetype(Defau
>> ltArchetypeGenerationConfigurator.java:102)
>>         at
>> org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArch
>> etypeMojo.java:167)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.jav
>> a:539)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExe
>> cutor.java:493)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java
>> :463)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifec
>> ycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecu
>> tor.java:224)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143
>> )
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>         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.artifact.resolver.ArtifactResolutionException:
>> Error transferring file
>>   org.apache.servicemix.tooling:servicemix-service-unit:jar:3.2.1
>>
>> from the specified remote repositories:
>>   servicemix-service-unit-repo (http://repo1.maven.org/maven2)
>>
>>         at
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.ja
>> va:210)
>>         at
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveAlways(DefaultArtifactResol
>> ver.java:79)
>>         at
>> org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:54)
>>         ... 21 more
>> Caused by: org.apache.maven.wagon.TransferFailedException: Error
>> transferring file
>>         at
>> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon
>> .java:104)
>>         at
>> org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:94)
>>         at
>> org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:
>> 446)
>>         at
>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:34
>> 7)
>>         at
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.ja
>> va:190)
>>         ... 23 more
>> Caused by: java.net.ProtocolException: Server redirected too many  times
>> (20)
>>         at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1180)
>>         at
>> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon
>> .java:83)
>>         ... 27 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The desired archetype does not exist
>> (org.apache.servicemix.tooling:servicemix-service-unit:3.2.1
>> )
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 6 seconds
>> [INFO] Finished at: Wed Feb 27 14:47:06 IST 2008
>> [INFO] Final Memory: 7M/14M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> But last time it was working fine.this time is showing problem.why?
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-su-creation-tp15709285s12049p15710400.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to