T5 archetype problem

2007-10-17 Thread tom
Trying to create archetype using maven 2.0.7 on win2003.

Running: 

mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DgroupId=org.example -DartifactId=myapp
-DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
-DremoteRepositories=http://tapestry.formos.com/maven-snapshot-repository
-DarchetypeVersion=5.0.6-SNAPSHOT

 

output:

 

D:\Old Projects\Tapestry 5call mvn archetype:create
-DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart
-DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp
-Dversion=1.0.0-SNAPSHOT
-DremoteRepositories=http://tapestry.formos.com/maven-snapshot-repository
-DarchetypeVersion=5.0.6-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]

[INFO] We are using command line specified remote repositories:
http://tapestry.formos.com/maven-snapshot-repository

[INFO] snapshot org.apache.tapestry:quickstart:5.0.6-SNAPSHOT: checking for
updates from id0

[INFO]


[INFO] Using following parameters for creating Archetype:
quickstart:5.0.6-SNAPSHOT

[INFO]


[INFO] Parameter: groupId, Value: org.example

[INFO] Parameter: packageName, Value: org.example.myapp

[INFO] Parameter: package, Value: org.example.myapp

[INFO] Parameter: artifactId, Value: myapp

[INFO] Parameter: basedir, Value: D:\Old Projects\Tapestry 5

[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT

[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 14,column 22] :
${tapestry-release-version} is not a valid reference.

[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 80,column 26] :
${tapestry-release-version} is not a valid reference.

[INFO] * End of debug info from resources from generated
POM ***

[ERROR] ResourceManager : unable to find resource
'archetype-resources/src/main/java/base/' in any resource loader.

[INFO]


[ERROR] BUILD ERROR

[INFO]

Re: T5 archetype problem

2007-10-17 Thread Howard Lewis Ship
Thanks for the heads up, I've checked in a fix and it should be in the next
nightly build.

On 10/17/07, tom [EMAIL PROTECTED] wrote:

 Trying to create archetype using maven 2.0.7 on win2003.

 Running:

 mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
 -DarchetypeArtifactId=quickstart -DgroupId=org.example -DartifactId=myapp
 -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
 -DremoteRepositories=http://tapestry.formos.com/maven-snapshot-repository
 -DarchetypeVersion=5.0.6-SNAPSHOT



 output:



 D:\Old Projects\Tapestry 5call mvn archetype:create
 -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart
 -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp
 -Dversion=1.0.0-SNAPSHOT
 -DremoteRepositories=http://tapestry.formos.com/maven-snapshot-repository
 -DarchetypeVersion=5.0.6-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]

 [INFO] We are using command line specified remote repositories:
 http://tapestry.formos.com/maven-snapshot-repository

 [INFO] snapshot org.apache.tapestry:quickstart:5.0.6-SNAPSHOT: checking
 for
 updates from id0

 [INFO]

 

 [INFO] Using following parameters for creating Archetype:
 quickstart:5.0.6-SNAPSHOT

 [INFO]

 

 [INFO] Parameter: groupId, Value: org.example

 [INFO] Parameter: packageName, Value: org.example.myapp

 [INFO] Parameter: package, Value: org.example.myapp

 [INFO] Parameter: artifactId, Value: myapp

 [INFO] Parameter: basedir, Value: D:\Old Projects\Tapestry 5

 [INFO] Parameter: version, Value: 1.0.0-SNAPSHOT

 [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
 reference : template = archetype-resources/pom.xml [line 14,column 22] :
 ${tapestry-release-version} is not a valid reference.

 [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
 reference : template = archetype-resources/pom.xml [line 80,column 26] :
 ${tapestry-release-version} is not a valid reference.

 [INFO] * End of debug info from resources from
 generated
 POM ***

 [ERROR] ResourceManager : unable to find resource