maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naresh Bhatia" <NBha...@sapient.com>
Subject Error with maven-archetype-j2ee-simple
Date Fri, 16 Jun 2006 15:41:30 GMT
I am running the following command to generate a simple J2EE app:

 

    mvn archetype:create -DgroupId=TestEarApp -DartifactId=TestEarApp
-DarchetypeArtifactId=maven-archetype-j2ee-simple

 

But I am getting the following error. Can someone give me a helping hand
on this one?

 

[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: 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.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 : 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] Defaulting package to group ID: TestEarApp

[INFO]
------------------------------------------------------------------------
----

[INFO] Using following parameters for creating Archetype:
maven-archetype-j2ee-simple:RELEASE

[INFO]
------------------------------------------------------------------------
----

[INFO] Parameter: groupId, Value: TestEarApp

[INFO] Parameter: outputDirectory, Value:
D:\ProjectsTest\Maven2\TestEarApp

[INFO] Parameter: packageName, Value: TestEarApp

[INFO] Parameter: package, Value: TestEarApp

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

[INFO] Parameter: artifactId, Value: TestEarApp

[INFO] ResourceManager : found archetype-resources/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

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

[INFO] ResourceManager : found archetype-resources/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found archetype-resources/ear/pom.xml with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/ejbs/src/main/resources/META-INF/ejb-jar.xml with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found archetype-resources/ejbs/pom.xml with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/primary-source/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/projects/logging/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found archetype-resources/projects/pom.xml with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found archetype-resources/servlets/pom.xml with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/servlets/servlet/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/servlets/servlet/src/main/webapp/index.jsp with
loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ResourceManager : found
archetype-resources/servlets/servlet/src/main/webapp/WEB-INF/web.xml
with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[ERROR] ResourceManager : unable to find resource
'archetype-resources/site/pom.xml' in any resource loader.

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error creating from archetype

 

Embedded error: Error processing templates.

Unable to find resource 'archetype-resources/site/pom.xml'

[INFO]
------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 2 seconds

[INFO] Finished at: Fri Jun 16 11:39:34 EDT 2006

[INFO] Final Memory: 4M/7M

[INFO]
------------------------------------------------------------------------

 

Naresh


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