Author: craigmcc
Date: Tue Aug  8 21:07:15 2006
New Revision: 429953

URL: http://svn.apache.org/viewvc?rev=429953&view=rev
Log:
Attempt to appease Maven2's "interesting" rules on how it decides which
version to use when there are different declarations for the same
dependency (the rules seem to depend on both how deep each declaration
is from the root of the dependency tree, *and* what your top level
target was so you potentially get different results depending on whether
you started at the framework level or at the shale-apps/shale-xxx
level).  At the cost of some redundant version declarations in the
shale-apps-parent POM (which is far from ideal), the current build now
gives me the versions of all the dependencies I asked for except
commons-logging (I still get 1.0.4 even though I asked for 1.1) and
commons-validator (I still get 1.1.4 even though I asked for 1.3.0).
That will take a bit of further investigation.

SHALE-242

Modified:
    shale/framework/trunk/pom.xml
    shale/framework/trunk/shale-apps/pom.xml

Modified: shale/framework/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/pom.xml?rev=429953&r1=429952&r2=429953&view=diff
==============================================================================
--- shale/framework/trunk/pom.xml (original)
+++ shale/framework/trunk/pom.xml Tue Aug  8 21:07:15 2006
@@ -340,6 +340,10 @@
         <dependencies>
 
             <!-- Declare explicit version numbers for nested dependencies -->
+            <!-- WARNING - for applications, some version number dependencies
+                 are duplicated in the org.apache.shale:shale-apps-parent POM.
+                 As you change version numbers here, be sure to perform any
+                 corresponding changes there. -->
 
             <dependency>
                 <groupId>antlr</groupId>
@@ -356,25 +360,19 @@
             <dependency>
                 <groupId>commons-chain</groupId>
                 <artifactId>commons-chain</artifactId>
-                <version>1.0</version>
-            </dependency>
-
-            <dependency>
-                <groupId>commons-collections</groupId>
-                <artifactId>commons-collections</artifactId>
-                <version>3.0</version>
+                <version>1.1</version>
             </dependency>
 
             <dependency>
                 <groupId>commons-digester</groupId>
                 <artifactId>commons-digester</artifactId>
-                <version>1.6</version>
+                <version>1.7</version>
             </dependency>
 
             <dependency>
                 <groupId>commons-logging</groupId>
                 <artifactId>commons-logging</artifactId>
-                <version>1.0.4</version>
+                <version>1.1</version>
             </dependency>
 
             <dependency>

Modified: shale/framework/trunk/shale-apps/pom.xml
URL: 
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/pom.xml?rev=429953&r1=429952&r2=429953&view=diff
==============================================================================
--- shale/framework/trunk/shale-apps/pom.xml (original)
+++ shale/framework/trunk/shale-apps/pom.xml Tue Aug  8 21:07:15 2006
@@ -50,6 +50,48 @@
         <!-- Document "provided" dependencies to avoid cluttering WAR files -->
     </dependencies>
 
+    <!-- Define dependency version numbers for commmonly used dependencies 
here,
+         so that Maven finds them at a nearer "depth" than those defined in the
+         org.apache.shale:shale-master POM.  WARNING - as you update versions
+         here, be sure you also update them there. -->
+    <dependencyManagement>
+
+        <dependencies>
+
+            <dependency>
+                <groupId>commons-beanutils</groupId>
+                <artifactId>commons-beanutils</artifactId>
+                <version>1.7.0</version>
+            </dependency>
+
+            <dependency>
+                <groupId>commons-chain</groupId>
+                <artifactId>commons-chain</artifactId>
+                <version>1.1</version>
+            </dependency>
+
+            <dependency>
+                <groupId>commons-digester</groupId>
+                <artifactId>commons-digester</artifactId>
+                <version>1.7</version>
+            </dependency>
+
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>1.1</version>
+            </dependency>
+
+            <dependency>
+                <groupId>commons-validator</groupId>
+                <artifactId>commons-validator</artifactId>
+                <version>1.3.0</version>
+            </dependency>
+
+        </dependencies>
+
+    </dependencyManagement>
+
     <!-- TODO:  Move the 'itest' profile and dependencies to this pom when 
MNG-2221 is fixed. -->
 
     <profiles>


Reply via email to