Ticket #1006 (closed defect: wontfix)

Opened 12 months ago

Last modified 3 months ago

Change the scope of postgis-stubs dependency in postgis-jdbc Maven pom to "provided".

Reported by: cheidmann Owned by: delawen
Priority: critical Milestone: PostGIS 1.3.7
Component: postgis Version: 1.3.X
Keywords: maven Cc:

Description

At the moment org.postgis:postgis-jdbc:1.3.3 includes org.postgis:postgis-stubs:1.3.3 as compile-dependency:

postgis-jdbc-1.3.3.pom:

<dependency>
	<groupId>org.postgis</groupId>
	<artifactId>postgis-stubs</artifactId>
	<version>1.3.3</version>
	<scope>compile</scope>
</dependency>

The "compile" scope is incorrect here, it should be "provided". The "compile" scope means "dependency is required to compile and also needed in the run-time". The "provided" means "dependency is required to compile but we are sure it will be provided in runtime".

Having "compile" instead of "provided" effectively adds the "postgis-stubs" JAR to the classpath of the application which is not correct and leads to problems like explained here:

 http://postgis.refractions.net/pipermail/postgis-users/2005-March/007153.html

Change History

Changed 11 months ago by pramsey

  • milestone changed from PostGIS 2.0.0 to PostGIS 1.3.7

This problem doesn't exist in truck (there is no pom anymore!) I've pushed it backwards

Changed 4 months ago by pramsey

  • owner changed from pramsey to delawen

Changed 3 months ago by delawen

  • status changed from new to closed
  • resolution set to wontfix

Those builds where built with a different pom.xml than the one on the trunk. It shouldn't be a problem now.

Note: See TracTickets for help on using tickets.