Centralise version control in parent pom

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jci/trunk@1515394 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compilers/eclipse/pom.xml b/compilers/eclipse/pom.xml
index 800e5b0..7dba43e 100644
--- a/compilers/eclipse/pom.xml
+++ b/compilers/eclipse/pom.xml
@@ -37,6 +37,11 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>org.eclipse.jdt.core.compiler</groupId>
+            <artifactId>ecj</artifactId>
+        </dependency>
+        <!-- test dependencies -->
+        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
@@ -46,14 +51,8 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.eclipse.jdt.core.compiler</groupId>
-            <artifactId>ecj</artifactId>
-            <version>4.2.2</version>
-        </dependency>
     </dependencies>
     <properties>
         <commons.componentid>jci-eclipse</commons.componentid>
diff --git a/compilers/groovy/pom.xml b/compilers/groovy/pom.xml
index 7e95bbc..291c665 100644
--- a/compilers/groovy/pom.xml
+++ b/compilers/groovy/pom.xml
@@ -37,6 +37,11 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>org.codehaus.groovy</groupId>
+            <artifactId>groovy-all</artifactId>
+        </dependency>
+        <!-- test dependencies -->
+        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
@@ -46,14 +51,8 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.codehaus.groovy</groupId>
-            <artifactId>groovy-all</artifactId>
-            <version>1.7.7</version>
-        </dependency>
     </dependencies>
     <properties>
         <commons.componentid>jci-groovy</commons.componentid>
diff --git a/compilers/janino/pom.xml b/compilers/janino/pom.xml
index 478afaa..4949b3a 100644
--- a/compilers/janino/pom.xml
+++ b/compilers/janino/pom.xml
@@ -37,6 +37,11 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>org.codehaus.janino</groupId>
+            <artifactId>janino</artifactId>
+        </dependency>
+        <!-- test dependencies -->
+        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
@@ -46,14 +51,8 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.codehaus.janino</groupId>
-            <artifactId>janino</artifactId>
-            <version>2.6.1</version>
-        </dependency>
     </dependencies>
     <properties>
         <commons.componentid>jci-janino</commons.componentid>
diff --git a/compilers/javac/pom.xml b/compilers/javac/pom.xml
index 5090736..91c4e02 100644
--- a/compilers/javac/pom.xml
+++ b/compilers/javac/pom.xml
@@ -37,6 +37,11 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>org.vafer</groupId>
+            <artifactId>dependency</artifactId>
+        </dependency>
+        <!-- test dependencies -->
+        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
@@ -46,14 +51,8 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.vafer</groupId>
-            <artifactId>dependency</artifactId>
-            <version>0.2</version>
-        </dependency>
     </dependencies>
     <properties>
         <commons.componentid>jci-javac</commons.componentid>
diff --git a/compilers/jsr199/pom.xml b/compilers/jsr199/pom.xml
index bb08974..6054942 100644
--- a/compilers/jsr199/pom.xml
+++ b/compilers/jsr199/pom.xml
@@ -36,6 +36,7 @@
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <!-- test dependencies -->
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
@@ -46,7 +47,6 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/compilers/rhino/pom.xml b/compilers/rhino/pom.xml
index bd53f72..d9e2290 100644
--- a/compilers/rhino/pom.xml
+++ b/compilers/rhino/pom.xml
@@ -37,6 +37,11 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
+            <groupId>rhino</groupId>
+            <artifactId>js</artifactId>
+        </dependency>
+        <!-- test dependencies -->
+        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-core</artifactId>
             <version>${project.version}</version>
@@ -46,14 +51,8 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>rhino</groupId>
-            <artifactId>js</artifactId>
-            <version>1.7R2</version>
-        </dependency>
     </dependencies>
     <properties>
         <commons.componentid>jci-rhino</commons.componentid>
diff --git a/core/pom.xml b/core/pom.xml
index 3a444fa..f50b52a 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -31,12 +31,6 @@
     </description>
     <dependencies>
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>3.8.2</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-jci-fam</artifactId>
             <version>${project.version}</version>
@@ -44,23 +38,25 @@
         <dependency>
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
-            <version>1.4</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.commons</groupId>
-            <artifactId>commons-lang3</artifactId>
-            <version>3.1</version>
-            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
-            <version>1.1.1</version>
         </dependency>
+        <!-- test dependencies -->
         <dependency>
             <groupId>asm</groupId>
             <artifactId>asm</artifactId>
-            <version>3.3</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/examples/pom.xml b/examples/pom.xml
index b3320db..9b7dd2f 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -46,12 +46,10 @@
         <dependency>
             <groupId>commons-cli</groupId>
             <artifactId>commons-cli</artifactId>
-            <version>1.0</version>
         </dependency>
         <dependency>
             <groupId>javax.servlet</groupId>
             <artifactId>servlet-api</artifactId>
-            <version>2.4</version>
         </dependency>
     </dependencies>
     <properties>
diff --git a/fam/pom.xml b/fam/pom.xml
index cdc8267..bc74a53 100644
--- a/fam/pom.xml
+++ b/fam/pom.xml
@@ -31,20 +31,18 @@
     </description>
     <dependencies>
         <dependency>
-            <groupId>commons-io</groupId>
-            <artifactId>commons-io</artifactId>
-            <version>1.4</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
-            <version>1.1.1</version>
         </dependency>
+        <!-- test dependencies -->
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.2</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/pom.xml b/pom.xml
index 311e64b..380911a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -228,4 +228,85 @@
         <commons.jira.pid>12310650</commons.jira.pid>
         <release.tag>1.1-RC1</release.tag>
     </properties>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>1.1.1</version>
+            </dependency>
+            <!-- compiler-eclipse -->
+            <dependency>
+                <groupId>org.eclipse.jdt.core.compiler</groupId>
+                <artifactId>ecj</artifactId>
+                <version>4.2.2</version>
+            </dependency>
+            <!-- compiler-groovy -->
+            <dependency>
+                <groupId>org.codehaus.groovy</groupId>
+                <artifactId>groovy-all</artifactId>
+                <version>1.7.7</version>
+            </dependency>
+            <!-- compiler-janino -->
+            <dependency>
+                <groupId>org.codehaus.janino</groupId>
+                <artifactId>janino</artifactId>
+                <version>2.6.1</version>
+            </dependency>
+            <!-- compiler-javac -->
+            <dependency>
+                <groupId>org.vafer</groupId>
+                <artifactId>dependency</artifactId>
+                <version>0.2</version>
+            </dependency>
+            <!-- compiler-rhino -->
+            <dependency>
+                <groupId>rhino</groupId>
+                <artifactId>js</artifactId>
+                <version>1.7R2</version>
+            </dependency>
+            <!-- core -->
+            <dependency>
+                <groupId>commons-io</groupId>
+                <artifactId>commons-io</artifactId>
+                <version>1.4</version>
+            </dependency>
+            <!-- examples -->
+            <dependency>
+                <groupId>commons-cli</groupId>
+                <artifactId>commons-cli</artifactId>
+                <version>1.0</version>
+            </dependency>
+            <!-- examples -->
+            <dependency>
+                <groupId>javax.servlet</groupId>
+                <artifactId>servlet-api</artifactId>
+                <version>2.4</version>
+            </dependency>
+
+            <!-- test dependencies -->
+            <dependency>
+                <!-- core -->
+                <groupId>asm</groupId>
+                <artifactId>asm</artifactId>
+                <version>3.3</version>
+            </dependency>
+            <dependency>
+                 <!-- core -->
+                <groupId>org.apache.commons</groupId>
+                <artifactId>commons-lang3</artifactId>
+                <version>3.1</version>
+            </dependency>
+            <dependency>
+                <groupId>junit</groupId>
+                <artifactId>junit</artifactId>
+                <version>4.11</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-io</groupId>
+                <artifactId>commons-io</artifactId>
+                <version>1.4</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
 </project>