fixing multi modules references in pom

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/digester/trunk@1243081 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/annotations-processor/pom.xml b/annotations-processor/pom.xml
new file mode 100644
index 0000000..7c19479
--- /dev/null
+++ b/annotations-processor/pom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+  <artifactId>commons-digester3-ap</artifactId>
+  <packaging>jar</packaging>
+
+  <name>Apache Commons Digester :: Annotations Processor</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>commons-digester3</artifactId>
+      <version>${project.parent.version}</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.10</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>../</directory>
+        <targetPath>META-INF</targetPath>
+        <includes>
+          <include>NOTICE.txt</include>
+          <include>LICENSE.txt</include>
+        </includes>
+      </resource>
+      <resource>
+        <directory>${basedir}/src/main/resources</directory>
+        <filtering>false</filtering>
+        <includes>
+          <include>**/*.dtd</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+
+</project>
diff --git a/core/pom.xml b/core/pom.xml
index 4b0b73b..9e4af05 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -23,7 +23,7 @@
 
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3</artifactId>
+    <artifactId>commons-digester3-parent</artifactId>
     <version>3.3-SNAPSHOT</version>
     <relativePath>../</relativePath>
   </parent>
@@ -31,7 +31,7 @@
   <artifactId>commons-digester3</artifactId>
   <packaging>jar</packaging>
 
-  <name>Commons Digester :: Core</name>
+  <name>Apache Commons Digester :: Core</name>
 
   <dependencies>
     <dependency>
diff --git a/examples/annotations/atom/pom.xml b/examples/annotations/atom/pom.xml
index f324f2a..78c1aff 100644
--- a/examples/annotations/atom/pom.xml
+++ b/examples/annotations/atom/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-annotations-atom</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: Annotations :: Atom</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
+
 </project>
diff --git a/examples/api/addressbook/pom.xml b/examples/api/addressbook/pom.xml
index 7a7c557..2152b5f 100644
--- a/examples/api/addressbook/pom.xml
+++ b/examples/api/addressbook/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-addressbook</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: API :: Address Book</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+</project>
diff --git a/examples/api/catalog/pom.xml b/examples/api/catalog/pom.xml
index 0eda8cc..b4bfe21 100644
--- a/examples/api/catalog/pom.xml
+++ b/examples/api/catalog/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-catalog</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: API :: Catalog</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+</project>
diff --git a/examples/api/dbinsert/pom.xml b/examples/api/dbinsert/pom.xml
index 88c6d27..cf7e664 100644
--- a/examples/api/dbinsert/pom.xml
+++ b/examples/api/dbinsert/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-dbinsert</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: API :: DB Insert</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+</project>
diff --git a/examples/api/document-markup/pom.xml b/examples/api/document-markup/pom.xml
index 3907fdb..e32b391 100644
--- a/examples/api/document-markup/pom.xml
+++ b/examples/api/document-markup/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-document-markup</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: API :: Document Markup</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+</project>
diff --git a/examples/edsl/atom/pom.xml b/examples/edsl/atom/pom.xml
index 246387e..e0f0f27 100644
--- a/examples/edsl/atom/pom.xml
+++ b/examples/edsl/atom/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-edsl-atom</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: EDSL :: Atom</name>
+
   <build>
     <plugins>
       <plugin>
@@ -41,4 +45,5 @@
       </plugin>
     </plugins>
   </build>
+
 </project>
diff --git a/examples/plugins/pipeline/pom.xml b/examples/plugins/pipeline/pom.xml
index e4560c4..bb30b44 100644
--- a/examples/plugins/pipeline/pom.xml
+++ b/examples/plugins/pipeline/pom.xml
@@ -17,15 +17,18 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-plugins-pipeline</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: Plugins :: Pipeline</name>
 
   <profiles>
diff --git a/examples/pom.xml b/examples/pom.xml
index 12386d7..245916f 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -21,30 +21,17 @@
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
-  <groupId>org.apache.commons</groupId>
+  <parent>
+    <groupId>org.apache.commons</groupId>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
   <artifactId>commons-digester3-samples</artifactId>
-  <version>3.2</version>
   <packaging>pom</packaging>
 
   <name>Commons Digester :: Examples</name>
-  <description>
-    The Digester package lets you configure an XML to Java object mapping module
-    which triggers certain actions called rules whenever a particular 
-    pattern of nested XML elements is recognized.
-  </description>
-  <url>http://commons.apache.org/digester/</url>
-  <inceptionYear>2001</inceptionYear>
-  <organization>
-    <name>The Apache Software Foundation</name>
-    <url>http://www.apache.org/</url>
-  </organization>
-  <licenses>
-    <license>
-      <name>The Apache Software License, Version 2.0</name>
-      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-      <distribution>repo</distribution>
-    </license>
-  </licenses>
 
   <modules>
     <module>annotations/atom</module>
@@ -58,19 +45,11 @@
     <module>xmlrules/addressbook</module>
   </modules>
 
-  <properties>
-    <maven.compile.source>1.5</maven.compile.source>
-    <maven.compile.target>1.5</maven.compile.target>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
-    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-  </properties>
-
   <dependencies>
     <dependency>
-      <groupId>org.apache.commons</groupId>
+      <groupId>${project.groupId}</groupId>
       <artifactId>commons-digester3</artifactId>
-      <version>${project.version}</version>
+      <version>${project.parent.version}</version>
       <scope>compile</scope>
     </dependency>
   </dependencies>
diff --git a/examples/rss/pom.xml b/examples/rss/pom.xml
index 9529ddb..4862bdf 100644
--- a/examples/rss/pom.xml
+++ b/examples/rss/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-rss</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: RSS</name>
+
   <build>
     <plugins>
       <plugin>
@@ -38,4 +42,5 @@
       </plugin>
     </plugins>
   </build>
+
 </project>
diff --git a/examples/xmlrules/addressbook/pom.xml b/examples/xmlrules/addressbook/pom.xml
index bc33dd5..0f79773 100644
--- a/examples/xmlrules/addressbook/pom.xml
+++ b/examples/xmlrules/addressbook/pom.xml
@@ -17,16 +17,20 @@
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
   <parent>
     <groupId>org.apache.commons</groupId>
-    <artifactId>commons-digester3-samples</artifactId>
-    <version>3.0-SNAPSHOT</version>
-    <relativePath>../../</relativePath>
+    <artifactId>commons-digester3-parent</artifactId>
+    <version>3.3-SNAPSHOT</version>
+    <relativePath>../../../</relativePath>
   </parent>
-  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>commons-digester3-samples-xmlrules-addressbook</artifactId>
   <packaging>jar</packaging>
+
   <name>Apache Commons Digester :: Examples :: XML Rules :: Address Book</name>
+
   <build>
     <plugins>
       <plugin>
@@ -42,4 +46,5 @@
       </plugin>
     </plugins>
   </build>
+
 </project>
diff --git a/pom.xml b/pom.xml
index b5f434f..7f0db48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,7 +160,15 @@
   <modules>
     <module>core</module>
     <module>annotations-processor</module>
-    <module>examples</module>
+    <module>examples/annotations/atom</module>
+    <module>examples/api/addressbook</module>
+    <module>examples/api/catalog</module>
+    <module>examples/api/dbinsert</module>
+    <module>examples/api/document-markup</module>
+    <module>examples/edsl/atom</module>
+    <module>examples/plugins/pipeline</module>
+    <module>examples/rss</module>
+    <module>examples/xmlrules/addressbook</module>
   </modules>
 
   <properties>
@@ -176,49 +184,7 @@
     <commons.jira.pid>12310471</commons.jira.pid>
   </properties>
 
-  <dependencies>
-    <dependency>
-      <groupId>cglib</groupId>
-      <artifactId>cglib</artifactId>
-      <version>2.2.2</version>
-    </dependency>
-    <dependency>
-      <groupId>commons-beanutils</groupId>
-      <artifactId>commons-beanutils</artifactId>
-      <version>1.8.3</version>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <version>1.1.1</version>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.10</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
   <build>
-    <resources>
-      <resource>
-        <directory>.</directory>
-        <targetPath>META-INF</targetPath>
-        <includes>
-          <include>NOTICE.txt</include>
-          <include>LICENSE.txt</include>
-        </includes>
-      </resource>
-      <resource>
-        <directory>src/main/resources</directory>
-        <filtering>false</filtering>
-        <includes>
-          <include>**/*.dtd</include>
-        </includes>
-      </resource>
-    </resources>
-
     <plugins>
       <plugin>
         <!--
@@ -430,6 +396,22 @@
             </lifecycleMappingMetadata>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>exec-maven-plugin</artifactId>
+          <version>1.1</version>
+          <executions>
+            <execution>
+              <phase>verify</phase>
+              <goals>
+                <goal>java</goal>
+              </goals>
+              <configuration>
+                <classpathScope>compile</classpathScope>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>