[postgis-devel] [PostGIS] #1006: Change the scope of postgis-stubs dependency in postgis-jdbc Maven pom to "provided".

PostGIS trac at osgeo.org
Wed Jun 8 01:50:12 PDT 2011


#1006: Change the scope of postgis-stubs dependency in postgis-jdbc Maven pom to
"provided".
-----------------------+----------------------------------------------------
 Reporter:  cheidmann  |       Owner:  pramsey      
     Type:  defect     |      Status:  new          
 Priority:  critical   |   Milestone:  PostGIS 2.0.0
Component:  postgis    |     Version:  1.3.X        
 Keywords:  maven      |  
-----------------------+----------------------------------------------------
 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

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1006>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list