Re: [osmosis-dev] Postgis is in repo1.maven.org

2009-12-13 Thread Brett Henderson
On Sat, Dec 12, 2009 at 12:52 AM, Hakan Tandogan ha...@gurkensalat.comwrote:


 If you want to wait a few moments more, you should have a fixed postgis
 jar latest tomorrow.


I did the revert to get the build running because switching backwards and
forwards between jars is straightforward.  Let me know when you're done
though and we can switch it back to your implementation.

The build and all tests are completing successfully at the moment.

On a related note, I also made some classworlds launcher fixes so I think
that is working properly as well.

Brett
___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Postgis is in repo1.maven.org

2009-12-10 Thread Sarah Hoffmann
Hi,

On Wed, Dec 9, 2009 at 2:55 AM, Hakan Tandogan hakan at gurkensalat.comwrote:

 Hi Brett,


 I finally got postgis-1.3.2 synched to repo1.maven.org (creating accounts
 at sonatype, signing artifacts and POMs, etc. etc. etc.)

 I can't check the ant resolve part in ivy till I later tonight, could
 you please recheck that part on your machine as well?


I just tried to build osmosis from a newly checked out version and
this does not seem to work for me. I attach the full error message
below. I actually can't find any archive postgis on repo1.maven.org.
There only seems to be a postgis-main. Am I missing something?

Sarah



[ivy:resolve]   commons-logging#commons-logging;1.0.3 by 
[commons-logging#commons-logging;1.1.1] in [test]
-
|  |modules||   artifacts   |
|   conf   | number| search|dwnlded|evicted|| number|dwnlded|
-
|  compile |   16  |   1   |   0   |   1   ||   14  |   0   |
|  default |   19  |   1   |   0   |   1   ||   17  |   0   |
|   test   |   28  |   2   |   0   |   3   ||   24  |   0   |
-
[ivy:resolve] 
[ivy:resolve] :: problems summary ::
[ivy:resolve]  WARNINGS
[ivy:resolve]   module not found: org.postgis#postgis;1.3.2
[ivy:resolve]    local: tried
[ivy:resolve] /home/sarah/.ivy2/local/org.postgis/postgis/1.3.2/ivys/ivy.xml
[ivy:resolve] -- artifact org.postgis#postgis;1.3.2!postgis.jar:
[ivy:resolve] 
/home/sarah/.ivy2/local/org.postgis/postgis/1.3.2/jars/postgis.jar
[ivy:resolve]    shared: tried
[ivy:resolve] 
/home/mapnik/osmosis/repo/org.postgis/postgis/1.3.2/ivys/ivy.xml
[ivy:resolve] -- artifact org.postgis#postgis;1.3.2!postgis.jar:
[ivy:resolve] 
/home/mapnik/osmosis/repo/org.postgis/postgis/1.3.2/jars/postgis.jar
[ivy:resolve]    public: tried
[ivy:resolve] 
http://repo1.maven.org/maven2/org/postgis/postgis/1.3.2/postgis-1.3.2.pom
[ivy:resolve] -- artifact org.postgis#postgis;1.3.2!postgis.jar:
[ivy:resolve] 
http://repo1.maven.org/maven2/org/postgis/postgis/1.3.2/postgis-1.3.2.jar
[ivy:resolve]   ::
[ivy:resolve]   ::  UNRESOLVED DEPENDENCIES ::
[ivy:resolve]   ::
[ivy:resolve]   :: org.postgis#postgis;1.3.2: not found
[ivy:resolve]   ::
[ivy:resolve] 
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/home/mapnik/osmosis/build-ivy.xml:56: impossible to resolve dependencies:
resolve failed - see output for details



___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev


Re: [osmosis-dev] Postgis is in repo1.maven.org

2009-12-10 Thread Brett Henderson

 [ivy:resolve]
 http://repo1.maven.org/maven2/org/postgis/postgis/1.3.2/postgis-1.3.2.pom
 [ivy:resolve] -- artifact org.postgis#postgis;1.3.2!postgis.jar:
 [ivy:resolve]
 http://repo1.maven.org/maven2/org/postgis/postgis/1.3.2/postgis-1.3.2.jar
 [ivy:resolve]   ::
 [ivy:resolve]   ::  UNRESOLVED DEPENDENCIES ::
 [ivy:resolve]   ::
 [ivy:resolve]   :: org.postgis#postgis;1.3.2: not found
 [ivy:resolve]   ::
 [ivy:resolve]
 [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

 BUILD FAILED
 /home/mapnik/osmosis/build-ivy.xml:56: impossible to resolve dependencies:
resolve failed - see output for details


Okay, the postgis library has a different name on the public repo.

I've tried updating the ivy dependency descriptor as follows (note addition
of -jdbc in the name):
dependency org=org.postgis name=postgis-jdbc rev=1.3.2
conf=compile-default/

This doesn't work for a couple of reasons.
1. It also pulls in a postgis-stubs module.  I don't know what the purpose
of this is but it breaks all PostgreSQL functionality.  Presumably it stubs
out the PGConnection object for some reason, but I don't know why the
postgis-jdbc pom includes it as a transitive dependency.
2. The postgis jdbc extensions aren't registered.  This breaks classes such
as PGGeometry such that any PostGIS functionality breaks (ie. --pgsql-*
tasks).

I can work around problem 1 by excluding postgis-stubs explicitly.  It works
well enough.  I suspect this stubs jar should only be part of test scope or
somesuch but I could be wrong.
dependency org=org.postgis name=postgis-jdbc rev=1.3.2
conf=compile-default
exclude module=postgis-stubs/
/dependency

However it doesn't solve the postgis extensions not being registered.  I've
compared the original postgis.jar with the new postgis-jdbc.jar and there is
one key difference.  The file org/postgresql/driverconfig.properties is
missing in the postgis-jdbc.jar.

Hakan, I assume you produced this jar yourself using your own maven setup?
Are you able to fix it to include this missing file?  Or is there another
dependency I need to include in order to get this file from somewhere else?

When I get a chance I'll revert the delete of postgis jar from the local
repo and use that until the public one works.

Brett
___
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/osmosis-dev