Make sure you have <localRepository/> just inside settings.xml (not in profiles like alpha-2). We recently introduced a backwards compat option, but it doesn't apply to the bootstrap portions of Maven.

What is happening is that you are getting the alpha-2 version of the resources plugin, which uses code in m2 that no longer exists.

Cheers,
Brett

Shane Isbell wrote:

I built the latest maven snapshot. After doing so, running the m2
compile command generates a stack trace (which does not show up under
Maven 1.0 -Alpha 2). As the stack trace indicates, the method
getDefaultExcludes is missing from the generated source code:
/maven-model/target/generated-sources/org/apache/maven/PatternSet.java

Shane
****************
Stacktrace:

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.maven.model.PatternSet.getDefaultExcludes()Ljava/util/List;
       at 
org.apache.maven.plugin.resources.ResourcesMojo.getJarResources(ResourcesMojo.java:134)
       at 
org.apache.maven.plugin.resources.ResourcesMojo.copyResources(ResourcesMojo.java:73)
       at 
org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:65)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:439)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:169)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:143)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:129)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:103)
       at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:256)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:175)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:262)
       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:324)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

       at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

---------------------------------------------------------------------
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