You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Naresh Bhatia <NB...@sapient.com> on 2006/06/16 17:41:30 UTC
Error with maven-archetype-j2ee-simple
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
Re: Error with maven-archetype-j2ee-simple
Posted by sumedha <su...@sltnet.lk>.
This been reported already. Check the following link.
http://mail-archives.apache.org/mod_mbox/maven-issues/200605.mbox/%3C78679310.1148319580987.JavaMail.haus-jira@codehaus01.managed.contegix.com%3E
Here is a small work-a-round I have tried.
After you get the above error message go inside to your ejb project. Then
type 'mvn install' or 'mvn -e -U install'(This will turn on the stacktrace,
update options).
While this is running, it will complain about some missing pom.xml files.
(Not sure if this will repeat for you.But it happened to me.I tried it
several times :-) )
1.Copy a generated pom.xml from a created location (eg. from
'primary-source' sub-project) & do the changes to it accordingly(This is
necessary).
2.Then run the above command again.(you may have to repeat 1 & 2 several
times to get everything fixed.)
Hope this helps.
/sumedha
--
View this message in context: http://www.nabble.com/Error-with-maven-archetype-j2ee-simple-t1799029.html#a4949053
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Error with maven-archetype-j2ee-simple
Posted by Felipe Gaúcho <fg...@gmail.com>.
I was having several problems with the maven until I started to run the
command with the -U flag.. it forced the maven to update its libraries and
the things started to happens.....
On 6/16/06, Naresh Bhatia <NB...@sapient.com> wrote:
> 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
>
>
>