Hi It worked after adding the -U paramter
I am using maven version 2.0.9 I will compile and deploy the war in jboss 4.0.2 and let you know the result. Thanks, Chaula > Date: Tue, 19 May 2009 11:42:45 +0100 > Subject: Re: tuscany-host-embedded-2.0-M2.jar missing > From: ant.el...@gmail.com > To: user@tuscany.apache.org > CC: chaul...@hotmail.com > > I think the catalog parameter changed on older version of the > archetype plugin, which version of Maven are you using? Can you try > adding the -U paramter to the command? If that doesn't help could you > add the -X parameter and send us the console log to help debug it? > > ...ant > > On Tue, May 19, 2009 at 11:32 AM, Chaula Ganatra <chaul...@hotmail.com> wrote: > > Hi > > On executing command mvn archetype:generate > > -DarchetypeCatalog=http://tuscany.apache.org, it gives following error > > > > > > C:\tuscany-sca-2.0-M2_mvn>mvn archetype:generate > > -DarchetypeCatalog=http://tuscany.apache.org > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'archetype'. > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Building Maven Default Project > > [INFO] task-segment: [archetype:generate] (aggregator-style) > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Preparing archetype:generate > > [INFO] No goals needed for project - skipping > > [INFO] Setting property: classpath.resource.loader.class => > > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > > '. > > [INFO] Setting property: velocimacro.messages.on => 'false'. > > [INFO] Setting property: resource.loader => 'classpath'. > > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > > [INFO] [archetype:generate] > > [INFO] Generating project in Interactive mode > > [WARNING] Error reading archetype catalog http://tuscany.apache.org > > java.lang.IllegalArgumentException: protocol = http host = null > > at > > sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:146) > > at > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:742) > > at > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:672) > > at > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:916) > > at > > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83) > > at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68) > > at > > org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(RemoteCatalogArchetypeDa > > taSource.java:89) > > at > > org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultArchetype.java:197) > > at > > org.apache.maven.archetype.ui.DefaultArchetypeSelector.getArchetypesByCatalog(DefaultArchetypeSelector.java:283 > > ) > > at > > org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetype(DefaultArchetypeSelector.java:74) > > at > > org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:180 > > ) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: > > 330) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.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) > > [INFO] No archetype defined. Using maven-archetype-quickstart > > (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) > > Choose archetype: > > Choose a number: : > > > > it is continuously asking for number even if i enter 3 > > > > Regards, > > Chaula > > > >> Date: Tue, 19 May 2009 11:08:12 +0100 > >> Subject: Re: tuscany-host-embedded-2.0-M2.jar missing > >> From: antel...@apache.org > >> To: user@tuscany.apache.org > >> CC: chaul...@hotmail.com > >> > >> On Tue, May 19, 2009 at 10:59 AM, Chaula Ganatra <chaul...@hotmail.com> > >> wrote: > >> > Yes i wanted to make a webapp sample, so i copied web.composite and > >> > calc.jsp > >> > from 1.4 version and created war. > >> > > >> > Can you please let me know, from where i can download webapp sample of > >> > 2.x? > >> > > >> > I am trying with 2.x because there was a bug in 1.4 (can not deploy in > >> > jboss > >> > 4.0.2), which was resolved some time back, but could not download zip of > >> > nightly build. And somewhere i read that, it is advisable to use latest > >> > version, so trying with 2.0 > >> > > >> > > >> > Regards, > >> > Chaula > >> > > >> > >> The webapp samples haven't made it into a 2.0 release yet, but there > >> are maven archetypes available so you can create your own - run: > >> > >> mvn archetype:generate -DarchetypeCatalog=http://tuscany.apache.org > >> > >> choose option 3 for a simple JSP example. For more info see: > >> > >> > >> http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Maven+Archetypes > >> > >> Let us know how you get on as we're still refining the archetypes so > >> would welcome any feedback. > >> > >> ...ant > > > > ________________________________ > > Get easy photo sharing with Windows Live™ Photos. Drag n’ drop _________________________________________________________________ Live Search extreme As India feels the heat of poll season, get all the info you need on the MSN News Aggregator http://news.in.msn.com/National/indiaelections2009/aggregator/default.aspx