Maven Plugin For Interacting With the Dropbox Java SDK
Java Ruby

README.md

dropbox-maven-plugin Build Status

This project provides a bridge between maven and the dropbox-core-sdk for Java https://www.dropbox.com/developers/core/sdks/java

Configuration

In order to use this Maven plugin, you will need to configure your pom.xml (or proxy repository) to point to the repository at http://timezra.github.com/maven/releases

    <pluginRepositories>         <pluginRepository>             <id>tims-repo</id>             <url>http://timezra.github.com/maven/releases </url>             <releases>                 <enabled>true</enabled>             </releases>             <snapshots>                 <enabled>false</enabled>             </snapshots>         </pluginRepository>     </pluginRepositories>

Usage

Work in progress....

For now, please use 'mvn timezra.maven:dropbox-maven-plugin:1.7.5:help' to find out usage information.

For the most part, available operations and their parameters follow the core REST API at https://www.dropbox.com/developers/core/docs

Examples:

$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:files_put -Dverbose=true -Dpath=/{A FILE} -Dfile={A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:files -Dverbose=true -Dpath=/{A FILE} -Dfile={A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:metadata -Dverbose=true -Dpath=/ -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:delta -Dverbose=true -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:delta -Dverbose=true -Dcursor={A CURSOR} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:revisions -Dverbose=true -Dpath=/{A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:restore -Dverbose=true -Dpath=/{A FILE} -Drev={A REVISION} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:search -Dverbose=true -Dpath=/ -Dquery={A QUERY} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:shares -Dverbose=true -Dpath=/{A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:media -Dverbose=true -Dpath=/{A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:copy_ref -Dverbose=true -Dpath=/{A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:thumbnails -Dverbose=true -Dpath=/{AN IMAGE FILE} -Dformat={PNG OR JPEG} -Dfile={AN IMAGE FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:chunked_upload -Dverbose=true -Dfile={A FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:chunked_upload -Dverbose=true -Dfile={A FILE} -Dupload_id={AN UPLOAD ID} -Doffset={A CHUNK SIZE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:commit_chunked_upload -Dverbose=true -Dpath=/{A FILE} -Dupload_id={AN UPLOAD ID} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:copy -Dverbose=true -Dfrom_path=/{A FILE} -Dto_path=/{ANOTHER FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:copy -Dverbose=true -Dfrom_copy_ref={A COPY REF} -Dto_path=/{ANOTHER FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:create_folder -Dverbose=true -Dpath=/{A FOLDER} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:delete -Dverbose=true -Dpath=/{A FOLDER} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:move -Dverbose=true -Dfrom_path=/{A FILE} -Dto_path=/{ANOTHER FILE} -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e
$ mvn timezra.maven:dropbox-maven-plugin:1.7.5:info -Dverbose=true -DclientIdentifier={MY APP} -DaccessToken={MY ACCESS TOKEN} -e