Add pom.xml to postage (POSTAGE-23)

git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@1349797 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 78e60e6..f88c31f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,407 +17,42 @@
     specific language governing permissions and limitations
     under the License.
 -->
-<!--
-    | DISCLAIMER DISCLAIMER DISCLAIMER DISCLAIMER DISCLAIMER
-    |
-    | This file is only intended to be used to build the postage
-    | website. It must not be used to build packages for postage
-    | application.
-    |
-    | DISCLAIMER DISCLAIMER DISCLAIMER DISCLAIMER DISCLAIMER
--->
-<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">
+<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.james</groupId>
         <artifactId>james-project</artifactId>
-        <version>1.7</version>
-        <relativePath></relativePath>
+        <groupId>org.apache.james</groupId>
+        <version>1.8.1</version>
+        <relativePath />
     </parent>
-
-    <groupId>org.apache.james</groupId>
-    <artifactId>james-postage</artifactId>
+    <artifactId>apache-james-postage</artifactId>
+    <name>Apache James Postage</name>
     <version>0.1-SNAPSHOT</version>
-    <packaging>jar</packaging>
-
-    <name>Apache JAMES Postage</name>
-    <description>Postage is a tool to test mail server perfomance/stability.</description>
-    <url>http://james.apache.org/postage</url>
-    <inceptionYear>2006</inceptionYear>
-
-    <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/james/postage/trunk</connection>
-        <developerConnection>scm:svn:https://${maven.username}@svn.apache.org/repos/asf/james/postage/trunk</developerConnection>
-        <url>http://svn.apache.org/viewcvs.cgi/james/postage/trunk?root=Apache-SVN</url>
-    </scm>
-    <issueManagement>
-        <system>jira</system>
-        <url>http://issues.apache.org/jira/browse/POSTAGE</url>
-    </issueManagement>
-
-    <distributionManagement>
-        <site>
-            <id>postage-website</id>
-            <url>scpexe://people.apache.org/www/james.apache.org/postage/</url>
-        </site>
-    </distributionManagement>
-
-    <dependencies verbose="true">
-        <dependency>
-            <groupId>javax.mail</groupId>
-            <artifactId>mail</artifactId>
-            <version>1.4.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.avalon.framework</groupId>
-            <artifactId>avalon-framework-api</artifactId>
-            <version>4.3.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.avalon.framework</groupId>
-            <artifactId>avalon-framework-impl</artifactId>
-            <version>4.3.1</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>jmock</groupId>
-                    <artifactId>jmock</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>xalan</groupId>
-                    <artifactId>xalan</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>xml-apis</groupId>
-                    <artifactId>xmlParserAPIs</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>xml-apis</groupId>
-                    <artifactId>xml-apis</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>log4j</groupId>
-                    <artifactId>log4j</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>geronimo-spec</groupId>
-                    <artifactId>geronimo-spec-javamail</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>geronimo-spec</groupId>
-                    <artifactId>geronimo-spec-jms</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>javax.servlet</groupId>
-                    <artifactId>servlet-api</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-collections</groupId>
-            <artifactId>commons-collections</artifactId>
-            <version>3.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-            <version>1.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-configuration</groupId>
-            <artifactId>commons-configuration</artifactId>
-            <version>1.5</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>commons-codec</groupId>
-                    <artifactId>commons-codec</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>javax.servlet</groupId>
-                    <artifactId>servlet-api</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>xerces</groupId>
-                    <artifactId>xercesImpl</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>commons-beanutils</groupId>
-                    <artifactId>commons-beanutils-core</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>dom4j</groupId>
-                    <artifactId>dom4j</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
-        <dependency>
-            <groupId>commons-net</groupId>
-            <artifactId>commons-net</artifactId>
-            <version>1.4.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.avalon.cornerstone.sockets</groupId>
-            <artifactId>cornerstone-sockets-api</artifactId>
-            <version>2.2.2</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.avalon.cornerstone.sockets</groupId>
-            <artifactId>cornerstone-sockets-impl</artifactId>
-            <version>2.2.2</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>xml-apis</groupId>
-                    <artifactId>xml-apis</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
-        <!--
-            <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server</artifactId>
-            <version>2.3.2-SNAPSHOT</version>
-            <exclusions>
-            <exclusion>
-            <groupId>org.bouncycastle</groupId>
-            <artifactId>bcmail-jdk14</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>org.bouncycastle</groupId>
-            <artifactId>bcmail-jdk14-workaround</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>avalon-framework</groupId>
-            <artifactId>avalon-framework-api</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>avalon-framework</groupId>
-            <artifactId>avalon-framework-impl</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>commons-dbcp</groupId>
-            <artifactId>commons-dbcp</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>commons-net</groupId>
-            <artifactId>commons-net</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-sockets</groupId>
-            <artifactId>cornerstone-sockets-api</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-sockets</groupId>
-            <artifactId>cornerstone-sockets-impl</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-datasources</groupId>
-            <artifactId>cornerstone-datasources-api</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>excalibur-datasource</groupId>
-            <artifactId>excalibur-datasource</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-datasources</groupId>
-            <artifactId>cornerstone-datasources-impl</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-scheduler</groupId>
-            <artifactId>cornerstone-scheduler-api</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-scheduler</groupId>
-            <artifactId>cornerstone-scheduler-impl</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-store</groupId>
-            <artifactId>cornerstone-store-api</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>cornerstone-store</groupId>
-            <artifactId>cornerstone-store-impl</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>dnsjava</groupId>
-            <artifactId>dnsjava</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>avalon-logkit</groupId>
-            <artifactId>avalon-logkit</artifactId>
-            </exclusion>
-            <exclusion>
-            <groupId>oro</groupId>
-            <artifactId>oro</artifactId>
-            </exclusion>
-            </exclusions>
-            </dependency>
-        -->
-
-        <dependency>
-            <groupId>dnsjava</groupId>
-            <artifactId>dnsjava</artifactId>
-            <version>2.0.6</version>
-            <scope>runtime</scope>
-        </dependency>
-
-        <!--
-            <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>3.8.1</version>
-            <scope>test</scope>
-            </dependency>
-        -->
-
-
-        <dependency>
-            <groupId>org.apache.excalibur.components</groupId>
-            <artifactId>excalibur-thread-impl</artifactId>
-            <version>2.2.1</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.avalon.cornerstone.threads</groupId>
-            <artifactId>cornerstone-threads-api</artifactId>
-            <version>2.2.2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.avalon.cornerstone.connection</groupId>
-            <artifactId>cornerstone-connection-impl</artifactId>
-            <version>2.2.2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-avalon-socket-library</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-common-util</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-core-function</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-core-api</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-domain-api</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-        <!--
-            <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-core-library</artifactId>
-            <version>3.0-SNAPSHOT</version>
-            </dependency>
-        -->
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-smtpserver-function</artifactId>
-            <version>3.0-SNAPSHOT</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>mailet</artifactId>
-            <version>2.4-SNAPSHOT</version>
-        </dependency>
+    <properties>
+      <version.james-server>3.0-beta5-SNAPSHOT</version.james-server>
+    </properties>
+    <dependencies>
+      <dependency>
+          <groupId>org.apache.james</groupId>
+          <artifactId>james-server-protocols-smtp</artifactId>
+          <version>${version.james-server}</version>
+      </dependency>
+      <dependency>
+          <groupId>org.apache.james</groupId>
+          <artifactId>james-server-protocols-imap4</artifactId>
+          <version>${version.james-server}</version>
+      </dependency>
+      <dependency>
+          <groupId>commons-net</groupId>
+          <artifactId>commons-net</artifactId>
+          <version>1.4.1</version>
+      </dependency>
+      <dependency>
+        <groupId>commons-io</groupId>
+        <artifactId>commons-io</artifactId>
+        <version>1.4</version>
+      </dependency>
     </dependencies>
-
-    <repositories>
-        <repository>
-            <id>local-postage-stage-repository</id>
-            <name>Local postage stage repository</name>
-            <!-- Please note that due to http://jira.codehaus.org/browse/MNG-2896 -->
-            <!-- If you don't have james-project checked out in ../james-project -->
-            <!-- you will have to place your absolute path to the project instead -->
-            <!-- of ${basedir}, or, otherwise, manually install the parent poms -->
-            <!--
-                mvn -fignorepom.xml install:install-file
-                -Dfile=stage\org.apache.james\poms\james-parent-1.1.pom
-                -Dpackaging=pom
-                -DgroupId=org.apache.james
-                -DartifactId=james-parent
-                -Dversion=1.1
-                mvn -fignorepom.xml install:install-file
-                -Dfile=stage\org.apache.james\poms\james-project-1.2.pom
-                -Dpackaging=pom
-                -DgroupId=org.apache.james
-                -DartifactId=james-project
-                -Dversion=1.2
-            -->
-            <url>file://${basedir}/stage</url>
-            <layout>legacy</layout>
-            <snapshots>
-                <enabled>true</enabled>
-                <checksumPolicy>ignore</checksumPolicy>
-            </snapshots>
-            <releases>
-                <enabled>true</enabled>
-                <checksumPolicy>ignore</checksumPolicy>
-            </releases>
-        </repository>
-    </repositories>
-
     <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <configuration>
-                    <archive>
-                        <manifest>
-                            <mainClass>org.apache.james.postage.Main</mainClass>
-                            <packageName>org.apache.james.postage</packageName>
-                            <addClasspath>true</addClasspath>
-                        </manifest>
-                        <manifestEntries>
-                            <mode>development</mode>
-                            <url>${pom.url}</url>
-                        </manifestEntries>
-                    </archive>
-                </configuration>
-            </plugin>
-            <plugin>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <configuration>
-                    <descriptorRefs>
-                        <descriptorRef>bin</descriptorRef>
-                        <descriptorRef>src</descriptorRef>
-                    </descriptorRefs>
-                </configuration>
-            </plugin>
-            <plugin>      
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>emma-maven-plugin</artifactId>
-                <inherited>true</inherited>          
-                <executions>
-                    <execution>
-                        <phase>process-classes</phase>               
-                        <goals>
-                            <goal>instrument</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-            </plugin>
-        </plugins>
     </build>
 </project>