struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenxy <tin...@gmail.com>
Subject Re: Maven struts2-archetype-starter error
Date Mon, 12 May 2008 07:53:38 GMT
i ran the command on WinXP_sp2, and it came to "BUILD SUCCESSFUL", with some
errs and warnings.

Maven version: 2.0.9
Java version: 1.6.0_02

--------------------------------------------------------------
E:\struts2>mvn archetype:create -DgroupId=tutorial -DartifactId=tutorial
-DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.5-SNAPSHOT -DremoteRepositories=
http://people.apache.org/repo/m2-snapshot-repository
[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
anyresource 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
NOTreplace 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] Defaulting package to group ID: tutorial
[INFO] We are using command line specified remote repositories:
http://people.apache.org/repo/m2-snapshot-repository
[INFO] snapshot org.apache.struts:struts2-archetype-starter:2.0.5-SNAPSHOT:
checking for updates from id0
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype:
struts2-archetype-starter:2.0.5-SNAPSHOT
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: tutorial
[INFO] Parameter: packageName, Value: tutorial
[INFO] Parameter: package, Value: tutorial
[INFO] Parameter: artifactId, Value: tutorial
[INFO] Parameter: basedir, Value: E:\struts2
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] ********************* End of debug info from resources from generated
POM ***********************
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template =
archetype-resources/src/main/java/HelloWorldAction.java [line 2,column 4] :
$Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template = archetype-resources/src/main/java/IndexAction.java
[line 2,column 4]: $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template = archetype-resources/src/main/java/DateConverter.java
[line 2,column 4] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template =
archetype-resources/src/main/webapp/WEB-INF/sitemesh.xml [line 5,column 21]
: ${decorators-file} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template =
archetype-resources/src/main/webapp/WEB-INF/sitemesh.xml [line 45,column 41]
: ${decorators-file} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template =
archetype-resources/src/test/java/HelloWorldActionTest.java [line 2,column
4] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :template = archetype-resources/src/test/java/IndexActionTest.java
[line 2,column 4] : $Id is not a valid reference.
[INFO] Archetype created in dir: E:\struts2\tutorial
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon May 12 15:23:11 CST 2008
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message