maven-archetype-plug-n-skin build error
alexeev.net Jan 13, 2009 8:37 AMThe sub-chapter 5.9.10. Plug-n-Skin of the RichFaces community documentation promises "easy create, customize and plug into a project a custom skin".
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html#PlugnSkin
The step 1 "mvn archetype:create (...)" and step 2 "mvn cdk:add-skin (...)" are indeed trouble-free.
However, the step 3 "mvn clean install" results in build error:
[ERROR] ResourceManager : unable to find resource 'META-INF/templates/resources-dependencies.vm' in any resource loader.
Does anybody know why?
Thanks
p.s. The cdk is: 3.3.0.GA
p.p.s. The full maven log is:
"maven install" wrote:
[INFO] Building my-skin
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing cdk:generate
[WARNING] Removing: generate from forked lifecycle, to prevent recursive invocation.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[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,cdk'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Setting property: cdk.resource.loader.class => 'org.ajax4jsf.builder.velocity.ResourceLoader'.
[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] Resource Loader Instantiated: org.ajax4jsf.builder.velocity.ResourceLoader
[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
[INFO] Velocimacro : added new VM : #quietnull( a ) : source = VM_global_library.vm
[INFO] Velocimacro : added new VM : #tagPropertyMethods12( source ) : source = VM_global_library.vm
[INFO] Velocimacro : added new VM : #tagPropertyRelease( source ) : source = 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 : initialization complete.
[INFO] Velocity successfully started.
[INFO] [cdk:generate {execution: default}]
[WARNING] No component configuration files found -- probably a skin project
[INFO] No components included in taglib my-skin
[ERROR] ResourceManager : unable to find resource 'META-INF/templates/resources-dependencies.vm' in any resource loader.
[ERROR] Error on generate component
org.ajax4jsf.builder.generator.GeneratorException: Unable to find resource 'META-INF/templates/resources-dependencies.vm'
at org.ajax4jsf.builder.generator.ResourcesDependenciesGenerator.createFiles(ResourcesDependenciesGenerator.java:110)
at org.ajax4jsf.builder.mojo.GenerateMojo.execute(GenerateMojo.java:225)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.ajax4jsf.builder.generator.GeneratorException: Unable to find resource 'META-INF/templates/resources-dependencies.vm'
at org.ajax4jsf.builder.mojo.GenerateMojo.getTemplate(GenerateMojo.java:324)
at org.ajax4jsf.builder.mojo.GenerateMojo$1.getTemplate(GenerateMojo.java:169)
at org.ajax4jsf.builder.generator.InnerGenerator.getTemplate(InnerGenerator.java:151)
at org.ajax4jsf.builder.generator.ResourcesDependenciesGenerator.createFiles(ResourcesDependenciesGenerator.java:59)
... 19 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error in component generation
Embedded error: Unable to find resource 'META-INF/templates/resources-dependencies.vm'