Details
Description
Add support for building GeoServer with Maven 3.
Build currently fails in maven/config with:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.7:descriptor (default-descriptor) on project config: 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. org.apache.maven.tools.plugin.scanner.MojoScanner.populatePluginDescriptor(Lorg/apache/maven/tools/plugin/PluginToolsRequest;)V -> [Help 1]
Issue Links
Activity
Ben Caradoc-Davies
made changes -
Justin Deoliveira
made changes -
| Attachment | GEOS-4652.patch [ 55789 ] |
Ben Caradoc-Davies
made changes -
Ben Caradoc-Davies
made changes -
Ben Caradoc-Davies
made changes -
| Attachment | GEOS-4652.complete-including-xercesImpl-and-wms.patch [ 56150 ] |
Ben Caradoc-Davies
made changes -
| Attachment | GEOS-4652.complete.patch [ 56160 ] |
Ben Caradoc-Davies
made changes -
| Attachment |
|
Ben Caradoc-Davies
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Ben Caradoc-Davies
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Justin Deoliveira
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Justin Deoliveira
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Justin Deoliveira
made changes -
| Fix Version/s | 2.2-beta1 [ 18401 ] | |
| Fix Version/s | 2.2.x [ 17106 ] |
Andrea Aime
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
-------- Original Message --------
Subject: Re: [Geoserver-devel] [ExternalEmail] Re: [Geotools-devel] Proposal to update to Maven 3
Date: Thu, 30 Jun 2011 10:21:50 +0800
From: Ben Caradoc-Davies
To: Justin Deoliveira
CC: geoserver-devel@lists.sourceforge.net, Andrea Aime
Justin,
with your patch, maven 3 build has a unit test failure in ows:
testHandleServiceExceptionCauses(org.geoserver.ows.DefaultServiceExceptionHandlerTest)
-------------------------------------------------------------------------------
Test set: org.geoserver.ows.DefaultServiceExceptionHandlerTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.274
sec <<< FAILURE!
testHandleServiceExceptionCauses(org.geoserver.ows.DefaultServiceExceptionHandlerTest)
Time elapsed: 0.223 sec <<< FAILURE!
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at
org.geoserver.ows.DefaultServiceExceptionHandlerTest.testHandleServiceExceptionCauses(DefaultServiceExceptionHandlerTest.java:102)
Kind regards,
Ben.
On 29/06/11 13:20, Justin Deoliveira wrote:
So if the other devs could give the patch a spin that would be great. Regardless it should be a decent starting point.
> Yeah, the geoserver build uses a custom plugin to copy over a data directory into the webapp. Its pretty outdated as it seems. A full blown plug-in is not really need for that, and actually it just complicates the build. Some inline ant with the antrun plugin in the web/app pom should do the same and be easier to maintain. So I attached a patch to
GEOS-4652that does just that.>
> With that and a few other minor tweaks I was able to build geoserver with maven 3. However I did not not run with tests, getting late here
>
> -Justin
>
>