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

Reply via email to