<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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.googlecode.gwtupload</groupId>
  <artifactId>gwtupload-project</artifactId>
  <name>GwtUpload project</name>
  <packaging>pom</packaging>
  <version>0.6.6</version>

  <modules>
    <module>core</module>
    <module>gae</module>
    <module>jsupload</module>
    <module>samples</module>
  </modules>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <properties>
    <main.basedir>${project.parent.basedir}</main.basedir>
    <maven.compiler.source>1.5</maven.compiler.source>
    <maven.compiler.target>1.5</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <gwtVersion>2.5.0</gwtVersion>
    <gwtMaven>2.5.0</gwtMaven>
    <commonsFileuploadVersion>1.2.1</commonsFileuploadVersion>
    <commonsIoVersion>2.3</commonsIoVersion>
    <gwtChismesVersion>0.9.7</gwtChismesVersion>
    <gwtExporterVersion>2.4.0-M1</gwtExporterVersion>
    <gwtIncubatorVersion>20101117-r1766</gwtIncubatorVersion>
    <junitVersion>3.8.2</junitVersion>
    <log4jVersion>1.2.16</log4jVersion>
    <downloadLabel>Beta</downloadLabel>
    <localMavenRepo>file:${env.HOME}/workspace/GWTUpload-mavenrepo</localMavenRepo>
    <gae.version>1.6.5</gae.version>
    <sonatypeRepoId>sonatype-nexus-snapshots</sonatypeRepoId>
    <sonatypeUrl>http://oss.sonatype.org/content/repositories/snapshots</sonatypeUrl>
    <wikiSvnExec>true</wikiSvnExec>
  </properties>

  <distributionManagement>
    <snapshotRepository>
      <id>sonatype-nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
  </distributionManagement>

  <profiles>
     <profile>
       <id>2.0.4</id>
       <properties>
         <gwtVersion>2.0.4</gwtVersion>
         <gwtMaven>1.3-SNAPSHOT</gwtMaven>
       </properties>
     </profile>
     <profile>
       <id>2.2.0</id>
       <properties>
         <gwtVersion>2.2.0</gwtVersion>
         <gwtMaven>2.1.0-1</gwtMaven>
       </properties>
       <dependencies>
       <dependency>
         <groupId>com.google.gwt</groupId>
         <artifactId>gwt-dev</artifactId>
         <version>${gwtVersion}</version>
         <scope>provided</scope>
       </dependency>
       </dependencies>
     </profile>
     <profile>
       <id>prod</id>
       <properties>
        <sonatypeRepoId>sonatype-nexus-staging</sonatypeRepoId>
        <sonatypeUrl>http://oss.sonatype.org/service/local/staging/deploy/maven2</sonatypeUrl>
        <wikiSvnExec>svn</wikiSvnExec>
       </properties>
     </profile>
  </profiles>

  <dependencies>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>${gwtVersion}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>${log4jVersion}</version>
      <scope>provided</scope>
    </dependency>    
    <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>${commonsFileuploadVersion}</version>
    </dependency>    
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>${commonsIoVersion}</version>
    </dependency>    
    <dependency>
      <groupId>gwtchismes</groupId>
      <artifactId>gwtchismes</artifactId>
      <version>${gwtChismesVersion}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-incubator</artifactId>
      <version>${gwtIncubatorVersion}</version>
      <scope>provided</scope>
    </dependency>    
    <dependency>
      <groupId>org.timepedia.exporter</groupId>
      <artifactId>gwtexporter</artifactId>
      <version>${gwtExporterVersion}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-api-1.0-sdk</artifactId>
      <version>${gae.version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <description>
   GWTUpload is a library for uploading files to web servers, 
   showing a progress bar with real information about the process (file size, bytes transferred, etc). 
   It uses ajax requests to ask the web server for the upload progress. 
   It has two components written in java, the server side with servlet and utility classes, 
   and the client side that is compiled into javascript using gwt. 

   GWTUpload-gae is a library with aditional classes needed for using GwtUpload in Google Application Engine (GAE).

   JSUpload is the client library but compiled and exported into javascript, 
   so users without Gwt skills can use it directly in their web pages. 

   It includes a bunch of useful examples to learn how to use the library and see its features.
  </description>

  <url>http://code.google.com/p/gwtupload/</url>

  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <developers>
    <developer>
      <id>manolo</id>
      <name>Manuel Carrasco Moñino</name>
      <email>manolo@apache.org</email>
      <organization>ASF</organization>
      <roles>
         <role>Owner</role>
         <role>Developer</role>
      </roles>
    </developer>
  </developers>

  <ciManagement />

  <mailingLists>
    <mailingList>
      <name>gwtupload@googlegroups.com</name>
      <post>gwtupload@googlegroups.com</post>
      <archive>http://groups.google.com/group/gwtupload</archive>
    </mailingList>
  </mailingLists>

  <repositories>
    <repository>
      <id>repo1</id>
      <url>http://repo1.maven.org/maven2/</url>
    </repository>
    <repository>
      <id>gwtupload</id>
      <url>http://gwtupload.googlecode.com/svn/mavenrepo/</url>
    </repository>
    <repository>
      <id>gwtchismes</id>
      <url>http://gwtchismes.googlecode.com/svn/mavenrepo/</url>
    </repository>
    <repository>
      <id>timepedia</id>
      <url>http://timefire-repository.googlecode.com/svn/mavenrepo/</url>
    </repository>
    <repository>
      <id>seasar</id>
      <url>http://maven.seasar.org/maven2</url>
    </repository>
    <repository>
      <id>gquery-plugins</id>
      <url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>gwtupload</id>
      <url>http://gwtupload.googlecode.com/svn/mavenrepo/</url>
    </pluginRepository>
    <pluginRepository>
      <id>codehaus.snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
    </pluginRepository>
  </pluginRepositories>

  <issueManagement>
    <system>Google Code</system>
    <url>http://code.google.com/p/gwtupload/issues/list</url>
  </issueManagement>

  <scm>
    <connection>scm:git:https://code.google.com/p/gwtupload/</connection>
    <developerConnection>scm:git:git@github.com:manolo/gwtupload.git</developerConnection>
    <url>http://code.google.com/p/gwtupload/source/browse/</url>
  </scm>
<!--
  <distributionManagement>
    <repository>
      <uniqueVersion>false</uniqueVersion>
      <id>googlecode</id>
      <url>svn:https://gwtupload.googlecode.com/svn/mavenrepo/</url>
    </repository>
    <site>
      <id>googlecode</id>
      <url>svn:https://gwtupload.googlecode.com/svn/site</url>
    </site>
    <snapshotRepository>
      <uniqueVersion>false</uniqueVersion>
      <id>localfolder</id>
      <url>${localMavenRepo}</url>
    </snapshotRepository>
  </distributionManagement>
-->

  <build>
    <plugins>
      <plugin>
        <groupId>org.riedelcastro</groupId>
        <artifactId>gcupload-maven-plugin</artifactId>
        <version>0.9</version>
        <configuration>
          <allowSnapshots>true</allowSnapshots>
          <projectName>gwtupload</projectName>
          <uploads>
            <upload>
              <extensions>zip</extensions>
              <labels>${downloadLabel}</labels>
            </upload>
          </uploads>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptors>
            <descriptor>${basedir}/assembly.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8</version>
        <configuration>
          <excludePackageNames>com.google:*</excludePackageNames>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <configuration>
          <targetJdk>1.5</targetJdk>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <configLocation>${main.basedir}/gwt-checkstyle.xml</configLocation>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
