Please read the documentation available here: http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleDoc
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 build and upload all artifacts to the maven central repository.
> ./gradlew uploadArchives -DsshPassphrase=...
Create Eclipse project metadata:
> ./gradlew eclipse
Import project into Eclipse
The following command will run the mapfish printer. The arguments must be supplied to the -PprintArgs="..." parameter.
To list all the commandline options then execute:
> ./gradlew run -PprintArgs="-help"
> ./gradlew run -PprintArgs="-config examples/config.yaml -spec examples/spec.json -output ./output.pdf"
- Create new Java Run Configuration
- Main class is org.mapfish.print.cli.Main
- Program arguments: -config samples/config.yaml -spec samples/spec.json -output $HOME/print.pdf