Oliver Loe wrote:

Seems like we have found the problem. Main was dependent on referencing and referencing was depedent on api, but main was also dependent on api, so there were 2 dependencies on api, causing a conflict. Seems like you cannot have more than one dependency over multiple dependencies.

Fortunately I get to call you guys crazy and just tell you to upgrade maven.

I did some experimentation and got the same error as Oliver when using maven 2.0.2 with gt-2.2.x:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
[INFO] [jar:jar]
[INFO] Building jar: c:\java\geotools\2.2.x\plugin\vpf\target\gt2-vpf-2.2-SNAPSHOT.jar
[INFO] [gt2-jar-collector:collect {execution: default}]
[INFO] Copied 1 JAR to parent directory.
[INFO] [install:install]
[INFO] Installing c:\java\geotools\2.2.x\plugin\vpf\target\gt2-vpf-2.2-SNAPSHOT.jar to C:\Documents and Settings\Refractions\.m2\repository\org\geotoo
ls\gt2-vpf\2.2-SNAPSHOT\gt2-vpf-2.2-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building Web Map Server client
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory c:\java\geotools\2.2.x\plugin\wms\target
[INFO] Deleting directory c:\java\geotools\2.2.x\plugin\wms\target\classes
[INFO] Deleting directory c:\java\geotools\2.2.x\plugin\wms\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 57 source files to c:\java\geotools\2.2.x\plugin\wms\target\classes [INFO] ----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Compilation failure
c:\java\geotools\2.2.x\plugin\wms\src\org\geotools\data\ows\CRSEnvelope.java:[19,29] cannot resolve symbol
symbol  : class GeneralDirectPosition
location: package geometry
c:\java\geotools\2.2.x\plugin\wms\src\org\geotools\data\wms\gce\WMSParameterMaker.java:[29,30] package org.geotools.parameter does not exist



With either maven 2.0.3 or 2.0.4-SNAPSHOT everyone is happy:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------ [INFO] Geotools 2 ............................................ SUCCESS [1.203s] [INFO] Maven plugins for Geotools 2 .......................... SUCCESS [0.016s] [INFO] JAR files collector ................................... SUCCESS [2.843s] [INFO] Cross-modules javadoc ................................. SUCCESS [2.110s] [INFO] OpenOffice IDL to Java ................................ SUCCESS [0.641s] [INFO] JJTree and JavaCC compilers plugin .................... SUCCESS [0.922s] [INFO] RMI compiler (rmic) ................................... SUCCESS [0.828s] [INFO] UNO packager for OpenOffice addins .................... SUCCESS [0.703s] [INFO] Geotools modules ...................................... SUCCESS [0.125s] [INFO] Referencing services .................................. SUCCESS [19.641s] [INFO] API interfaces ........................................ SUCCESS [2.515s] [INFO] Grid Coverage module .................................. SUCCESS [12.235s] [INFO] Main module ........................................... SUCCESS [20.047s] [INFO] Render ................................................ SUCCESS [3.109s] [INFO] Legacy module ......................................... SUCCESS [7.391s] [INFO] Geotools extensions ................................... SUCCESS [0.015s] [INFO] Swing widgets ......................................... SUCCESS [7.032s] [INFO] Migrate module ........................................ SUCCESS [11.812s] [INFO] Sample data module .................................... SUCCESS [1.703s] [INFO] SVG support ........................................... SUCCESS [1.906s] [INFO] Geotools plugins ...................................... SUCCESS [0.016s] [INFO] WorldImage datasource module .......................... SUCCESS [6.844s] [INFO] ArcGrid datasource module ............................. SUCCESS [6.953s] [INFO] ArcSDE datasource module .............................. SUCCESS [4.437s] [INFO] DB2 Spatial Extender module ........................... SUCCESS [3.047s] [INFO] EPSG Authority Service using HSQL database ............ SUCCESS [1:06.453s] [INFO] Shapefile module ...................................... SUCCESS [2.907s] [INFO] GML module ............................................ SUCCESS [0.938s] [INFO] Directory module ...................................... SUCCESS [1.375s] [INFO] EPSG Authority Service using MS-Access database ....... SUCCESS [0.765s] [INFO] EPSG Authority Service using PostgreSQL database ...... SUCCESS [0.860s] [INFO] EPSG Authority Service using WKT file ................. SUCCESS [9.031s] [INFO] GeoMedia datastore implementation ..................... SUCCESS [2.391s] [INFO] GeoTIFF grid coverage exchange module ................. SUCCESS [6.437s] [INFO] GTopo30 datasource module ............................. SUCCESS [1.969s] [INFO] HSQL datasource module ................................ SUCCESS [8.500s] [INFO] MapInfo MIF format module ............................. SUCCESS [8.297s] [INFO] MySQL DataStore Implementation ........................ SUCCESS [2.640s] [INFO] Oracle Spatial Module ................................. SUCCESS [4.625s] [INFO] PostGIS module ........................................ SUCCESS [3.750s] [INFO] TIGER/Line 2000 datastore implementation .............. SUCCESS [1.125s] [INFO] VPF Plugin ............................................ SUCCESS [4.344s] [INFO] Web Map Server client ................................. SUCCESS [4.609s] [INFO] WFS client module ..................................... SUCCESS [3.844s] [INFO] Brewer module ......................................... SUCCESS [2.891s] [INFO] Feature Based Graphs and Networks ..................... SUCCESS [6.687s] [INFO] GO-1 implementation ................................... SUCCESS [0.875s] [INFO] Bridges to OpenOffice suite ........................... SUCCESS [1.984s] [INFO] Pickle module ......................................... SUCCESS [2.032s] [INFO] Indexed shapefile module .............................. SUCCESS [38.593s] [INFO] Renderer optimized for shapefiles ..................... SUCCESS [32.375s] [INFO] Validation Processor and Framework .................... SUCCESS [19.032s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL


I reverted revision 19036 and modified the parent pom to use:

maven-clean-plugin 2.1 instead of 2.0
maven-compiler-plugin 2.0.1 instead of 2.0
maven-plugin-plugin 2.1 instead of 2.0
maven-surefire-plugin 2.1.3 instead of 2.1.2 <-- this is essential
(this fixes the bug where maven fails before any test are even run)

So: everyone upgrade to maven 2.0.3 :)

Cheers,
Cory.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to