Tru with -U -up on the command line to update
the maven archetype plugin (or remove it from
your local repository).

On 11/3/06, Jeffrey Puro <[EMAIL PROTECTED]> wrote:
Tried doing that.  Here is the command I'm running:

mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-http-consumer-service-unit
-DarchetypeVersion=3.0-incubating -DgroupId=com.sterling.tracker.service
-DartifactId=bridge-http-su -e

and here is the output with -e on:


+ Error stacktraces are turned on.
[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: com.sterling.tracker.service
[INFO]
------------------------------------------------------------------------
----
[INFO] Using following parameters for creating Archetype:
servicemix-http-consumer-service-unit:3.0-incubating
[INFO]
------------------------------------------------------------------------
----
[INFO] Parameter: groupId, Value: com.sterling.tracker.service
[INFO] Parameter: outputDirectory, Value:
C:\dev\projects\drug-tracker-ws\bridge-http-su
[INFO] Parameter: packageName, Value: com.sterling.tracker.service
[INFO] Parameter: package, Value: com.sterling.tracker.service
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: bridge-http-su
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: Error reading the META-INF/archetype.xml descriptor.
The META-INF/archetype.xml descriptor cannot be found.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating
from archetype
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:219)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
creating from archetype
        at
org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArchet
ypeMojo.java:153)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
        ... 16 more
Caused by: org.apache.maven.archetype.ArchetypeDescriptorException:
Error reading the META-INF/archetype.xml descriptor.
        at
org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultArche
type.java:180)
        at
org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArchet
ypeMojo.java:144)
        ... 18 more
Caused by: org.apache.maven.archetype.ArchetypeDescriptorException: The
META-INF/archetype.xml descriptor cannot be found.
        at
org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultArche
type.java:173)
        ... 19 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 03 09:25:06 EST 2006
[INFO] Final Memory: 4M/7M
[INFO]
------------------------------------------------------------------------


-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Friday, November 03, 2006 3:10 AM
To: [email protected]
Subject: Re: Creating Service-Units with Maven 2 Archetype

Maybe one of the jar is corrupted in your local maven repo.
I would try to remove the ~/.m2/repository/org/apache/servicemix/tooling
folder and retry.









This email (and any attachments) is intended only for the use of the individual or 
entity named above and may contain information that is privileged and confidential. 
If you are not the intended recipient, or have unauthorized access, you are hereby 
notified that copying, disseminating, distributing or taking any action in reliance 
on this email is strictly prohibited<br />
<br />
Opinions, conclusions and other information in this message that do not relate 
to the official business of our firm shall be understood as neither given nor 
endorsed by it.




--
Cheers,
Guillaume Nodet

Reply via email to