[IPT] IPT Maven build error

"Markus Döring (GBIF)" mdoering at gbif.org
Thu Aug 27 18:49:56 CEST 2009

just quick guys:
we only use maven from the commandline, but run main classes and JUnit  
tests from within eclipse.
I used eclipse 3.3 and 3.4 so far on OSX

to setup an eclipse IPT project I do:

a) svn checkout ...   # into folder workspace/ipt
b) mvn eclipse:eclipse # generates eclipse artifacts but uses the  
M2_REPO variable to locate your local maven repository
c) set the M2_REPO variable via project properties-> java build path - 
 > add variable to point to your local maven repository (on OSX this  
is ~/.m2/repository)
d) mvn -P prod # runs IPT locally with jetty on port 8080, skips  
tests, uses gbifs production registry and a local data dir in the  
webapps folder

if you use no profile at all and just run $mvn jetty IPT should use  
jetty on port 8080.
But because currently not all tests succeed the build fails.

I have to admit that I switched to Java6 during this year, so there  
might be issues with java5.
Although we run IPT using the WAR on gbif servers with java5 currently  
and there is no real reason why java5 should not be supported.
If so, this is not intended and could surely be solved rather simply  
(e.g. SQLException I will look into).

sorry for being brief, but hope this still helps a bit.

On Aug 27, 2009, at 18:27, Paul J. Morris wrote:

> Aaron,
>   I haven't seen any documentation on it.  I did your step 1, then, by
> hand in eclipse, set the source directories as sources, and added the
> jar files in gbif-providertool/target/gbif-ipt-1.0-SNAPSHOT/
> WEB-INF/lib to the build path.  I've had no luck with eclipse-maven
> integration (with eclipse 3.4.0 on debian etch), but I can build a
> working war file for the provider from the command line with
> cd ~/workspace/ipt/gbif-providertool
> export JAVA_HOME=/[...]/jdk1.6.[...]]
> mvn -fn
> or with
> mvn -Dmaven.test.skip=true
> In the current (1463) revision, I'm seeing 11 test failures and 2
> errors, at least one of which looks like a reference to a GBIF network
> resource.
> Running org.gbif.provider.service.impl.RegistryManagerImplTest
> WARN main-HttpBaseManager.succeeded(214) | Http request to
> http://gbrds.gbif.org/registrydev/organisation/null?op=login failed:
> HTTP/1.1 404 Not Found Tests run: 1, Failures: 1, Errors: 0, Skipped:
> 0, Time elapsed: 0.343 sec <<< FAILURE!
> This looks like it is testing a value found in gbif-provider/pom.xml
> <ipt.registry.url>http://gbrds.gbif.org/registrydev</ipt.registry.url>
> Since I do a lot of development not attached to the network, a build
> dependency on a network resource is a problem (likewise another test
> that expects geoserver to be running on localhost:8080), and so I
> haven't gone hunting after the possible causes of the other test
> failures, and am just switching off the tests to build (which works
> allright as I'm working on some experimental filtered push annotation
> integration, and the resulting war file just needs to run).
> Merry Snailing,
> -Paul
> On Wed, 26 Aug 2009 15:45:47 -0700
> Aaron Steele <eightysteele at gmail.com> wrote:
>> Also, do we have documentation for setting up Eclipse for IPT
>> development? Here's how I've set things up in Eclipse so far:
>> 1) SVN checkout of trunk/gbif-providertool
> -- 
> Paul J. Morris
> Biodiversity Informatics Manager
> Harvard University Herbaria/Museum of Comparative Zoölogy
> mole at morris.net  AA3SD  PGP public key available

More information about the IPT mailing list