I noticed this error a while ago, when building Trinidad. This is one of the typical random build issues, which you can't foresee when using maven ,-)
I guess you run with a very recent maven, right? I think using 2.0.4 this will not show up, but this switch causes other issues, since some plugins require 2.0.6 or greater Another option is to "patch" the FileUtils in question on your computer. Find the one that doesn't have this method, and replace the JAR by one that actually has the "right" signature. Yes... this is a very ugly workaround... -Matthias On Tue, Jul 1, 2008 at 9:16 AM, Hazem Saleh <[EMAIL PROTECTED]> wrote: > Hi Team, > > Is there anyone that faces this issue during building Tomahawk ? > > java.lang.NoSuchMethodError: > org.codehaus.plexus.util.FileUtils.getDefaultExclud > es()[Ljava/lang/String; > at > org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSel > ector.setExcludes(IncludeExcludeFileSelector.java:131) > at > org.apache.myfaces.buildtools.maven2.plugin.builder.unpack.AbstractDe > pendencyMojo.unpack(AbstractDependencyMojo.java:251) > at > org.apache.myfaces.buildtools.maven2.plugin.builder.unpack.UnpackMojo > .unpackArtifact(UnpackMojo.java:207) > at > org.apache.myfaces.buildtools.maven2.plugin.builder.unpack.UnpackMojo > .execute(UnpackMojo.java:180) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:443) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi > fecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.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) > > > Thanks! > -- > Hazem Ahmed Saleh Ahmed > http://www.jroller.com/page/HazemBlog -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org
