Hi Eric

The idea of parent is to have some basic/common definition in it, and
let the childs heritate from these (a bit like java classes).
This is the way maven works, and james simply uses this feature.

I agree.

For example, all imap modules have a parent which is located in
imap/parent.
This imap/parent has it-self a parent which is the james-project
(defined somewhere else in svn trunk - automatically fetched from the
repositories when you build james).
The <relativePath>./parent/pom.xml</relativePath> is simply there to
help for special case (system does not have access to the network
repositories, or you build partially the imap project,...).

But where's the benefit of having in fact almost 2 'parent' poms? If you put the basic/common definitions from imap/parent/pom.xml imap/pom.xml and reference the imap/pom.xml as parent in the submodules you can get rid of the imap/parent, still have a parent pom (imap/pom.xml) containing the definitions?


It's a bit complicated, but I think the way maven is implemented at
james is not a bad way. Of course, if you've got change proposal, we are
always interested to talk about :)

See and talk about attachement :-)


For the site generation, simply invoke "mvn site" (or "mvn clean site")
in your imap root folder. The resulting site should be found under
target/site/
Do you receive an error invoking "mvn site" ?

I expressed not very clear, see other mail.

Kind regards
Felix


Tks,
- Eric

PS: The mailing list is moderated, this is why you didn't t see the mail
directly.


On 24/02/2011 07:33, Felix Knecht wrote:
Sorry for reposting, but I thought it got lost somewhere on the way as
I haven't seen it after hours ...

On 02/24/2011 06:53 AM, Felix Knecht wrote:
Hi all

Trying to get the module sites generated I'm getting a little bit
confused about the usage of pom files.
I can't see the need of the module 'parent' containing only a pom.xml
with type <packaging>pom</packaging>. This parent/pom.xml does various
definitions for reporting, building, dependencies.
Then we have the ./pom.xml, also as <packaging>pom</packaging>. This
pom.xml has a strange cycling dependency to it's parent pom - once as
<parent> and once as <module>. In fact you only get the up to date
parent because of the <relativePath> which can be indicated (and BTW not
liked by maven 3.x). Without using the relativePath the parent will be
always one step behind actual changes - actual parent pom will be as
module. Furthermore definitions in ./pom.xml mostly exists already in
the parent/pom.xml.

Last but not least the site generation seems to work (for me) only when
deploying the site, otherwise I get strange results. I guess this is
because when deploying the generated site of the parent gets overridden
with the site generated from ./pom.xml.

IMO it would make sense to merge these to poms (both of
<packaging>pom</packaging>) and have just one ./pom.xml and skip the
./parent completely.

Can please somebody throw some light on my confusion?

Thanks and kind regards
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Index: processor/pom.xml
===================================================================
--- processor/pom.xml   (revision 1073730)
+++ processor/pom.xml   (working copy)
@@ -19,10 +19,10 @@
 -->
 <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";>
   <parent>
-    <artifactId>apache-james-imap-parent</artifactId>
+    <artifactId>apache-james-imap</artifactId>
     <groupId>org.apache.james</groupId>
     <version>0.2-M2-SNAPSHOT</version>
-    <relativePath>../parent/pom.xml</relativePath>
+    <relativePath>../pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.james</groupId>
Index: message/pom.xml
===================================================================
--- message/pom.xml     (revision 1073730)
+++ message/pom.xml     (working copy)
@@ -19,10 +19,10 @@
 -->
 <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";>
   <parent>
-    <artifactId>apache-james-imap-parent</artifactId>
+    <artifactId>apache-james-imap</artifactId>
     <groupId>org.apache.james</groupId>
     <version>0.2-M2-SNAPSHOT</version>
-    <relativePath>../parent/pom.xml</relativePath>
+    <relativePath>../pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.james</groupId>
Index: api/pom.xml
===================================================================
--- api/pom.xml (revision 1073730)
+++ api/pom.xml (working copy)
@@ -19,10 +19,10 @@
 -->
 <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";>
   <parent>
-    <artifactId>apache-james-imap-parent</artifactId>
+    <artifactId>apache-james-imap</artifactId>
     <groupId>org.apache.james</groupId>
     <version>0.2-M2-SNAPSHOT</version>
-    <relativePath>../parent/pom.xml</relativePath>
+    <relativePath>../pom.xml</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.james</groupId>
@@ -50,4 +50,12 @@
     </dependency>
 
   </dependencies>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
 </project>
Index: parent/pom.xml
===================================================================
--- parent/pom.xml      (revision 1073730)
+++ parent/pom.xml      (working copy)
@@ -1,420 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-15"?>
-<!--
-  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";>
-  <parent>
-    <artifactId>james-project</artifactId>
-    <groupId>org.apache.james</groupId>
-    <version>1.5</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.james</groupId>
-  <artifactId>apache-james-imap-parent</artifactId>
-  <name>Apache James IMAP Parent pom</name>
-  <version>0.2-M2-SNAPSHOT</version>
-  <description>The Apache James Imap Protocol</description>
-  <url>http://james.apache.org/imap/</url>
-  <inceptionYear>2002</inceptionYear>
-  <packaging>pom</packaging>
-
-  <scm>
-    
<connection>scm:svn:http://svn.apache.org/repos/asf/james/imap/trunk</connection>
-    
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/james/imap/trunk</developerConnection>
-    
<url>http://svn.apache.org/viewcvs.cgi/james/imap/trunk?root=Apache-SVN</url>
-  </scm>
-
-<repositories>
-    <!-- needed for javamail -->
-    <repository>
-      <id>maven2-repository.dev.java.net</id>
-      <name>Java.net Repository for Maven</name>
-      <url>http://download.java.net/maven/2/</url>
-      <layout>default</layout>
-    </repository>
-    
-  </repositories>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <optimize>true</optimize>
-          <source>${target.jdk}</source>
-          <target>${target.jdk}</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>jar</goal>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <useDefaultManifestFile>true</useDefaultManifestFile>
-          <archive>
-            <manifest>
-              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
-              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
-            </manifest>
-          </archive>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptorRefs>
-            <descriptorRef>bin</descriptorRef>
-            <descriptorRef>src</descriptorRef>
-          </descriptorRefs>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>bundle-manifest</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>manifest</goal>
-            </goals>
-          </execution>
-        </executions>
-        <extensions>true</extensions>
-        <configuration>
-          <instructions>
-            <Export-Package>org.apache.james.imap.*</Export-Package>
-            <Embed-Dependency>*;scope=runtime</Embed-Dependency>
-          </instructions>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-  <reporting>
-    <plugins>
-     <plugin>
-       <groupId>org.apache.maven.plugins</groupId>
-       <artifactId>maven-surefire-plugin</artifactId>
-       <configuration>
-         <forkMode>pertest</forkMode>
-         <argLine>-Xms256m -Xmx512m</argLine> 
-         <testFailureIgnore>false</testFailureIgnore>
-         <skip>false</skip>
-         <includes>
-           <include>**/*Test.java</include>
-         </includes>
-       </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-jxr-plugin</artifactId>
-        <configuration>
-          <aggregate>true</aggregate>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>rat-maven-plugin</artifactId>
-        <version>1.0-alpha-3</version>
-        <configuration>
-          <excludes>
-            <exclude>NOTICE.*</exclude>
-            <exclude>LICENSE.*</exclude>
-            <!-- Generated by Maven -->
-            <exclude>release.properties</exclude>
-            <exclude>dist/**/*</exclude>
-            <!-- Eclipse -->
-            <exclude>**/.*</exclude>
-            <exclude>.*/**/*</exclude>
-            
-          </excludes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-pmd-plugin</artifactId>
-        <configuration>
-          <aggregate>true</aggregate>
-          <targetjdk>${target.jdk}</targetjdk>
-          <rulesets>
-            <ruleset>/rulesets/basic.xml</ruleset>
-            <ruleset>/rulesets/unusedcode.xml</ruleset>
-            <ruleset>/rulesets/imports.xml</ruleset>
-          </rulesets>
-          <format>xml</format>
-          <linkXref>true</linkXref>
-          <sourceEncoding>utf-8</sourceEncoding>
-          <minimumTokens>100</minimumTokens>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-site-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>findbugs-maven-plugin</artifactId>
-        <version>2.0.1</version>
-      </plugin>
-    </plugins>
-  </reporting>
-  
-  <distributionManagement>
-    <site>
-      <id>imap-website</id>
-      <url>scp://people.apache.org/www/james.apache.org/imap</url>
-    </site>
-  </distributionManagement>
-  
-  <dependencyManagement>
-    <dependencies>
-      <!--
-        START Modules
-      -->
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-mailbox-api</artifactId>
-        <version>0.2-M2-SNAPSHOT</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-mailbox-api</artifactId>
-        <version>${project.version}</version>
-        <type>test-jar</type>
-        <scope>test</scope>
-      </dependency>
-    
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-imap-message</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-     
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-imap-processor</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-     
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-imap-api</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-james-imap-api</artifactId>
-        <version>${project.version}</version>
-        <type>test-jar</type>
-        <scope>test</scope>
-      </dependency>
-      <!--
-        END Modules
-      -->
-
-      <!--
-        START Mail
-      -->
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-mime4j</artifactId>
-        <version>${version.apache-mime4j}</version>
-      </dependency>
-      <!-- Declare javamail as provided to be able to easily switch -->
-      <!-- to different implementations (Geronimo) -->
-      <dependency>
-        <groupId>javax.mail</groupId>
-        <artifactId>mail</artifactId>
-        <version>${version.javax.mail}</version>
-      </dependency>
-      <dependency>
-        <groupId>javax.activation</groupId>
-        <artifactId>activation</artifactId>
-        <version>${version.activation}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.geronimo.specs</groupId>
-        <artifactId>geronimo-activation_1.1_spec</artifactId>
-        <version>1.0.2</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.geronimo.javamail</groupId>
-        <artifactId>geronimo-javamail_1.4_mail</artifactId>
-        <version>1.6</version>
-      </dependency>
-      <!--
-        END Mail
-      -->
-
-      <!--
-        Start James Mailet
-      -->
-      <dependency>
-        <groupId>org.apache.james</groupId>
-        <artifactId>apache-mailet</artifactId>
-        <version>2.4</version>
-        <exclusions>
-          <exclusion>
-            <groupId>javax.mail</groupId>
-            <artifactId>mail</artifactId>
-          </exclusion>
-        </exclusions>
-      </dependency>
-
-      <!--
-        Start Commons
-      -->
-      <dependency>
-        <groupId>commons-collections</groupId>
-        <artifactId>commons-collections</artifactId>
-        <version>${version.commons-collections}</version>
-      </dependency>
-      <dependency>
-        <groupId>commons-logging</groupId>
-        <artifactId>commons-logging</artifactId>
-        <version>${version.commons-logging}</version>
-        <exclusions>
-          <exclusion>
-            <artifactId>logkit</artifactId>
-            <groupId>logkit</groupId>
-          </exclusion>
-          <exclusion>
-            <artifactId>avalon-framework</artifactId>
-            <groupId>avalon-framework</groupId>
-          </exclusion>
-          <exclusion>
-            <artifactId>log4j</artifactId>
-            <groupId>log4j</groupId>
-          </exclusion>
-          <exclusion>
-            <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-          </exclusion>
-        </exclusions>
-      </dependency>
-      <dependency>
-        <groupId>commons-lang</groupId>
-        <artifactId>commons-lang</artifactId>
-        <version>${version.commons-lang}</version>
-      </dependency>
-     
-     
-      <dependency>
-        <groupId>commons-beanutils</groupId>
-        <artifactId>commons-beanutils</artifactId>
-        <version>1.7.0</version>     
-      </dependency>
-      <!-- 
-        END Commons
-      -->
-      
-      <!--
-        START Testing
-      -->
-      <!--
-        Use to build protocol tester.
-        Convert this to testing once MPT has been released. 
-      -->
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>4.8.1</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit-dep</artifactId>
-        <version>4.4</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.jmock</groupId>
-        <artifactId>jmock</artifactId>
-        <version>${version.jmock}</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.jmock</groupId>
-        <artifactId>jmock-junit4</artifactId>
-        <version>${version.jmock}</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>com.h2database</groupId>
-        <artifactId>h2</artifactId>
-        <version>1.2.134</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.derby</groupId>
-        <artifactId>derby</artifactId>
-        <version>10.2.2.0</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>commons-io</groupId>
-        <artifactId>commons-io</artifactId>
-        <version>1.4</version>
-      </dependency>
-      
-
-      <!--
-        END Testing
-      -->
-
-      
-    </dependencies>
-  </dependencyManagement>
-
-  <profiles>
-    <profile>
-      <id>geronimo</id>
-      <properties>
-                   
<javax.mail.groupId>org.apache.geronimo.javamail</javax.mail.groupId>
-                   
<javax.mail.artifactId>geronimo-javamail_1.4_mail</javax.mail.artifactId>
-                   
<javax.activation.groupId>org.apache.geronimo.specs</javax.activation.groupId>
-                   
<javax.activation.artifactId>geronimo-activation_1.1_spec</javax.activation.artifactId>
-            <version.javax.mail>1.6</version.javax.mail>
-            <version.activation>1.0.2</version.activation>
-      </properties>
-    </profile>
-  </profiles>
-  <properties>
-    <javax.activation.groupId>javax.activation</javax.activation.groupId>
-    <javax.activation.artifactId>activation</javax.activation.artifactId>
-    <javax.mail.groupId>javax.mail</javax.mail.groupId>
-    <javax.mail.artifactId>mail</javax.mail.artifactId>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <version.james-server>3.0-SNAPSHOT</version.james-server>
-    <version.openjpa>2.0.1</version.openjpa>
-    <version.javax.persistence>1.0.2</version.javax.persistence>
-    <version.commons-lang>2.4</version.commons-lang>
-    <version.commons-collections>3.2.1</version.commons-collections>
-    <version.commons-logging>1.1</version.commons-logging>
-    <version.apache-mime4j>0.6</version.apache-mime4j>
-    <version.javax.mail>1.4.3</version.javax.mail>
-    <version.activation>1.1.1</version.activation>
-    <version.torque>3.3</version.torque>
-    <version.jmock>2.5.1</version.jmock>
-    <target.jdk>1.5</target.jdk>
-  </properties>
-
-</project>
Index: pom.xml
===================================================================
--- pom.xml     (revision 1073730)
+++ pom.xml     (working copy)
@@ -19,10 +19,9 @@
 -->
 <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";>
   <parent>
+    <artifactId>james-project</artifactId>
     <groupId>org.apache.james</groupId>
-    <artifactId>apache-james-imap-parent</artifactId>
-    <version>0.2-M2-SNAPSHOT</version>
-    <relativePath>./parent/pom.xml</relativePath>
+    <version>1.5</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.james</groupId>
@@ -34,7 +33,6 @@
   <inceptionYear>2002</inceptionYear>
   <packaging>pom</packaging>
   <modules>
-    <module>parent</module>
     <module>api</module>
     <module>message</module>
     <module>processor</module>
@@ -50,14 +48,352 @@
     
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/james/imap/trunk</developerConnection>
     
<url>http://svn.apache.org/viewcvs.cgi/james/imap/trunk?root=Apache-SVN</url>
   </scm>
+  <repositories>
+    <!-- needed for javamail -->
+    <repository>
+      <id>maven2-repository.dev.java.net</id>
+      <name>Java.net Repository for Maven</name>
+      <url>http://download.java.net/maven/2/</url>
+      <layout>default</layout>
+    </repository>
+  </repositories>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <optimize>true</optimize>
+          <source>${target.jdk}</source>
+          <target>${target.jdk}</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>jar</goal>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <useDefaultManifestFile>true</useDefaultManifestFile>
+          <archive>
+            <manifest>
+              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptorRefs>
+            <descriptorRef>bin</descriptorRef>
+            <descriptorRef>src</descriptorRef>
+          </descriptorRefs>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Export-Package>org.apache.james.imap.*</Export-Package>
+            <Embed-Dependency>*;scope=runtime</Embed-Dependency>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <reporting>
+    <plugins>
+     <plugin>
+       <groupId>org.apache.maven.plugins</groupId>
+       <artifactId>maven-surefire-plugin</artifactId>
+       <configuration>
+         <forkMode>pertest</forkMode>
+         <argLine>-Xms256m -Xmx512m</argLine> 
+         <testFailureIgnore>false</testFailureIgnore>
+         <skip>false</skip>
+         <includes>
+           <include>**/*Test.java</include>
+         </includes>
+       </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-jxr-plugin</artifactId>
+        <configuration>
+          <aggregate>true</aggregate>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>rat-maven-plugin</artifactId>
+        <version>1.0-alpha-3</version>
+        <configuration>
+          <excludes>
+            <exclude>NOTICE.*</exclude>
+            <exclude>LICENSE.*</exclude>
+            <!-- Generated by Maven -->
+            <exclude>release.properties</exclude>
+            <exclude>dist/**/*</exclude>
+            <!-- Eclipse -->
+            <exclude>**/.*</exclude>
+            <exclude>.*/**/*</exclude>
+            
+          </excludes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-pmd-plugin</artifactId>
+        <configuration>
+          <aggregate>true</aggregate>
+          <targetjdk>${target.jdk}</targetjdk>
+          <rulesets>
+            <ruleset>/rulesets/basic.xml</ruleset>
+            <ruleset>/rulesets/unusedcode.xml</ruleset>
+            <ruleset>/rulesets/imports.xml</ruleset>
+          </rulesets>
+          <format>xml</format>
+          <linkXref>true</linkXref>
+          <sourceEncoding>utf-8</sourceEncoding>
+          <minimumTokens>100</minimumTokens>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>findbugs-maven-plugin</artifactId>
+        <version>2.0.1</version>
+      </plugin>
+    </plugins>
+  </reporting>
+  <dependencyManagement>
+    <dependencies>
+      <!--
+        START Modules
+      -->
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-mailbox-api</artifactId>
+        <version>0.2-M2-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-mailbox-api</artifactId>
+        <version>${project.version}</version>
+        <type>test-jar</type>
+        <scope>test</scope>
+      </dependency>
+    
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-imap-message</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+     
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-imap-processor</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+     
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-imap-api</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-james-imap-api</artifactId>
+        <version>${project.version}</version>
+        <type>test-jar</type>
+        <scope>test</scope>
+      </dependency>
+      <!--
+        END Modules
+      -->
+
+      <!--
+        START Mail
+      -->
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-mime4j</artifactId>
+        <version>${version.apache-mime4j}</version>
+      </dependency>
+      <!-- Declare javamail as provided to be able to easily switch -->
+      <!-- to different implementations (Geronimo) -->
+      <dependency>
+        <groupId>javax.mail</groupId>
+        <artifactId>mail</artifactId>
+        <version>${version.javax.mail}</version>
+      </dependency>
+      <dependency>
+        <groupId>javax.activation</groupId>
+        <artifactId>activation</artifactId>
+        <version>${version.activation}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.specs</groupId>
+        <artifactId>geronimo-activation_1.1_spec</artifactId>
+        <version>1.0.2</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.javamail</groupId>
+        <artifactId>geronimo-javamail_1.4_mail</artifactId>
+        <version>1.6</version>
+      </dependency>
+      <!--
+        END Mail
+      -->
+
+      <!--
+        Start James Mailet
+      -->
+      <dependency>
+        <groupId>org.apache.james</groupId>
+        <artifactId>apache-mailet</artifactId>
+        <version>2.4</version>
+        <exclusions>
+          <exclusion>
+            <groupId>javax.mail</groupId>
+            <artifactId>mail</artifactId>
+          </exclusion>
+        </exclusions>
+      </dependency>
+
+      <!--
+        Start Commons
+      -->
+      <dependency>
+        <groupId>commons-collections</groupId>
+        <artifactId>commons-collections</artifactId>
+        <version>${version.commons-collections}</version>
+      </dependency>
+      <dependency>
+        <groupId>commons-logging</groupId>
+        <artifactId>commons-logging</artifactId>
+        <version>${version.commons-logging}</version>
+        <exclusions>
+          <exclusion>
+            <artifactId>logkit</artifactId>
+            <groupId>logkit</groupId>
+          </exclusion>
+          <exclusion>
+            <artifactId>avalon-framework</artifactId>
+            <groupId>avalon-framework</groupId>
+          </exclusion>
+          <exclusion>
+            <artifactId>log4j</artifactId>
+            <groupId>log4j</groupId>
+          </exclusion>
+          <exclusion>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+          </exclusion>
+        </exclusions>
+      </dependency>
+      <dependency>
+        <groupId>commons-lang</groupId>
+        <artifactId>commons-lang</artifactId>
+        <version>${version.commons-lang}</version>
+      </dependency>
+     
+     
+      <dependency>
+        <groupId>commons-beanutils</groupId>
+        <artifactId>commons-beanutils</artifactId>
+        <version>1.7.0</version>     
+      </dependency>
+      <!-- 
+        END Commons
+      -->
+      
+      <!--
+        START Testing
+      -->
+      <!--
+        Use to build protocol tester.
+        Convert this to testing once MPT has been released. 
+      -->
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>4.8.1</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit-dep</artifactId>
+        <version>4.4</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jmock</groupId>
+        <artifactId>jmock</artifactId>
+        <version>${version.jmock}</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.jmock</groupId>
+        <artifactId>jmock-junit4</artifactId>
+        <version>${version.jmock}</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>com.h2database</groupId>
+        <artifactId>h2</artifactId>
+        <version>1.2.134</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.derby</groupId>
+        <artifactId>derby</artifactId>
+        <version>10.2.2.0</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>commons-io</groupId>
+        <artifactId>commons-io</artifactId>
+        <version>1.4</version>
+      </dependency>
+      
+
+      <!--
+        END Testing
+      -->
+
+      
+    </dependencies>
+  </dependencyManagement>
+
   <profiles>
     <profile>
       <id>geronimo</id>
       <properties>
-                   
<javax.mail.groupId>org.apache.geronimo.javamail</javax.mail.groupId>
-                   
<javax.mail.artifactId>geronimo-javamail_1.4_mail</javax.mail.artifactId>
-                   
<javax.activation.groupId>org.apache.geronimo.specs</javax.activation.groupId>
-                   
<javax.activation.artifactId>geronimo-activation_1.1_spec</javax.activation.artifactId>
+            
<javax.mail.groupId>org.apache.geronimo.javamail</javax.mail.groupId>
+            
<javax.mail.artifactId>geronimo-javamail_1.4_mail</javax.mail.artifactId>
+            
<javax.activation.groupId>org.apache.geronimo.specs</javax.activation.groupId>
+            
<javax.activation.artifactId>geronimo-activation_1.1_spec</javax.activation.artifactId>
+            <version.javax.mail>1.6</version.javax.mail>
+            <version.activation>1.0.2</version.activation>
       </properties>
     </profile>
   </profiles>
@@ -66,5 +402,18 @@
     <javax.activation.artifactId>activation</javax.activation.artifactId>
     <javax.mail.groupId>javax.mail</javax.mail.groupId>
     <javax.mail.artifactId>mail</javax.mail.artifactId>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <version.james-server>3.0-SNAPSHOT</version.james-server>
+    <version.openjpa>2.0.1</version.openjpa>
+    <version.javax.persistence>1.0.2</version.javax.persistence>
+    <version.commons-lang>2.4</version.commons-lang>
+    <version.commons-collections>3.2.1</version.commons-collections>
+    <version.commons-logging>1.1</version.commons-logging>
+    <version.apache-mime4j>0.6</version.apache-mime4j>
+    <version.javax.mail>1.4.3</version.javax.mail>
+    <version.activation>1.1.1</version.activation>
+    <version.torque>3.3</version.torque>
+    <version.jmock>2.5.1</version.jmock>
+    <target.jdk>1.5</target.jdk>
   </properties>
 </project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to