瀏覽代碼

SEC-369: Made spring-jdbc and spring-remoting optional dependencies in core. Removed explicit commons-lang dependency and updated commons logging to 1.1.

Luke Taylor 18 年之前
父節點
當前提交
0288204432
共有 9 個文件被更改,包括 67 次插入17 次删除
  1. 5 0
      adapters/cas/pom.xml
  2. 5 0
      adapters/catalina/pom.xml
  3. 5 0
      adapters/jboss/pom.xml
  4. 5 0
      adapters/jetty/pom.xml
  5. 5 0
      adapters/resin/pom.xml
  6. 11 10
      core/pom.xml
  7. 11 1
      pom.xml
  8. 15 6
      samples/contacts/pom.xml
  9. 5 0
      samples/tutorial/pom.xml

+ 5 - 0
adapters/cas/pom.xml

@@ -22,5 +22,10 @@
         <groupId>org.springframework</groupId>
         <groupId>org.springframework</groupId>
         <artifactId>spring-web</artifactId>
         <artifactId>spring-web</artifactId>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>test</scope>
+    </dependency>
   </dependencies>
   </dependencies>
 </project>
 </project>

+ 5 - 0
adapters/catalina/pom.xml

@@ -13,5 +13,10 @@
       <artifactId>catalina</artifactId>
       <artifactId>catalina</artifactId>
       <version>4.1.9</version>
       <version>4.1.9</version>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>test</scope>
+    </dependency>
   </dependencies>
   </dependencies>
 </project>
 </project>

+ 5 - 0
adapters/jboss/pom.xml

@@ -19,5 +19,10 @@
       <version>2.3</version>
       <version>2.3</version>
       <scope>provided</scope>
       <scope>provided</scope>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>test</scope>
+    </dependency>      
   </dependencies>
   </dependencies>
 </project>
 </project>

+ 5 - 0
adapters/jetty/pom.xml

@@ -13,5 +13,10 @@
       <artifactId>org.mortbay.jetty</artifactId>
       <artifactId>org.mortbay.jetty</artifactId>
       <version>4.2.22</version>
       <version>4.2.22</version>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>test</scope>
+    </dependency>      
   </dependencies>
   </dependencies>
 </project>
 </project>

+ 5 - 0
adapters/resin/pom.xml

@@ -19,5 +19,10 @@
       <version>2.3</version>
       <version>2.3</version>
       <scope>provided</scope>
       <scope>provided</scope>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>test</scope>
+    </dependency>      
   </dependencies>
   </dependencies>
 </project>
 </project>

+ 11 - 10
core/pom.xml

@@ -20,15 +20,21 @@
 			<groupId>org.springframework</groupId>
 			<groupId>org.springframework</groupId>
 			<artifactId>spring-core</artifactId>
 			<artifactId>spring-core</artifactId>
 		</dependency>
 		</dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-context</artifactId>
+        </dependency>
         <dependency>
         <dependency>
 			<groupId>org.springframework</groupId>
 			<groupId>org.springframework</groupId>
 			<artifactId>spring-remoting</artifactId>
 			<artifactId>spring-remoting</artifactId>
-		</dependency>
+            <optional>true</optional>
+        </dependency>
 		<dependency>
 		<dependency>
 			<groupId>org.springframework</groupId>
 			<groupId>org.springframework</groupId>
 			<artifactId>spring-jdbc</artifactId>
 			<artifactId>spring-jdbc</artifactId>
-		</dependency>
-		<dependency>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
 			<groupId>org.springframework</groupId>
 			<groupId>org.springframework</groupId>
 			<artifactId>spring-support</artifactId>
 			<artifactId>spring-support</artifactId>
 			<scope>runtime</scope>
 			<scope>runtime</scope>
@@ -61,15 +67,10 @@
 			<version>2.0.11</version>
 			<version>2.0.11</version>
 			<optional>true</optional>
 			<optional>true</optional>
 		</dependency>
 		</dependency>
-		<dependency>
-			<groupId>commons-lang</groupId>
-			<artifactId>commons-lang</artifactId>
-			<version>2.1</version>
-		</dependency>
 		<dependency>
 		<dependency>
 			<groupId>commons-logging</groupId>
 			<groupId>commons-logging</groupId>
 			<artifactId>commons-logging</artifactId>
 			<artifactId>commons-logging</artifactId>
-			<version>1.0.4</version>
+			<version>1.1</version>
 		</dependency>
 		</dependency>
 		<dependency>
 		<dependency>
 			<groupId>commons-codec</groupId>
 			<groupId>commons-codec</groupId>
@@ -138,7 +139,7 @@
 		<dependency>
 		<dependency>
 			<groupId>log4j</groupId>
 			<groupId>log4j</groupId>
 			<artifactId>log4j</artifactId>
 			<artifactId>log4j</artifactId>
-            <version>1.2.14</version>
+            <version>1.2.12</version>
         </dependency>
         </dependency>
 	</dependencies>
 	</dependencies>
 
 

+ 11 - 1
pom.xml

@@ -12,7 +12,7 @@
         <module>adapters</module>
         <module>adapters</module>
 		<module>portlet</module>
 		<module>portlet</module>
         <module>samples</module>
         <module>samples</module>
-        <module>ntlm</module>        
+        <module>ntlm</module>
     </modules>
     </modules>
 
 
 	<description>Acegi Security System for Spring</description>
 	<description>Acegi Security System for Spring</description>
@@ -560,6 +560,16 @@
 				<version>${spring.version}</version>
 				<version>${spring.version}</version>
 			</dependency>
 			</dependency>
 			<dependency>
 			<dependency>
+				<groupId>org.springframework</groupId>
+				<artifactId>spring-aop</artifactId>
+				<version>${spring.version}</version>
+			</dependency>
+            <dependency>
+				<groupId>org.springframework</groupId>
+				<artifactId>spring-context</artifactId>
+				<version>${spring.version}</version>
+			</dependency>
+            <dependency>
 				<groupId>log4j</groupId>
 				<groupId>log4j</groupId>
 				<artifactId>log4j</artifactId>
 				<artifactId>log4j</artifactId>
 				<version>1.2.9</version>
 				<version>1.2.9</version>

+ 15 - 6
samples/contacts/pom.xml

@@ -24,6 +24,21 @@
         <version>${spring.version}</version>
         <version>${spring.version}</version>
         <scope>compile</scope>
         <scope>compile</scope>
     </dependency>
     </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-jdbc</artifactId>
+        <scope>compile</scope>
+    </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-aop</artifactId>
+        <scope>runtime</scope>
+    </dependency>
+    <dependency>
+        <groupId>org.springframework</groupId>
+        <artifactId>spring-remoting</artifactId>
+        <scope>runtime</scope>
+    </dependency>
     <dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
       <artifactId>servlet-api</artifactId>
@@ -60,12 +75,6 @@
       <version>1.0.6</version>
       <version>1.0.6</version>
       <scope>runtime</scope>
       <scope>runtime</scope>
     </dependency>
     </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-ldap</artifactId>
-      <version>1.1.2</version>
-      <scope>runtime</scope>
-    </dependency>
     <dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <groupId>org.springframework</groupId>
       <artifactId>spring-mock</artifactId>
       <artifactId>spring-mock</artifactId>

+ 5 - 0
samples/tutorial/pom.xml

@@ -20,6 +20,11 @@
             <groupId>org.springframework</groupId>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
             <artifactId>spring-web</artifactId>
         </dependency>
         </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-jdbc</artifactId>
+            <scope>runtime</scope>
+        </dependency>
         <dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
             <groupId>javax.servlet</groupId>
             <artifactId>jstl</artifactId>
             <artifactId>jstl</artifactId>