servlet60 / jetty 12

This commit is contained in:
oliver1 2024-07-24 22:12:01 +02:00
parent 117ecf2fe9
commit d7dd95c2a6
5 changed files with 19 additions and 13 deletions

View File

@ -9,3 +9,4 @@ updates:
directory: "/" # Location of package manifests directory: "/" # Location of package manifests
schedule: schedule:
interval: "daily" interval: "daily"
target-branch: "SERVLET60"

View File

@ -25,10 +25,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up JDK 11 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
java-version: '11' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file settings-path: ${{ github.workspace }} # location for the settings.xml file

View File

@ -16,7 +16,7 @@ jobs:
strategy: strategy:
matrix: matrix:
distribution: [ 'temurin' ] distribution: [ 'temurin' ]
java: [ '11', '17', '21' ] java: [ '17', '21' ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup java - name: Setup java

View File

@ -8,8 +8,8 @@ Fahrdienst-Anwendung / Kostenblatt
https://xmlgraphics.apache.org/fop/ https://xmlgraphics.apache.org/fop/
* Uses JavaMelody for monitoring * Uses JavaMelody for monitoring
https://github.com/javamelody/javamelody/wiki https://github.com/javamelody/javamelody/wiki
* Use Java 11 LTS (also tested with Java 17 LTS and Java 21 LTS) * Use Java 17 LTS (also tested with Java 21 LTS)
* Use Tomcat 10.1.x (Jakarta EE) * Use Tomcat 10.1.x+ (Jakarta EE / Servlet 6.0) or Jetty 12
## Run tests ## Run tests
`mvn test` `mvn test`
@ -42,7 +42,7 @@ org.apache.tomcat.util.http.Parameters.level = ALL
de.pdv.apex.level = ALL de.pdv.apex.level = ALL
``` ```
### Deploy to tomcat 9.x (IntelliJ / Netbeans) ### Deploy to tomcat 10.1.x+ or Jetty 12 (IntelliJ / Netbeans)
Run http://localhost:port/ Run http://localhost:port/
Example: Example:

19
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.13.4-SNAPSHOT</version> <version>2.0.0-SNAPSHOT</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>
@ -18,6 +18,7 @@
<junit.version>5.10.2</junit.version> <junit.version>5.10.2</junit.version>
<batik.version>1.16</batik.version> <batik.version>1.16</batik.version>
<pdfbox.version>3.0.2</pdfbox.version> <pdfbox.version>3.0.2</pdfbox.version>
<jettyVersion>12.0.11</jettyVersion>
<sonar.organization>omaster395464gh</sonar.organization> <sonar.organization>omaster395464gh</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url> <sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties> </properties>
@ -118,7 +119,7 @@
<plugin> <plugin>
<groupId>org.cyclonedx</groupId> <groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId> <artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.9</version> <version>2.8.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
@ -129,7 +130,7 @@
</executions> </executions>
<configuration> <configuration>
<projectType>library</projectType> <projectType>library</projectType>
<schemaVersion>1.4</schemaVersion> <schemaVersion>1.5</schemaVersion>
<includeBomSerialNumber>true</includeBomSerialNumber> <includeBomSerialNumber>true</includeBomSerialNumber>
<includeCompileScope>true</includeCompileScope> <includeCompileScope>true</includeCompileScope>
<includeProvidedScope>true</includeProvidedScope> <includeProvidedScope>true</includeProvidedScope>
@ -147,20 +148,24 @@
<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.4.0</version> <version>3.4.3</version>
<configuration> <configuration>
<from> <from>
<image>compile.pdv.lan:8001/product/base/vis-tomcat:9.0</image> <image>jetty:12.0-jdk17-alpine-eclipse-temurin</image>
</from> </from>
<to> <to>
<image>fop4apex</image> <image>fop4apex</image>
</to> </to>
<container> <container>
<appRoot>/opt/pdv/webapps/fop4apex</appRoot> <entrypoint>java,-jar,/usr/local/jetty/start.jar</entrypoint>
</container> </container>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-maven-plugin</artifactId>
<version>${jettyVersion}</version>
</plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>