This commit is contained in:
Oliver.Warz@pdv.de 2022-05-01 13:01:05 +02:00
parent 274254a2da
commit 4cb07478e9
4 changed files with 99 additions and 60 deletions

View File

@ -5,7 +5,7 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "" # See documentation for possible values - package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests directory: "/" # Location of package manifests
schedule: schedule:
interval: "daily" interval: "daily"

View File

@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.9.5] - 2022-05-01
### Changed
- uptake fontbox 2.0.26
- uptake pdfbox 2.0.26
- uptake dependency-check-maven 7.1.0
## [0.9.4] - 2022-04-28
### Added
- picocss 1.5
## [0.9.3] - 2022-04-04 ## [0.9.3] - 2022-04-04
### Changed ### Changed
- uptake javamelody 1.91.0 - uptake javamelody 1.91.0
@ -25,6 +35,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- initial version - initial version
- apache fop 2.6 - apache fop 2.6
[Unreleased]: http://gitlab.pdv.lan/oliver1/fop4apex/compare/0.9.3...master
[0.9.3]: http://gitlab.pdv.lan/oliver1/fop4apex/compare/0.9.2...0.9.3
[0.9.2]: hhttp://gitlab.pdv.lan/oliver1/fop4apex/-/tags/0.9.2

21
pom.xml
View File

@ -6,7 +6,7 @@
<groupId>de.pdv.apex</groupId> <groupId>de.pdv.apex</groupId>
<artifactId>fop4apex</artifactId> <artifactId>fop4apex</artifactId>
<version>0.9.3</version> <version>0.9.5</version>
<name>fop4apex</name> <name>fop4apex</name>
<packaging>war</packaging> <packaging>war</packaging>
<url>https://www.pdv.de</url> <url>https://www.pdv.de</url>
@ -41,7 +41,7 @@
<dependency> <dependency>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId> <artifactId>pdfbox</artifactId>
<version>2.0.25</version> <version>2.0.26</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
@ -61,12 +61,19 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.webjars.bowergithub.picocss/pico -->
<dependency>
<groupId>org.webjars.bowergithub.picocss</groupId>
<artifactId>pico</artifactId>
<version>1.5.0</version>
</dependency>
<!-- Start: Security fixes --> <!-- Start: Security fixes -->
<!-- https://mvnrepository.com/artifact/org.apache.pdfbox/fontbox --> <!-- https://mvnrepository.com/artifact/org.apache.pdfbox/fontbox -->
<dependency> <dependency>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId> <artifactId>fontbox</artifactId>
<version>2.0.25</version> <version>2.0.26</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
@ -88,15 +95,17 @@
<build> <build>
<plugins> <plugins>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-war-plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version> <version>3.3.2</version>
</plugin> </plugin>
<!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven -->
<plugin> <plugin>
<groupId>org.owasp</groupId> <groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId> <artifactId>dependency-check-maven</artifactId>
<version>7.0.4</version> <version>7.1.0</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
@ -105,17 +114,19 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M6</version> <version>3.0.0-M6</version>
</plugin> </plugin>
<!-- https://mvnrepository.com/artifact/com.google.cloud.tools/jib-maven-plugin -->
<!-- <!--
<plugin> <plugin>
<groupId>com.google.cloud.tools</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
<version>3.2.0</version> <version>3.2.1</version>
<configuration> <configuration>
<from> <from>
<image>compile.pdv.lan:8001/product/base/vis-tomcat:9.0</image> <image>compile.pdv.lan:8001/product/base/vis-tomcat:9.0</image>

View File

@ -1,47 +1,55 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <!doctype html>
<!DOCTYPE html> <html lang="en" data-theme="dark">
<html>
<head> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Apache Formatting Objects Processor integration for Oracle Application Express, converts xml and fop to pdf">
<link rel="stylesheet" href="webjars/pico/css/pico.min.css">
<title>Apache FOP for Oracle APEX</title> <title>Apache FOP for Oracle APEX</title>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head> </head>
<body> <body>
<h1>JSP - Apache FOP (Formatting Objects Processor) integration for Oracle APEX</h1> <main class="container">
<br/> <hgroup>
<%--suppress HtmlUnknownTarget --%> <h1>Apache FOP integration for Oracle APEX</h1>
<a href="pdf">pdf Servlet / Hello World / fo2pdf</a><br/> <h2>FOP = Formatting Objects Processor</h2>
<%--suppress HtmlUnknownTarget --%> </hgroup>
<a href="monitoring">JavaMelody Monitoring</a> <ul>
<h2>Sample APEX Settings</h2> <li>Demo: <a href="pdf" data-tooltip="Run pdf servlet with demo data">pdf servlet / fo2pdf</a></li>
<table> <li>Monitoring: <a href="monitoring" data-tooltip="Go to JavaMelody Monitoring page">JavaMelody</a></li>
</ul>
<!-- <a href="pdf">pdf Servlet / Hello World / fo2pdf</a><br/> -->
<%--suppress HtmlUnknownTarget --%>
<!-- <a href="monitoring">JavaMelody Monitoring</a> -->
<hgroup>
<h2>Sample APEX Settings</h2>
<h3>Internal Workspace / Instance Settings / Report Printing</h3>
</hgroup>
<table role="grid">
<thead> <thead>
<tr> <tr>
<td><b>Parameter</b></td> <th scope="col">Parameter</th>
<td><b>Value</b></td> <th scope="col">Value</th>
</tr> </tr>
</thead> </thead>
<tr> <tr>
<td>PrintServer</td> <th scope="row">PrintServer</th>
<td>External (Apache FOP)</td> <td>External (Apache FOP)</td>
</tr> </tr>
<tr> <tr>
<td>Protocol</td> <th scope="row">Protocol</th>
<td>HTTP / HTTPS</td> <td>HTTP / HTTPS</td>
</tr> </tr>
<tr> <tr>
<td>Host</td> <th scope="row">Host</th>
<td>127.0.0.1</td> <td>127.0.0.1</td>
</tr> </tr>
<tr> <tr>
<td>Port</td> <th scope="row">Port</th>
<td>8080</td> <td>8080</td>
</tr> </tr>
<tr> <tr>
<td>Script</td> <th scope="row">Script</th>
<td>${pageContext.request.contextPath}/pdf</td> <td>${pageContext.request.contextPath}/pdf</td>
</tr> </tr>
<tr> <tr>
@ -50,19 +58,32 @@
</tr> </tr>
</table> </table>
<h2>Debugging</h2> <hgroup>
<span> <h2>Debugging</h2>
# Add to logging.properties<br/> <h3>Add to tomcat conf/logging.properties</h3>
org.apache.tomcat.util.http.Parameters.level = ALL<br/> </hgroup>
de.pdv.apex.level = ALL <pre>org.apache.tomcat.util.http.Parameters.level = ALL
</span> de.pdv.apex.level = ALL</pre>
<span> <h2>Server Info / Environment</h2>
<h2>Server Info</h2> <%--@elvariable id="System" type=""--%>
Server Version: <%= application.getServerInfo() %><br/> <pre>
Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br/> Server Version: <%= application.getServerInfo() %>
JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br/> Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %>
Web Application Context Path = ${pageContext.request.contextPath}<br/> JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>
</span> Context Path: ${pageContext.request.contextPath}
java.version: ${System.getProperty("java.version")}
java.vm.vendor: ${System.getProperty("java.vm.vendor")}
user.country: ${System.getProperty("user.country")}
user.language: ${System.getProperty("user.language")}
user.name: ${System.getProperty("user.name")}
user.timezone: ${System.getProperty("user.timezone")}
os.name: ${System.getProperty("os.name")}
os.version: ${System.getProperty("os.version")}
file.encoding: ${System.getProperty("file.encoding")}
sun.jnu.encoding: ${System.getProperty("sun.jnu.encoding")}</pre>
<p>page build with <a href="https://picocss.com/">Pico.css</a>, fop conversion with <a href="https://xmlgraphics.apache.org/fop/">Apache FOP</a> </p>
</main>
</body> </body>
</html> </html>