Maybe try to remove the following folder C:\Documents and Settings\othomas\.m2\repository\org\apache\maven\plugins\maven-archetype-plugin
And try removing the SNAPSHOT when runnning the "mvn archetype:create" command. On 3/8/07, Owen Thomas <[EMAIL PROTECTED]> wrote:
Okay... I've removed the directory "C:\Documents and Settings\othomas\.m2\repository\org\apache\servicemix", and will try the same as I did before with the file "bindingcomponents-3.1-incubating-20070129.083009-68.pom" that I found at http://people.apache.org/maven-snapshot-repository/org/apache/servicemix /bindingcomponents/3.1-incubating-SNAPSHOT/... Maven responds with the following: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] -------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [install:install-file] (aggregator-style) [INFO] -------------------------------------------------------------------- [INFO] [install:install-file] [INFO] Installing C:\bindingcomponents-3.1-incubating-20070129.083009-68.pom to C:\Documents and Settings\othomas\.m2\repository\org\apache\servicemix\tool ing\servicemix-binding-component\3.1-incubating-SNAPSHOT\servicemix-bind ing-component-3.1-incubating-SNAPSHOT.jar [INFO] -------------------------------------------------------------------- [INFO] BUILD SUCCESSFUL [INFO] -------------------------------------------------------------------- [INFO] Total time: < 1 second [INFO] Finished at: Thu Mar 08 10:34:38 EST 2007 [INFO] Final Memory: 2M/4M [INFO] -------------------------------------------------------------------- So, I guess Maven's happy. I now try to do what I originally intended again - to build myself a binding component project. To do this, I run the following command: mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-binding-component -DarchetypeVers ion=3.1-incubating-SNAPSHOT -DgroupId=au.com.wcg.bindingcomponent.executeshellscript -DartifactId=ExecuteShellScriptBindingComponent Doing this, I receive the following output: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [archetype:create] (aggregator-style) [INFO] ------------------------------------------------------------------- [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] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resour ce 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: au.com.wcg.bindingcomponent.executeshellscript [INFO] ------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: servicemix-binding-component:3.1-incubating-SNAPSHOT [INFO] ------------------------------------------------------------------- [INFO] Parameter: groupId, Value: au.com.wcg.bindingcomponent.executeshellscript [INFO] Parameter: packageName, Value: au.com.wcg.bindingcomponent.executeshellscript [INFO] Parameter: basedir, Value: H:\CurrentProjects [INFO] Parameter: package, Value: au.com.wcg.bindingcomponent.executeshellscript [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: ExecuteShellScriptBindingComponent [INFO] ------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------- [INFO] Error creating from archetype Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found. [INFO] ------------------------------------------------------------------- [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------- [INFO] Total time: 2 seconds [INFO] Finished at: Thu Mar 08 10:47:14 EST 2007 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------- I really would appreciate some assistance here, something that gives me a binding component project so that I can start coding out the BC that my management would like to see. I would like to know how Maven works *eventually*, but I would like to spend time on doing this after I get the BC written. Thanks, Owen. -----Original Message----- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 6:18 PM To: [email protected] Subject: Re: Maven newbie alert - incorrect archetype version. Hey Bruce, I'm thinking maybe we should use the 3.1 version for this tutorial ? Or is there anything requiring 3.2 ? On 3/7/07, Bruce Snyder <[EMAIL PROTECTED]> wrote: > > On 3/6/07, Owen Thomas <[EMAIL PROTECTED]> wrote: > > Hello. > > > > > > > > I am a Maven newbie. Having discovered the merit in using Maven over Ant > > on Monday, I downloaded and started fiddling with it yesterday. I am > > rather fresh. > > > > > > > > My problem relates to the following error when trying to create a new > > JBI BC project with maven. I am following the tutorial at > > http://incubator.apache.org/servicemix/hello-world-bc.html to create my > > own BC; a fact I think is unrelated to the problem I am having. > > > > > > > > When I run the following command: > > > > > > > > mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling / > > > > -DarchetypeArtifactId=servicemix-binding-component / > > > > -DarchetypeVersion=3.1-incubating-SNAPSHOT / > > > > -DgroupId=au.com.wcg.bindingcomponent.executeshellscript / > > > > -DartifactId=WCGExecuteSchellScriptBindingComponent > > > > > > > > I find the following error in my maven output: > > > > > > > > [INFO] Failed to resolve artifact. > > > > > > > > GroupId: org.apache.servicemix.tooling > > > > ArtifactId: servicemix-binding-component > > > > Version: 3.1-incubating-SNAPSHOT > > > > > > > > Reason: Unable to download the artifact from any repository > > > > > > > > Try downloading the file manually from the project website. > > > > > > > > Looking at the tutorial, I find that it has been courteous enough to > > include a link to the "Top level ServiceMix POM", only this link points > > to a page that no longer exists. I have done some searching, and, not > > knowing exactly what it is that I am supposed to be finding, have here > > made this request for help. Does anyone know where the POM I need is? > > > > > > > > Help would be very much appreciated, > > I've updated the tutorial some. The reason you're seeing the error is > because of the version of ServiceMix you were using. One of the > updates to the tutorial was to update the version of ServiceMix being > used to 3.2-incubating-SNAPSHOT. > > I've also removed all the links using Fisheye since it is has not been > available for about a month now. > > Unfortunately the tutorial is still not 100% complete yet. This is > very time-consuming work. Any contributions you might have are most > welcome. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" > );' > > Apache Geronimo - http://geronimo.apache.org/ > Apache ActiveMQ - http://activemq.org/ > Apache ServiceMix - http://servicemix.org/ > Castor - http://castor.org/ > -- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
