Please read the documentation available here: http://www.mapfish.org/doc/index.html
Execute the following command:
./gradlew build
This will build three artifacts: print-servlet-xxx.war
, print-lib.jar
, print-standalone.jar
The following command will run the mapfish printer. If you do no supply any -Dxxx args then all argument options will be listed.
./gradlew run -Dconfig=samples/config.yaml -Dspec=samples/spec.json -Doutput=/tmp/print-out.pdf
To install SNAPSHOT into local maven repository:
./gradlew install
-
Create
~/.gradle
file based on templategradle.properties
provided -
Use osgeo id credentials to deploy to repo.osgeo.org
enablePublishing=true osgeoUsername=gtbuild osgeoPassword=....
-
The following command will build and upload all artifacts to the osgeo repository.
./gradlew upload
To build in eclipse:
-
Create eclipse project metadata:
./gradlew eclipse
-
Import project into eclipse
To run in eclipse:
- Create new Java Run Configuration
- Main class is
org.mapfish.print.ShellMapPrinter
- Program arguments:
--config=samples/config.yaml --spec=samples/spec.json --output=$HOME/print.pdf