<?xml version="1.0"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.dozer</groupId>
  <artifactId>dozer</artifactId>
  <packaging>jar</packaging>
  <url>http://dozer.sourceforge.net</url>
  <description>
    Dozer is a powerful Java Bean to Java Bean mapper that recursively copies data from one object to another
  </description>
  <version>5.0</version>
  <name>dozer</name>

  <dependencies>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.8.0</version>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.4</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2.1</version>
    </dependency>
    <dependency>
      <groupId>springframework</groupId>
      <artifactId>spring</artifactId>
      <version>1.2.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.5</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.6</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib</artifactId>
      <version>2.1_3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>1.5.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.xmlbeans</groupId>
      <artifactId>xmlbeans</artifactId>
      <version>2.4.0</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.xmlbeans</groupId>
      <artifactId>xmlbeans-xpath</artifactId>
      <version>2.3.0</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>1.0</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jsr173_api</artifactId>
      <version>1.0</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>1.0.5</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-libs</artifactId>
      <version>1.0.5</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-xjc</artifactId>
      <version>1.0.5</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>relaxngDatatype</groupId>
      <artifactId>relaxngDatatype</artifactId>
      <version>20020414</version>
      <scope>test</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>stax</groupId>
      <artifactId>stax</artifactId>
      <version>1.1.1-dev</version>
      <scope>test</scope>
      <optional>true</optional>
      <exclusions>
        <exclusion>
          <groupId>xmlbeans</groupId>
          <artifactId>xmlbeans-jsr173-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <resources>
      <resource>
        <directory>src/site/resources/schema</directory>
        <includes>
          <include>beanmapping.xsd</include>
        </includes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>target/xmlbeans-source</directory>
      </testResource>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
      <testResource>
        <directory>src/site/resources/schema</directory>
      </testResource>
    </testResources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/org/dozer/vo/**</exclude>
            <exclude>**/net/pmonks/**</exclude>
            <exclude>**/schemaorg_apache_xmlbeans/**</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-idea-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
          <templateFile>site.vm</templateFile>
        </configuration>
        <version>2.0-beta-7</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.5.1</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <descriptors>
            <descriptor>src/assembly/src.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>add generated test sources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-test-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>target/xmlbeans-source</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xmlbeans-maven-plugin</artifactId>
        <version>2.3.1</version>
        <executions>
          <execution>
            <phase>generate-test-resources</phase>
            <goals>
              <goal>xmlbeans</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <schemaDirectory>src/test/resources</schemaDirectory>
          <classGenerationDirectory>${project.build.directory}/test-classes</classGenerationDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <excludes>
            <exclude>**/Test*.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <instrumentation>
            <excludes>
              <exclude>**/*Test.class</exclude>
            </excludes>
          </instrumentation>
          <formats>
            <format>xml</format>
            <format>html</format>
          </formats>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
    
  <profiles>
    <profile>
      <id>deploy-dozer</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <configuration>
              <tasks>
                <property name="target.dir" value="target" />
                <property name="dozer.src" value="${project.artifactId}-${project.version}-src" />

                <property name="host" value="shell.sourceforge.net" />
                <property name="dozer.docs.dir" value="/home/groups/d/do/dozer/htdocs" />
                <input message="Please enter sf username:" addproperty="username" />
                <input message="Please enter sf password:" addproperty="password" />

                <!-- remove files -->

                <sshexec host="${host}" username="${username}" password="${password}" trust="yes"
                  command="cd ${dozer.docs.dir}; rm -rf *" />

                <echo message="Done removing files..." />

                <tar longfile="gnu" destfile="${target.dir}/site.tar">
                  <tarfileset dir="${target.dir}/site" />
                </tar>

                <!-- copy file -->
                <scp todir="${username}:${password}@${host}:${dozer.docs.dir}" file="${target.dir}/site.tar"
                  trust="yes" />

                <echo message="Done copying file..." />

                <!-- untar and change permissions -->

                <sshexec host="${host}" username="${username}" password="${password}" trust="yes"
                  command="cd ${dozer.docs.dir}; tar xvf site.tar; chmod 777 -R *" />

                <echo message="Done untarring files..." />

              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
            <dependencies>
              <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>1.4.0</version>
              </dependency>
              <dependency>
                <groupId>oro</groupId>
                <artifactId>oro</artifactId>
                <version>2.0.8</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-commons-net</artifactId>
                <version>1.6.5</version>
              </dependency>
              <dependency>
                <groupId>ant</groupId>
                <artifactId>ant-jsch</artifactId>
                <version>1.6.5</version>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <developers>
    <developer>
      <name>Franz Garsombke</name>
      <id>fgarsombke</id>
      <email>fgarsombke@yahoo.com</email>
      <roles>
        <role>Project Lead/Co-Founder</role>
      </roles>
      <timezone>-7</timezone>
    </developer>
    <developer>
      <name>Matt Tierney</name>
      <id>mhtierney</id>
      <email>mhtierney@comcast.net</email>
      <timezone>-7</timezone>
      <roles>
        <role>Project Lead/Co-Founder</role>
      </roles>
    </developer>
    <developer>
      <name>Dmitry Buzdin</name>
      <id>buzdin</id>
      <email>buzdin@gmail.com</email>
      <timezone>+2</timezone>
      <roles>
        <role>Project Lead</role>
      </roles>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Ben Sullins</name>
    </contributor>
    <contributor>
      <name>David Baker</name>
    </contributor>
    <contributor>
      <name>Matt Benson</name>
    </contributor>
    <contributor>
      <name>Ed Bras</name>
    </contributor>    
    <contributor>
      <name>Soren Chittka</name>
    </contributor>
    <contributor>
      <name>Peciuch Dominic</name>
    </contributor>
    <contributor>
      <name>Christoph Goldner</name>
    </contributor>
    <contributor>
      <name>Bruno Guedes</name>
    </contributor>
    <contributor>
      <name>Ozzie Gurkan</name>
    </contributor>
    <contributor>
      <name>Rohan Hart</name>
    </contributor>
    <contributor>
      <name>Chia-Chou Hung</name>
    </contributor>
    <contributor>
      <name>Vincent Jassogne</name>
    </contributor>
    <contributor>
      <name>Florian Kammermann</name>
    </contributor>
    <contributor>
      <name>Sachin Katakdound</name>
    </contributor>
    <contributor>
      <name>Joachim Korittky</name>
    </contributor>
    <contributor>
      <name>Knut-Erik Johnsen</name>
    </contributor>
    <contributor>
      <name>Wing Tung Leung</name>
    </contributor>
    <contributor>
      <name>Peter Monks</name>
    </contributor>
    <contributor>
      <name>Mickael Morier</name>
    </contributor>
    <contributor>
      <name>Tom Rigole</name>
    </contributor>    
    <contributor>
      <name>Luke Robinson</name>
    </contributor>
    <contributor>
      <name>Alan Stewart</name>
    </contributor>
    <contributor>
      <name>Gerard Toonstra</name>
    </contributor>
    <contributor>
      <name>Nhat Vo</name>
    </contributor>
    <contributor>
      <name>Rob Volden</name>
    </contributor>
    <contributor>
      <name>Kiersztyn Wojtek</name>
    </contributor>
  </contributors>

  <organization>
    <name>dozer</name>
    <url>http://dozer.sourceforge.net</url>
  </organization>

  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly Open Source license</comments>
    </license>
  </licenses>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>dependencies</report>
              <report>project-team</report>
              <report>issue-tracking</report>
              <report>license</report>
              <report>scm</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.4.3</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <aggregate>true</aggregate>
          <links>
            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
          </links>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <targetJdk>1.5</targetJdk>
          <rulesets>
            <ruleset>/rulesets/basic.xml</ruleset>
            <ruleset>/rulesets/codesize.xml</ruleset>
            <ruleset>/rulesets/unusedcode.xml</ruleset>
            <ruleset>/rulesets/coupling.xml</ruleset>
          </rulesets>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <issueManagement>
    <system>Sourceforge</system>
    <url>http://sourceforge.net/tracker/?group_id=133517</url>
  </issueManagement>

  <scm>
    <connection>scm:svn:https://dozer.svn.sourceforge.net/svnroot/dozer/trunk</connection>
    <tag>HEAD</tag>
    <url>http://dozer.svn.sourceforge.net/viewvc/dozer/</url>
  </scm>
</project>

