diff --git a/README.md b/README.md index 910e13faa..23139b245 100644 --- a/README.md +++ b/README.md @@ -202,3 +202,30 @@ For more complex build processes, Grunt / Gulp can be used, but these build syst Downside: DO NOT invoke `npm init` or `npm install --save` `--save-dev` `--save-optional`, as this would overwrite / update the JSON, not the master CSON! + +## Maven Package + +Once the JS components have been bundled with the `npm build` commands +shown above, a Maven package can be produced containing the relevant +resources. This can then be referenced from Android applications as +a standard library dependency, instead of having to import the sources +directly into the project as a `git submodule`. + +To create a package: + +```bash +$ mvn clean package +``` + +After the package has been deployed to a repository with `mvn deploy`, +the package can be referenced from an Android application with (in Maven +dependency syntax): + +``` + + org.readium + readium-shared-js + 0.20.0 + +``` + diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..715db5325 --- /dev/null +++ b/pom.xml @@ -0,0 +1,200 @@ + + + + 4.0.0 + org.readium + readium-shared-js + 0.20.0-alpha + + jar + Readium SDK (Shared JavaScript components) + https://github.com/readium/readium-shared-js + + + UTF-8 + UTF-8 + + + + https://github.com/readium/readium-shared-js + scm:https://github.com/readium/readium-shared-js + scm:https://github.com/readium/readium-shared-js + + + + https://github.com/readium/readium-shared-js/issues + GitHub + + + + + GitHub + GitHub + ${project.url} + + + + + + 3-Clause BSD License + http://opensource.org/licenses/BSD-3-Clause + + + + + + Daniel Weck + daniel.weck@gmail.com + Readium Foundation + http://readium.org/ + + + Mark Raynsford + code@io7m.com + + Maven operator + + + + + + 3.2.1 + + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.6.1 + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + + org.apache.maven.plugins + maven-install-plugin + 2.5.2 + + + org.apache.maven.plugins + maven-resources-plugin + 2.7 + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + ${project.name} + ${project.version} + Readium Foundation + ${project.name} + ${project.version} + Readium Foundation + ${project.groupId} + true + + + + + + + + + + + build-output/_single-bundle + + readium-shared-js_all.js + readium-shared-js_all.js.bundles.js + readium-shared-js_all.js.map + + + + build-output/css + + sdk.css + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + default-jar + package + jar + + + source-jar + package + jar + + + **/** + + sources + + + + javadoc-jar + package + jar + + + **/** + + javadoc + + + + + + + + + + + readium-sign + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + + + + +