You simply need to provide the archetypeVersion number as well. This exact error/issue is mentioned on the "guide creating archetypes" page: http://maven.apache.org/guides/mini/guide-creating-archetypes.html
"Don't forget to include the version of your archetype (if you don't include the version, you archetype creation may fail with a message that version:RELEASE was not found) " mvn archetype:create \ -DarchetypeGroupId=<archetype-groupId> \ -DarchetypeArtifactId=<archetype-artifactId> \ -DarchetypeVersion=<archetype-version> \ -DgroupId=<my.groupid> \ -DartifactId=<my-artifactId> Wayne On 7/31/07, Shilpac <[EMAIL PROTECTED]> wrote: > > Hi, > I am getting the following error > > > > C:\Maven\Demo>mvn archetype:create > -DarchetypeGroupId=org.apache.maven.archet > es -DarchetypeArtifactId=maven-archetype-site -DgroupId=com.cognizant > -Dartifa > Id=Demo > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ----------------------------------------------------------------------- > --- > [INFO] Building Demo > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ----------------------------------------------------------------------- > --- > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plex > .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. > operties > [INFO] Default ResourceManager initializing. (class > org.apache.velocity.runtim > resource.ResourceManagerImpl) > [INFO] Resource Loader Instantiated: > org.codehaus.plexus.velocity.ContextClass > aderResourceLoader > [INFO] ClasspathResourceLoader : initialization starting. > [INFO] ClasspathResourceLoader : initialization complete. > [INFO] ResourceCache : initialized. (class > org.apache.velocity.runtime.resourc > 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.v > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in > an > resource loader. > [INFO] Velocimacro : error using VM library template VM_global_library.vm : > o > .apache.velocity.exception.ResourceNotFoundException: Unable to find > resource > M_global_library.vm' > [INFO] Velocimacro : VM library template macro registration complete. > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > templat > > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may > NO > replace previous VM definitions > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > gl > al in scope if allowed. > [INFO] Velocimacro : initialization complete. > [INFO] Velocity successfully started. > [INFO] [archetype:create] > [INFO] Defaulting package to group ID: com.cognizant > [INFO] artifact org.apache.maven.archetypes:maven-archetype-site: checking > for > pdates from central > [WARNING] repository metadata for: 'artifact > org.apache.maven.archetypes:maven > rchetype-site' could not be retrieved from repository: central due to an > error > Error transferring file > [INFO] Repository 'central' will be blacklisted > [INFO] > ----------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > ----------------------------------------------------------------------- > [INFO] Failed to resolve artifact. > > GroupId: org.apache.maven.archetypes > ArtifactId: maven-archetype-site > Version: RELEASE > > Reason: Unable to determine the release version > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.apache.maven.archetypes > -DartifactI > maven-archetype-site \ > -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes > -DartifactId=ma > n-archetype-site \ > -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ > -Durl=[url] -DrepositoryId=[id] > > > org.apache.maven.archetypes:maven-archetype-site:jar:RELEASE > > > > [INFO] > ----------------------------------------------------------------------- > [INFO] For more information, run Maven with the -e switch > [INFO] > ----------------------------------------------------------------------- > [INFO] Total time: 4 seconds > [INFO] Finished at: Tue Jul 31 15:02:26 GMT+05:30 2007 > [INFO] Final Memory: 4M/7M > [INFO] > ----------------------------------------------------------------------- > > As I am new to Maven I am unable to resolve such kind of errors. Eveytime I > am getting these errors but could not find the cause of it. > Can you please tell me what is the cause of this errors? > > maarten roosendaal wrote: > > > > what is the error? > > > > ----- Original Message ---- > > From: Shilpac <[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Tuesday, July 31, 2007 10:08:32 AM > > Subject: How to add dependencies in the POM.xml? > > > > > > After creating a project automatically one POM.xml is getting created. > > There I tried to add some new dependencies but I am getting error while > > running the command > > mvn install. > > > > Do I need to do any changes in the settings.xml as well to avoid this > > error? > > -- > > View this message in context: > > http://www.nabble.com/How-to-add-dependencies-in-the-POM.xml--tf4191523s177.html#a11919925 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Building a website is a piece of cake. Yahoo! Small Business gives you all > > the tools to get online. > > http://smallbusiness.yahoo.com/webhosting > > > > -- > View this message in context: > http://www.nabble.com/How-to-add-dependencies-in-the-POM.xml--tf4191523s177.html#a11921008 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
