[Geoserver-devel] Build error on trunk: The API of the mojo scanner is not compatible with this plugin version

I was trying to build trunk but...

cd src
svn up
...
mvn -version
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_18
Java home: /usr/lib/jvm/jdk1.6.0_18/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-24-generic" arch: "amd64" Family: "unix"

mvn clean
...
mvn install
...
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoServer
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [jar:test-jar {execution: default}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /usr/var/projects/geoserver/src/pom.xml to /home/lmorandini/.m2/repository/org/geoserver/geoserver/2.1-SNAPSHOT/geoserver-2.1-SNAPSHOT.pom
[INFO] Installing /usr/var/projects/geoserver/src/target/geoserver-2.1-SNAPSHOT-tests.jar to /home/lmorandini/.m2/repository/org/geoserver/geoserver/2.1-SNAPSHOT/geoserver-2.1-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building GeoServer Maven Plugins
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [jar:test-jar {execution: default}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /usr/var/projects/geoserver/src/maven/pom.xml to /home/lmorandini/.m2/repository/org/geoserver/maven/2.1-SNAPSHOT/maven-2.1-SNAPSHOT.pom
[INFO] Installing /usr/var/projects/geoserver/src/maven/target/maven-2.1-SNAPSHOT-tests.jar to /home/lmorandini/.m2/repository/org/geoserver/maven/2.1-SNAPSHOT/maven-2.1-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)

Any clue ?

Regards,

Luca Morandini
[http://www.lucamorandini.it]

On 09/21/2010 07:18 PM, Luca Morandini wrote:

I was trying to build trunk but...

Changing the version of the Maven Ant tools plugin to 2.6 made GeoServer build under Maven 2.2.1: shall I open an issue and provide a patch ?

Regards,

Luca Morandini
[http://www.lucamorandini.it]

On 22/09/2010 08:58, Luca Morandini wrote:

On 09/21/2010 07:18 PM, Luca Morandini wrote:

I was trying to build trunk but...

Changing the version of the Maven Ant tools plugin to 2.6 made GeoServer build
under Maven 2.2.1: shall I open an issue and provide a patch ?

Yup, thanks! :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.