Skip to content

Commit

Permalink
Update mapfish print to most recent updates (#9453)
Browse files Browse the repository at this point in the history
* Update mapfish print to most recent fixes

* Add OSGeo Repository

* Apply suggestions from code review
  • Loading branch information
offtherailz authored Sep 15, 2023
1 parent 37f6c60 commit f1c0b37
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
32 changes: 32 additions & 0 deletions docs/developer-guide/mapstore-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,38 @@ This is a list of things to check if you want to update from a previous version

## Migration from 2023.02.xx to 2024.01.00

### MapFish Print update

**MapFish Print** library has been updated to be aligned to the one used by GeoServer and be able to build with Java 11. (see this issue <https://github.com/geosolutions-it/mapfish-print/issues/65>)
For this reason, if you are using mapfish-print, you have to update your project

- by changing he version of the mapfish-print dependency:

```diff
<!-- mapfish-print -->
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
- <version>geosolutions-2.3-SNAPSHOT</version>
+ <version>2.3-SNAPSHOT</version>

```

And adding the repository where this library is hosted in the `repositories` section of the same `pom.xml` (usually in `web` folder of a project)

```diff
<repository>
<id>osgeo-snapshot</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
```

This library is actually hosted on [https://maven.geo-solutions.it/](https://maven.geo-solutions.it/).

### Annotations plugin refactor

The Annotation plugin has been updated to be supported also in 3D maps. This update introduced some changes:
Expand Down
11 changes: 10 additions & 1 deletion java/printing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>geosolutions-2.2-SNAPSHOT</version>
<version>2.3-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -102,5 +102,14 @@
<enabled>true</enabled>
</snapshots>
</repository>
<!-- OSGEO snapshot (for mapfish-print)-->
<repository>
<id>osgeo-snapshot</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
11 changes: 10 additions & 1 deletion product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>geosolutions-2.3-SNAPSHOT</version>
<version>2.3-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -477,5 +477,14 @@
<enabled>true</enabled>
</snapshots>
</repository>
<!-- OSGEO snapshot (mapfish-print)-->
<repository>
<id>osgeo-snapshot</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>
11 changes: 10 additions & 1 deletion project/standard/templates/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>geosolutions-2.3-SNAPSHOT</version>
<version>2.3-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -525,5 +525,14 @@
<enabled>true</enabled>
</snapshots>
</repository>
<!-- OSGEO snapshot (mapfish-print)-->
<repository>
<id>osgeo-snapshot</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>

0 comments on commit f1c0b37

Please sign in to comment.