Thanks

Franz

Wayne Fay schrieb:
You can generally ignore [ERROR] messages like that when the BUILD
SUCCESSFUL message is shown at the end of a build.

In this case, Velocity is simply trying to find a resource which does
not exist. No big deal. The archetype plugin finished successfully.

Wayne

On 4/27/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
Hello,

I have problems to get the first example from the "Maven Getting Started
Guide" working, namely
mvn -e -X archetype:create -DgroupId=de.isogmbh.iso-app -DartifactId=iso-app
Basically i get
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
I use version 2.0.4 on WIN2KSP4 with JDK 1.5.0_06.
When i got this problem with version 2.0.2 i resolved it with set
CLASSPATH=. (it seemed to me that some jars from the former CLASSPATH
were in the way).
But now i get this error even with an empty CLASSPATH or one containing
only a single dot.
My settings.xml is

<settings>
 <localRepository>//winpc229/supply/Maven2/Repository</localRepository>
 <proxies>
   <proxy>
     <active>true</active>
     <protocol>http</protocol>
     <host>proxy</host>
     <port>81</port>
   </proxy>
 </proxies>
</settings>

The complete debug/error output is below.
I hope that someone can help me (and that this is not a FAQ).

Thanks and greetings

Franz

+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente
und Einstellungen\feh\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Programme\maven-2.0.4\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] maven-archetype-plugin: resolved to version 1.0-alpha-3 from
repository central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0-beta-1 for project:
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-3
from the repository.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[DEBUG]
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-3:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven:maven-archetype::1.0-alpha-3 for project:
org.apache.maven:maven-archetype-core:jar:1.0-alpha-3 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0-beta-1 for
project: null:maven-archetype:pom:1.0-alpha-3 from the repository.
[DEBUG]   org.apache.maven:maven-archetype-core:jar:1.0-alpha-3:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0.3 for project:
plexus:plexus-utils:jar:1.0.3 from the repository.
[DEBUG]     plexus:plexus-utils:jar:1.0.3:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-containers::1.0.2 for
project: plexus:plexus-container-default:jar:1.0-alpha-6 from the
repository.
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0.3 for project:
plexus:plexus-containers:pom:1.0.2 from the repository.
[DEBUG]     plexus:plexus-container-default:jar:1.0-alpha-6:runtime
(selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0.3 for project:
plexus:plexus-utils:jar:1.0.2 from the repository.
[DEBUG]       plexus:plexus-utils:jar:1.0.2:runtime (removed - nearer
found: 1.0.3)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0-beta-1 for
project: org.apache.maven:maven-model:jar:2.0-beta-1 from the repository.
[DEBUG]     org.apache.maven:maven-model:jar:2.0-beta-1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-components::1.0 for
project: plexus:plexus-velocity:jar:1.0 from the repository.
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0 for project:
plexus:plexus-components:pom:1.0 from the repository.
[DEBUG]     plexus:plexus-velocity:jar:1.0:runtime (selected for runtime)
[DEBUG]       commons-logging:commons-logging:jar:1.0.2:runtime
(selected for runtime)
[DEBUG]       commons-collections:commons-collections:jar:2.0:runtime
(selected for runtime)
[DEBUG]       velocity:velocity:jar:1.4:runtime (selected for runtime)
[DEBUG]         velocity:velocity-dep:jar:1.4:runtime (selected for runtime)
[DEBUG]       log4j:log4j:jar:1.2.8:runtime (selected for runtime)
[DEBUG]       plexus:plexus-container-default:jar:1.0-alpha-2:runtime
(removed - nearer found: 1.0-alpha-6)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0-beta-1 for
project: org.apache.maven:maven-artifact:jar:2.0-beta-1 from the repository.
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0-beta-1:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0-beta-1 for
project: org.apache.maven:maven-plugin-api:jar:2.0-beta-1 from the
repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0-beta-1:runtime
(selected for runtime)
[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.
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-3:create' -->
[DEBUG]   (f) archetypeArtifactId = maven-archetype-quickstart
[DEBUG]   (f) archetypeGroupId = org.apache.maven.archetypes
[DEBUG]   (f) archetypeVersion = RELEASE
[DEBUG]   (f) artifactId = iso-app
[DEBUG]   (f) groupId = de.isogmbh.iso-app
[DEBUG]   (f) localRepository = [local] ->
file:////winpc229/supply/Maven2/Repository
[DEBUG]   (f) remoteRepositories = [[central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (f) version = 1.0-SNAPSHOT
[DEBUG] -- end configuration --
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: de.isogmbh.iso-app
[DEBUG] maven-archetype-quickstart: resolved to version 1.0-alpha-3 from
repository central
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype:
maven-archetype-quickstart:RELEASE
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: de.isogmbh.iso-app
[INFO] Parameter: outputDirectory, Value: D:\projekte\Maven2\iso-app
[INFO] Parameter: packageName, Value: de.isogmbh.iso-app
[INFO] Parameter: package, Value: de.isogmbh.iso-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: iso-app
[INFO] ResourceManager : found archetype-resources/pom.xml with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[DEBUG] ********************* Debug info for resources created from
generated Model ***********************
[DEBUG] Was build element found in generated POM?: false
[INFO] ********************* End of debug info from resources from
generated POM ***********************
[INFO] ResourceManager : found
archetype-resources/src/main/java/App.java with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ResourceManager : found
archetype-resources/src/test/java/AppTest.java with loader
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] Archetype created in dir: D:\projekte\Maven2\iso-app
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Apr 27 17:41:04 CEST 2006
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to