[ http://jira.codehaus.org/browse/MSITE-102?page=comments#action_60898 ]
Graham Triggs commented on MSITE-102: ------------------------------------- I didn't have a plexus-utils in my $MAVEN_HOME/lib (or rather, $MAVEN_HOME2/lib). If I add the linked jar, I get the following message: [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Webapp Archetype [INFO] task-segment: [site] [INFO] ---------------------------------------------------------------------------- [INFO] ---------------------------------------------------------------------------- [ERROR] FATAL ERROR [INFO] ---------------------------------------------------------------------------- [INFO] loader constraints violated when linking org/codehaus/plexus/util/xml/Xpp3Dom class [INFO] ---------------------------------------------------------------------------- [INFO] Trace java.lang.LinkageError: loader constraints violated when linking org/codehaus/plexus/util/xml/Xpp3Do m class at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.buildConfiguration(PluginDescr iptorBuilder.java:302) at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(PluginDescriptorBuilder. java:31) at org.apache.maven.plugin.MavenPluginDiscoverer.createComponentDescriptors(MavenPluginDisco verer.java:49) at org.codehaus.plexus.component.discovery.AbstractComponentDiscoverer.findComponents(Abstra ctComponentDiscoverer.java:78) at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java :717) at org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer.java:779) at org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(DefaultPlexusContainer.ja va:270) at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:280) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.j ava:200) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:165) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor .java:1218) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe cutor.java:1483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLife cycleExecutor.java:979) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLif ecycleExecutor.java:943) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor. java:450) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL ifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE xecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :139) 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:249) 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: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) [INFO] ---------------------------------------------------------------------------- [INFO] Total time: < 1 second [INFO] Finished at: Mon Mar 13 15:25:15 GMT 2006 [INFO] Final Memory: 1M/2M [INFO] ---------------------------------------------------------------------------- > SCM files in src/site directory cause 'mvn site' to fail - need to exclude > files > -------------------------------------------------------------------------------- > > Key: MSITE-102 > URL: http://jira.codehaus.org/browse/MSITE-102 > Project: Maven 2.x Site Plugin > Type: Bug > Versions: 2.0-beta-4 > Environment: Windows XP Professional, Sun JDK 1.5.0_06, Maven 2.0.2 > Reporter: Graham Triggs > Assignee: Emmanuel Venisse > Fix For: 2.0 > > > Our SCM solution (Surround SCM) places .MySCMServerInfo files in each > directory. For a site archetype (and possibly others), issuing a 'mvn site' > after checking the project into SCM causes the error below to be generated. > Need a way of excluding .MySCMServerInfo files from the site generator (or > possibly ideally, restricting the document transformer to recognised file > extensions). > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] BMc Java Development > [INFO] Maven Webapp Archetype > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building BMc Java Development > [INFO] task-segment: [site] > [INFO] > ---------------------------------------------------------------------------- > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextCla > ssLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [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.ResourceMan > agerImpl) > [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.exc > eption.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 allow > ed. > [INFO] Velocimacro : initialization complete. > [INFO] Velocity successfully started. > [INFO] [site:site] > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD FAILURE > [INFO] > ---------------------------------------------------------------------------- > [INFO] Some files are duplicates in the site directory or in the > generated-site directory. > Review the following files for the "English" version: > apt\.MySCMServerInfo > fml\.MySCMServerInfo > fr\.MySCMServerInfo > xdoc\.MySCMServerInfo > [INFO] > ---------------------------------------------------------------------------- > [INFO] For more information, run Maven with the -e switch > [INFO] > ---------------------------------------------------------------------------- > [INFO] Total time: 6 seconds > [INFO] Finished at: Mon Mar 13 14:09:08 GMT 2006 > [INFO] Final Memory: 5M/10M > [INFO] > ---------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira