Giter VIP home page Giter VIP logo

mapfish-print-v2's Introduction

MapFish Print V2

This project is no longer actively maintained by camptocamp. New projects are strongly encouraged to use mapfish-print which is at Version 3 at the time of writing.

This project is no longer fully functional, consisting of mapfish-print-lib.jar distribution used by downstream projects as described below.

Background

Downstream projects making use of this technology:

  • geoserver - Uses mapfish-print-lib for gs-printing extension
  • core-geonetwork - uses mapfish-print-lib for activities such as thumbnail generation
  • GeoNode - Uses geosolutions fork described below
  • MapStore - Uses geosolutions fork described below

GeoCat BV has mained this series as needed to support the core-geonetwork project:

  • Updated to migrate to OpenPDF

GeoSolutions created a fork of the project in 2013:

Outdated documentation:

Maven Build

Standard maven build targets are available:

  1. To clean the target/ folder:

    mvn clean
  2. To compile:

    mvn compile
  3. To create a print-lib-2.3-SNAPSHOT.jar jar:

    mvn package
  4. To install SNAPSHOT jar into ~/.m2/repository local maven repository:

    mvn install

    The use of a local maven repository allows for integration testing with other builds.

IDE Build

To build in IntelliJ:

  1. Open as a maven project.

To build in Eclipse:

  1. Open as maven project.

To build in Eclipse as a Java project:

  1. Create eclipse project .classpath and .project files:

    mvn eclipse:eclipse
  2. Import project into Eclipse as a Java project.

When running in an IDE:

  1. Main class is org.mapfish.print.ShellMapPrinter

  2. Program arguments: --config=samples/config.yaml --spec=samples/spec.json --output=$HOME/print.pdf

Deploy

To deploy SNAPSHOT to repo.osgeo.org:

mvn deploy

Your ~/.m2/settings.xml requires credentials to access osgeo nexus server at repo.osgeo.org. See https://wiki.osgeo.org/wiki/SAC:Repo to obtain credentials:

  <servers>
    <server>
      <username>OSGEO_ID</username>
      <password>OSGEO_PASSWORD</password>
      <id>nexus</id>
    </server>
  </servers>

Release

To create a release:

  1. Update version in pom.xml:

    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>2.3.0</version>
  2. Build confirming creation of print-lib-2.3.0.jar

    mvn clean install
  3. Commit the change to pom.xml

    git add pom.xml
    git commit -m "Release 2.3.0"
  4. Deploy to osgeo nexus

    mvn deploy -DskipTests
  5. Push and tag the change:

    git push
    git tag -a release/2.3.0 -m "Release 2.3.0"
    git push origin release/2.3.0
  6. Check the release in github:

  7. Add any release-notes to the tag in GitHub.

  8. Update the pom.xml against to return to SNAPSHOT developmentt:

    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>2.3-SNAPSHOT</version>

    And push up the change:

    git add pom.xml
    git commit -m "Development 2.3-SNAPSHOT"
    git push

mapfish-print-v2's People

Contributors

geekdenz avatar jbjonesjr avatar sbrunner avatar jodygarnett avatar bbinet avatar mbarto avatar procrastinatio avatar tixvieira avatar fredj avatar cedricmoullet avatar severo avatar tenglich avatar snkashis avatar ybolognini avatar omarkljung avatar haiiro-shimeji avatar hdpe avatar pvalsecc avatar oscarfonts avatar lindsejs avatar shr3k avatar azuledu avatar cmangeat avatar bjornharrtell avatar sweco-sebhar avatar adube avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.