Ziegler Stefan ha scritto:
> Hi
>
> I'm trying to build the 2.0.x branch but I get some errors:
>
> [INFO] Installing /home/stefan/Develop/src/gs/2.0.x/maven/pom.xml to
> /home/stefan/.m2/repository/org/geoserver/maven/2.0.3-SNAPSHOT/maven-2.0.3-SNAPSHOT.pom
> [INFO] Installing
> /home/stefan/Develop/src/gs/2.0.x/maven/target/maven-2.0.3-SNAPSHOT-tests.jar
> to
> /home/stefan/.m2/repository/org/geoserver/maven/2.0.3-SNAPSHOT/maven-2.0.3-SNAPSHOT-tests.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Configuration Deployment PlugIn
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [plugin:descriptor {execution: default-descriptor}]
> [WARNING] Using platform encoding (UTF-8 actually) to read mojo metadata,
> i.e. build is platform dependent!
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The API of the mojo scanner is not compatible with this plugin
> version. Please check the plugin dependencies configured in the POM and
> ensure the versions match.
>
> Embedded error:
> org.apache.maven.tools.plugin.scanner.MojoScanner.populatePluginDescriptor(Lorg/apache/maven/tools/plugin/PluginToolsRequest;)V
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The API of the mojo
> scanner is not compatible with this plugin version. Please check the plugin
> dependencies configured in the POM and ensure the versions match.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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.apache.maven.plugin.MojoExecutionException: The API of the
> mojo scanner is not compatible with this plugin version. Please check the
> plugin dependencies configured in the POM and ensure the versions match.
> at
> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:193)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.NoSuchMethodError:
> org.apache.maven.tools.plugin.scanner.MojoScanner.populatePluginDescriptor(Lorg/apache/maven/tools/plugin/PluginToolsRequest;)V
> at
> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:171)
> ... 19 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Sat Jul 17 14:44:37 CEST 2010
> [INFO] Final Memory: 28M/187M
> [INFO]
> ------------------------------------------------------------------------
>
> Any ideas? Thanks.
Odd. I can build without issues using Maven 2.2.1
> mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.5.0_22
Java home: /usr/lib/jvm/jdk1.5.0_22/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux" version: "2.6.31-22-generic" arch: "amd64" Family: "unix"
Which version are you using?
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel