Hello, this is my console output
C:\Documents and Settings\Borut\Desktop\work>mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArti factId=tapestry-simple -DarchetypeVersion=5.0.1 -DgroupId=org.example-DartifactId=myapp -DpackageName= org.example.myapp -Dversion=1.0.0-SNAPSHOT [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.ContextClassLoaderResourceLoad er'. [INFO] Setting property: resource.loader => 'classpath'. [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.ResourceNotFo undException: Unable to find resource '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 : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: tapestry-simple: 5.0.1 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.example [INFO] Parameter: outputDirectory, Value: C:\Documents and Settings\Borut\Desktop\work\myapp [INFO] Parameter: packageName, Value: org.example.myapp [INFO] Parameter: package, Value: org.example.myapp [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT [INFO] Parameter: artifactId, Value: myapp [INFO] ResourceManager : found archetype-resources/pom.xml with loader org.codehaus.plexus.velocity.ContextClassLoaderRe sourceLoader [INFO] ********************* End of debug info from resources from generated POM *********************** [INFO] ResourceManager : found archetype-resources/src/main/java/pages/Start.java with loader org.codehaus.plexus.veloci ty.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/java/services/AppModule.java with loader org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/.classpath with loader org.codehaus.plexus.velocity.ContextClassLoade rResourceLoader [INFO] ResourceManager : found archetype-resources/.project with loader org.codehaus.plexus.velocity.ContextClassLoaderR esourceLoader [INFO] ResourceManager : found archetype-resources/src/main/webapp/index.html with loader org.codehaus.plexus.velocity.C ontextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/webapp/WEB-INF/web.xml with loader org.codehaus.plexus.veloc ity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/webapp/WEB-INF/Start.html with loader org.codehaus.plexus.ve locity.ContextClassLoaderResourceLoader [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/ webapp/WEB-INF/Start.html [line 11,column 34] : ${currentTime} is not a valid reference. [INFO] ResourceManager : found archetype-resources/src/main/resources/log4j.properties with loader org.codehaus.plexus.v elocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/test/java/PLACEHOLDER with loader org.codehaus.plexus.velocity.Co ntextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/test/resources/PLACEHOLDER with loader org.codehaus.plexus.veloci ty.ContextClassLoaderResourceLoader [INFO] Archetype created in dir: C:\Documents and Settings\Borut\Desktop\work\myapp [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6 seconds [INFO] Finished at: Thu Feb 22 07:53:22 CET 2007 [INFO] Final Memory: 4M/7M [INFO] ------------------------------------------------------------------------ C:\Documents and Settings\Borut\Desktop\work>tree Folder PATH listing Volume serial number is 00006F2C DC83:93F7 C:. └───myapp └───src ├───main │ ├───java │ │ ├───pages │ │ │ └───org │ │ │ └───example │ │ │ └───myapp │ │ └───services │ │ └───org │ │ └───example │ │ └───myapp │ ├───resources │ └───webapp │ └───WEB-INF └───test ├───java └───resources C:\Documents and Settings\Borut\Desktop\work> I hope the email won't get reformatted. If it does, here is the picture http://svarog.homeip.net/screencast/console.gif I am also using Maven 2.0.5. The Eclipse plugin shouldn't be responsible for the directory layout or is it? It would be nice if someone on Windows XP would try this archetype to confirm this behaviour. Regards, Borut 2007/2/22, Howard Lewis Ship <[EMAIL PROTECTED]>:
Well, I didn't have the right codec on my Mac, so all I get is the sound of keys clicking! Here I tried it at the command line: $ mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=tapestry-simple -DarchetypeVersion=5.0.1 -DgroupId=org.example -DartifactId=itworks -DpackageName=org.example.itworks -Dversion=1.0.0-SNAPSHOT [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 resource '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] Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-simple/5.0.1/tapestry-simple-5.0.1.jar 9K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: tapestry-simple: 5.0.1 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.example [INFO] Parameter: packageName, Value: org.example.itworks [INFO] Parameter: basedir, Value: /Users/Howard/work [INFO] Parameter: package, Value: org.example.itworks [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT [INFO] Parameter: artifactId, Value: itworks [INFO] ********************* End of debug info from resources from generated POM *********************** [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/webapp/WEB-INF/Start.html [line 11,column 34] : ${currentTime} is not a valid reference. [INFO] Archetype created in dir: /Users/Howard/work/itworks [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Feb 21 15:27:57 PST 2007 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ ~/work $ find itworks itworks itworks/.classpath itworks/.project itworks/pom.xml itworks/src itworks/src/main itworks/src/main/java itworks/src/main/java/org itworks/src/main/java/org/example itworks/src/main/java/org/example/itworks itworks/src/main/java/org/example/itworks/pages itworks/src/main/java/org/example/itworks/pages/Start.java itworks/src/main/java/org/example/itworks/services itworks/src/main/java/org/example/itworks/services/AppModule.java itworks/src/main/resources itworks/src/main/resources/log4j.properties itworks/src/main/webapp itworks/src/main/webapp/index.html itworks/src/main/webapp/WEB-INF itworks/src/main/webapp/WEB-INF/Start.html itworks/src/main/webapp/WEB-INF/web.xml itworks/src/test itworks/src/test/java itworks/src/test/java/PLACEHOLDER itworks/src/test/resources itworks/src/test/resources/PLACEHOLDER ~/work $ Everything is exactly where it should be. This is under Maven 2.0.5. If you are having a problem, it's going to be your Maven Eclipse plugin. On 2/21/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: > Here is a 3.7 MB screencast on a slow connection > http://svarog.homeip.net/screencast/archetype.avi > > > 2007/2/21, Howard Lewis Ship <[EMAIL PROTECTED]>: > > > > Could you carefully double check this. > > > > I haven't tried this using the maven plugin (in fact, I'm using 0.0.9 > > which may not even have that feature). I've tested this from the > > command line. > > > > > > > > On 2/21/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > I think there is an error in creating package names in this archetype. > > When > > > running > > > > > > mvn archetype:create > > > -DarchetypeGroupId= > > org.apache.tapestry-DarchetypeArtifactId=tapestry-simple > > > -DarchetypeVersion= > > > 5.0.1 -DgroupId=*org.example* -DartifactId=*myapp* -DpackageName=* > > > org.example.myapp* -Dversion=*1.0.0-SNAPSHOT* > > > > > > > > > the following directory structure gets created > > > > > > work\myapp\src\main\java\pages\org\example\myapp > > > > > > but the java class Start.java in that directory has > > > package org.example.myapp.pages; > > > > > > so one must move the class into the right package which is with one > > click in > > > Eclipse, but still... > > > > > > The same goes for services directory. > > > > > > I am using http://m2eclipse.codehaus.org/ version 0.0.10 > > > > > > Cheers, > > > Borut > > > > > > > > > -- > > Howard M. Lewis Ship > > TWD Consulting, Inc. > > Independent J2EE / Open-Source Java Consultant > > Creator and PMC Chair, Apache Tapestry > > Creator, Apache HiveMind > > > > Professional Tapestry training, mentoring, support > > and project work. http://howardlewisship.com > > > -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com