Skip to content

Commit

Permalink
Fixes #2760: integrated printing service (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored and offtherailz committed Mar 22, 2018
1 parent 3487832 commit 481a3fb
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 1 deletion.
8 changes: 8 additions & 0 deletions buildConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ module.exports = (bundles, themeEntries, paths, extractThemesPlugin, prod, publi
target: "https://dev.mapstore2.geo-solutions.it/mapstore",
secure: false
},
'/pdf': {
target: "https://dev.mapstore2.geo-solutions.it/mapstore",
secure: false
},
'/mapstore/pdf': {
target: "https://dev.mapstore2.geo-solutions.it",
secure: false
},
'/proxy': {
target: "https://dev.mapstore2.geo-solutions.it/mapstore",
secure: false
Expand Down
86 changes: 86 additions & 0 deletions project/standard/templates/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,73 @@
<type>war</type>
<scope>runtime</scope>
</dependency>
<!-- mapfish-print -->
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>geosolutions-2.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>8.6</version>
</dependency>
<dependency>
<groupId>org.jyaml</groupId>
<artifactId>jyaml</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.mapfish.geo</groupId>
<artifactId>mapfish-geo-lib</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_codec</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_imageio</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>2.1.5</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20080701</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
<version>1.1.3</version>
</dependency>
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -168,6 +235,25 @@
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>printing</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/__PROJECTNAME__/printing</outputDirectory>
<encoding>UTF-8</encoding>
<resources>
<resource>
<directory>${basedir}/../MapStore2/resources/geoserver/print</directory>
<includes>
<include>*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>translations-ms2</id>
Expand Down
2 changes: 1 addition & 1 deletion web/client/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"useCORS": ["http://demo.geo-solutions.it/geoserver", "https://demo.geo-solutions.it:443/geoserver", "https://demo.geo-solutions.it/geoserver"]
},
"geoStoreUrl": "rest/geostore/",
"printUrl": "https://demo.geo-solutions.it/geoserver/pdf/info.json",
"printUrl": "pdf/info.json",
"bingApiKey": "AhuXBu7ipR1gNbBfXhtUAyCZ6rkC5PkWpxs2MnMRZ1ZupxQfivjLCch22ozKSCAn",
"mapquestApiKey": "__API_KEY_MAPQUEST__",
"initialMapFilter": "",
Expand Down
86 changes: 86 additions & 0 deletions web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,73 @@
<type>war</type>
<scope>runtime</scope>
</dependency>
<!-- mapfish-print -->
<dependency>
<groupId>org.mapfish.print</groupId>
<artifactId>print-lib</artifactId>
<version>geosolutions-2.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>8.6</version>
</dependency>
<dependency>
<groupId>org.jyaml</groupId>
<artifactId>jyaml</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.mapfish.geo</groupId>
<artifactId>mapfish-geo-lib</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_codec</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_imageio</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>2.1.5</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20080701</version>
</dependency>
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
<version>1.1.3</version>
</dependency>
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -238,6 +305,25 @@
</resources>
</configuration>
</execution>
<execution>
<id>printing</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/mapstore/printing</outputDirectory>
<encoding>UTF-8</encoding>
<resources>
<resource>
<directory>${basedir}/../resources/geoserver/print</directory>
<includes>
<include>*</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>docs</id>
<phase>process-classes</phase>
Expand Down

0 comments on commit 481a3fb

Please sign in to comment.