Ticket #1006 (closed defect: wontfix)
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
