Hi

Additionally you need some geotools libs (they are not downloaded by
ivy). You can download it from
http://sourceforge.net/projects/geotools/files/

After a lot of trial and error, I came up with the attached patch
that downloads the required libs.

It may be necessary to delete your ivy cache for it to work - I don't
know for sure but I did several times while getting it to work.

This still leaves the splitter dependancy to do...

..Steve
Index: ivy.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ivy.xml	(revision 2308)
+++ ivy.xml	(revision )
@@ -56,5 +56,14 @@
 
 		<dependency org="javax.media.jai" name="com.springsource.javax.media.jai.codec" rev="1.1.3"
 								conf="optional->compile"/>
+		<dependency org="javax.media.jai" name="com.springsource.javax.media.jai.core" rev="1.1.3"
+					conf="optional->default(*),compile(*),master(*)"/>
+
+		<dependency org="org.geotools" name="gt-api" rev="2.7.5" conf="optional->default,compile">
+			<!-- A broken version of this is in the main repo which causes problems. Since we already depend on it, just ignore it here -->
+			<exclude module="jai_core"/>
+		</dependency>
+		<dependency org="org.geotools" name="geotools" rev="2.7.5" conf="optional->default,compile"/>
+
 	</dependencies>
 </ivy-module>
Index: ivysettings.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ivysettings.xml	(revision 2308)
+++ ivysettings.xml	(revision )
@@ -10,6 +10,7 @@
 
 	<resolvers>
 		<chain name="custom" returnFirst="true">
+
 			<resolver ref="default" />
 
 			<url name="mkgmap">
@@ -17,10 +18,21 @@
 				<artifact pattern="${mkgmap.ivy.repo}/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]" />
 			</url>
 
-			<url name="com.springsource.repository.bundles.external">
+		</chain>
+
+		<ibiblio name="geotools-resolver" m2compatible="true" root="http://repo.opengeo.org/"; />
+
+		<url name="spring-resolver" >
-				<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"; />
-				<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"; />
-			</url>
+			<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"; />
+			<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"; />
+		</url>
-		</chain>
+
 	</resolvers>
+
+	<modules>
+		<module organisation="org.geotools" resolver="geotools-resolver"/>
+		<module organisation="java3d" resolver="geotools-resolver"/>
+		<module organisation="javax.media.jai" resolver="spring-resolver"/>
+	</modules>
+
 </ivysettings>
Index: build.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- build.xml	(revision 2308)
+++ build.xml	(revision )
@@ -126,7 +126,11 @@
 	<target name="resolve-macker" depends="init-ivy" description="Downloads macker program dependencies using ivy.">
 		<ivy:retrieve conf="macker" log="download-only"/>
 	</target>
-	<target name="resolve" depends="resolve-compile, resolve-test, resolve-macker" description="Downloads all program dependencies using ivy." />
+	<target name="resolve-optional" depends="init-ivy" description="Downloads optional program dependencies using ivy.">
+		<ivy:retrieve conf="optional" log="download-only"/>
+	</target>
+	<target name="resolve" depends="resolve-compile, resolve-test, resolve-macker, resolve-optional"
+					description="Downloads all program dependencies using ivy." />
 
 	<!-- targets for publishing the project (locally) via ivy -->
 	<target name="publish" depends="dist">
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to