[ http://jira.codehaus.org/browse/MNG-2520?page=all ]
Vincent Siveton closed MNG-2520. -------------------------------- Assignee: Vincent Siveton Resolution: Won't Fix I suspect that you have already a pom.xml with jar packaging in the directory where you called mvn. To be clear, you had and did: {noformat} C:\maven-2.0.4\try\my-app>pom.xml with <packaging>jar</packaging> C:\maven-2.0.4\try\my-app>mvn archetype:create ... => Embedded error: Unable to add module to the current project as it is not of packaging type 'pom' {noformat} Feel free to reopen it if it doesn't work on a fresh directory. > build error while: mvn archetype:create -DgroupId=com.mycompany.app > -DartifactId=my-app -DarchetypeGroupId=org.apache.maven.archetypes > -DarchetypeArtifactId=maven-archetype-site > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: MNG-2520 > URL: http://jira.codehaus.org/browse/MNG-2520 > Project: Maven 2 > Issue Type: Bug > Affects Versions: 2.0.4 > Environment: Getting started tutorial > http://maven.apache.org/guides/getting-started/index.html > Reporter: Radu Marian > Assigned To: Vincent Siveton > > C:\maven-2.0.4\try\my-app>mvn archetype:create -DgroupId=com.mycompany.app > -Dart > ifactId=my-app -DarchetypeGroupId=org.apache.maven.archetypes > -DarchetypeArtifac > tId=maven-archetype-site > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building Maven Quick Start Archetype > [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.pr > operties > [INFO] Default ResourceManager initializing. (class > org.apache.velocity.runtime. > resource.ResourceManagerImpl) > [INFO] Resource Loader Instantiated: > org.codehaus.plexus.velocity.ContextClassLo > aderResourceLoader > [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 resource > 'V > M_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 > glob > al in scope if allowed. > [INFO] Velocimacro : initialization complete. > [INFO] Velocity successfully started. > [INFO] [archetype:create] > [INFO] Defaulting package to group ID: com.mycompany.app > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Using following parameters for creating Archetype: > maven-archetype-site:R > ELEASE > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Parameter: groupId, Value: com.mycompany.app > [INFO] Parameter: packageName, Value: com.mycompany.app > [INFO] Parameter: basedir, Value: C:\maven-2.0.4\try\my-app > [INFO] Parameter: package, Value: com.mycompany.app > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] Parameter: artifactId, Value: my-app > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error creating from archetype > Embedded error: Unable to add module to the current project as it is not of > pack > aging type 'pom' > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3 seconds > [INFO] Finished at: Mon Aug 21 16:05:45 EDT 2006 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira