+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/business_domain/cart/spring/pom.xml b/benchmark/business_domain/cart/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c6e9f0fcd6ff279d6263b2f2720acf1d43a031e3
--- /dev/null
+++ b/benchmark/business_domain/cart/spring/pom.xml
@@ -0,0 +1,62 @@
+
+ 4.0.0
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+
+ spring.examples.tutorial.cart
+ parent
+ 0.0.1-SNAPSHOT
+ pom
+
+
+ 17
+ 17
+ 3.4.2
+ UTF-8
+
+
+
+ cart-ejb
+ cart-web
+
+
+
+
+
+ org.apache.tomcat.embed
+ tomcat-embed-core
+ 11.0.12
+
+
+ org.springframework.boot
+ spring-boot-dependencies
+ ${spring-boot.version}
+ pom
+ import
+
+
+
+
+
+ ${project.artifactId}
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot.version}
+
+
+
+
+
diff --git a/benchmark/business_domain/cart/spring/test.sh b/benchmark/business_domain/cart/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..7b2dde2c6a709b55ecbd80a6f6aed435713e4373
--- /dev/null
+++ b/benchmark/business_domain/cart/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/cart}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/converter/jakarta/.dockerignore b/benchmark/business_domain/converter/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/converter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/converter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/converter/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/converter/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/converter/jakarta/Dockerfile b/benchmark/business_domain/converter/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..52a2b7f77dd0c4ca02f541e3b14ae226b0c19490
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["mvn", "liberty:run"]
diff --git a/benchmark/business_domain/converter/jakarta/mvnw b/benchmark/business_domain/converter/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..41c0f0c23db5dca836d3db1a17a7a28444d17d74
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/converter/jakarta/mvnw.cmd b/benchmark/business_domain/converter/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..86115719e5383e94597f918bf18c5ecbb7cfe492
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/converter/jakarta/pom.xml b/benchmark/business_domain/converter/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8dfe48dc5fbb929bfb3ee00579d47446c4f9e736
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/pom.xml
@@ -0,0 +1,74 @@
+
+
+
+ 4.0.0
+
+ jakarta.examples.tutorial.ejb
+ converter
+ 10-SNAPSHOT
+
+ war
+
+ ${project.artifactId}
+
+
+ 3.8.1
+ 3.3.1
+ UTF-8
+ 10.0.0
+ 3.10.3
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakarta.jakartaee-api.version}
+ provided
+
+
+
+
+ ${project.artifactId}
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+ 11
+ 11
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+ false
+
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ ${liberty.maven.plugin.version}
+
+ defaultServer
+ ${project.basedir}/src/main/liberty/config
+
+
+
+
+
diff --git a/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/ejb/ConverterBean.java b/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/ejb/ConverterBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..4f08e63079a5c181930d30f3a8afc85fa2544912
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/ejb/ConverterBean.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.converter.ejb;
+
+import java.math.BigDecimal;
+
+import jakarta.ejb.Stateless;
+
+/**
+ * This is the bean class for the ConverterBean enterprise bean.
+ * @author ian
+ */
+@Stateless
+public class ConverterBean {
+ private final BigDecimal yenRate = new BigDecimal("104.34");
+ private final BigDecimal euroRate = new BigDecimal("0.007");
+
+ public BigDecimal dollarToYen(BigDecimal dollars) {
+ BigDecimal result = dollars.multiply(yenRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+
+ public BigDecimal yenToEuro(BigDecimal yen) {
+ BigDecimal result = yen.multiply(euroRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+}
diff --git a/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/web/ConverterServlet.java b/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/web/ConverterServlet.java
new file mode 100644
index 0000000000000000000000000000000000000000..50f0c593366dc27f451a033f8f0b746889a8abba
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/src/main/java/jakarta/tutorial/converter/web/ConverterServlet.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.converter.web;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.math.BigDecimal;
+
+import jakarta.ejb.EJB;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.annotation.WebServlet;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import jakarta.tutorial.converter.ejb.ConverterBean;
+
+@WebServlet(urlPatterns="/")
+public class ConverterServlet extends HttpServlet {
+ private static final long serialVersionUID = -8312407323476917087L;
+ @EJB
+ ConverterBean converter;
+
+ /**
+ * Processes requests for both HTTP GET and POST methods.
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException {
+ response.setContentType("text/html;charset=UTF-8");
+ PrintWriter out = response.getWriter();
+ // Output the results
+ out.println("");
+ out.println("");
+ out.println("Servlet ConverterServlet ");
+ out.println("");
+ out.println("");
+ out.println("Servlet ConverterServlet at " +
+ request.getContextPath() + " ");
+ try {
+ String amount = request.getParameter("amount");
+ if (amount != null && amount.length() > 0) {
+ // convert the amount to a BigDecimal from the request parameter
+ BigDecimal d = new BigDecimal(amount);
+ // call the ConverterBean.dollarToYen() method to get the amount
+ // in Yen
+ BigDecimal yenAmount = converter.dollarToYen(d);
+
+ // call the ConverterBean.yenToEuro() method to get the amount
+ // in Euros
+ BigDecimal euroAmount = converter.yenToEuro(yenAmount);
+
+ out.println("" + amount + " dollars are " +
+ yenAmount.toPlainString() + " yen.
");
+ out.println("" + yenAmount.toPlainString() + " yen are " +
+ euroAmount.toPlainString() + " Euro.
");
+ } else {
+ out.println("Enter a dollar amount to convert:
");
+ out.println("");
+ }
+
+ } finally {
+ out.println("");
+ out.println("");
+ out.close();
+ }
+ }
+
+ //
+ /**
+ * Handles the HTTP GET method.
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doGet(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException {
+ processRequest(request, response);
+ }
+
+ /**
+ * Handles the HTTP POST method.
+ * @param request servlet request
+ * @param response servlet response
+ * @throws ServletException if a servlet-specific error occurs
+ * @throws IOException if an I/O error occurs
+ */
+ @Override
+ protected void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException {
+ processRequest(request, response);
+ }
+
+ /**
+ * Returns a short description of the servlet.
+ * @return a String containing servlet description
+ */
+ @Override
+ public String getServletInfo() {
+ return "Short description";
+ }//
+}
diff --git a/benchmark/business_domain/converter/jakarta/src/main/liberty/config/server.xml b/benchmark/business_domain/converter/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e7dc58e95ace9a560228ebcc9860a8cfb80e1d1c
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,15 @@
+
+
+
+ jakartaee-10.0
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/converter/jakarta/src/main/resources/.gitkeep b/benchmark/business_domain/converter/jakarta/src/main/resources/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/benchmark/business_domain/converter/jakarta/src/main/webapp/WEB-INF/.gitkeep b/benchmark/business_domain/converter/jakarta/src/main/webapp/WEB-INF/.gitkeep
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/benchmark/business_domain/converter/jakarta/test.sh b/benchmark/business_domain/converter/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..e4924e20774d21fae23fe9cbf99314f56301f800
--- /dev/null
+++ b/benchmark/business_domain/converter/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/converter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/converter/quarkus/.dockerignore b/benchmark/business_domain/converter/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/converter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/converter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/converter/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/converter/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/converter/quarkus/Dockerfile b/benchmark/business_domain/converter/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..dcd2739646fb4fd95a063f846da8c8b49776c723
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["java", "-jar", "target/quarkus-app/quarkus-run.jar"]
diff --git a/benchmark/business_domain/converter/quarkus/README.md b/benchmark/business_domain/converter/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..a109b649e1013f38d66942d1e66ea675b45d6cd9
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/README.md
@@ -0,0 +1,62 @@
+# converter
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/converter-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Provided Code
+
+### REST
+
+Easily start your REST Web Services
+
+[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
diff --git a/benchmark/business_domain/converter/quarkus/mvnw b/benchmark/business_domain/converter/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..5e9618cac26d1c3254dc88232a8c4d841316bd29
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/mvnw
@@ -0,0 +1,332 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.2
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /usr/local/etc/mavenrc ]; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ JAVA_HOME="$(/usr/libexec/java_home)"
+ export JAVA_HOME
+ else
+ JAVA_HOME="/Library/Java/Home"
+ export JAVA_HOME
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
+ && JAVA_HOME="$(
+ cd "$JAVA_HOME" || (
+ echo "cannot cd into $JAVA_HOME." >&2
+ exit 1
+ )
+ pwd
+ )"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr "$javaExecutable" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname "$javaExecutable")"
+ javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f "$javaExecutable")"
+ fi
+ javaHome="$(dirname "$javaExecutable")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(
+ \unset -f command 2>/dev/null
+ \command -v java
+ )"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set." >&2
+fi
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir" >&2
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.." || exit 1
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ printf '%s' "$(
+ cd "$basedir" || exit 1
+ pwd
+ )"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ # Remove \r in case we run on Windows within Git Bash
+ # and check out the repository with auto CRLF management
+ # enabled. Otherwise, we may read lines that are delimited with
+ # \r\n and produce $'-Xarg\r' rather than -Xarg due to word
+ # splitting rules.
+ tr -s '\r\n' ' ' <"$1"
+ fi
+}
+
+log() {
+ if [ "$MVNW_VERBOSE" = true ]; then
+ printf '%s\n' "$1"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+export MAVEN_PROJECTBASEDIR
+log "$MAVEN_PROJECTBASEDIR"
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
+if [ -r "$wrapperJarPath" ]; then
+ log "Found $wrapperJarPath"
+else
+ log "Couldn't find $wrapperJarPath, downloading it ..."
+
+ if [ -n "$MVNW_REPOURL" ]; then
+ wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ else
+ wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ fi
+ while IFS="=" read -r key value; do
+ # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
+ safeValue=$(echo "$value" | tr -d '\r')
+ case "$key" in wrapperUrl)
+ wrapperUrl="$safeValue"
+ break
+ ;;
+ esac
+ done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+ log "Downloading from: $wrapperUrl"
+
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ log "Found wget ... using wget"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ log "Found curl ... using curl"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ else
+ curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ fi
+ else
+ log "Falling back to using Java to download"
+ javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaSource=$(cygpath --path --windows "$javaSource")
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaSource" ]; then
+ if [ ! -e "$javaClass" ]; then
+ log " - Compiling MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/javac" "$javaSource")
+ fi
+ if [ -e "$javaClass" ]; then
+ log " - Running MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+# If specified, validate the SHA-256 sum of the Maven wrapper jar file
+wrapperSha256Sum=""
+while IFS="=" read -r key value; do
+ case "$key" in wrapperSha256Sum)
+ wrapperSha256Sum=$value
+ break
+ ;;
+ esac
+done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+if [ -n "$wrapperSha256Sum" ]; then
+ wrapperSha256Result=false
+ if command -v sha256sum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $wrapperSha256Result = false ]; then
+ echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
+ echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
+ echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] \
+ && MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+# shellcheck disable=SC2086 # safe args
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/converter/quarkus/mvnw.cmd b/benchmark/business_domain/converter/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..4136715f081ecad67b4ba4760f84065285a8e72b
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/mvnw.cmd
@@ -0,0 +1,206 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.2
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo. >&2
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo. >&2
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash;"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/converter/quarkus/pom.xml b/benchmark/business_domain/converter/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1c94cc3c7c4570b9f155968de619b98152f50544
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/pom.xml
@@ -0,0 +1,124 @@
+
+
+ 4.0.0
+ quarkus.examples.tutorial
+ converter
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 21
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+
+
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-rest
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+ io.rest-assured
+ rest-assured
+ test
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.jvm b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.jvm
new file mode 100644
index 0000000000000000000000000000000000000000..ae181876fe054be70c96170c0b0145f59e3823b8
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.jvm
@@ -0,0 +1,98 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/converter-jvm .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter-jvm
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter-jvm
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+# We make four distinct layers so if there are application changes the library layers can be re-used
+COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
+COPY --chown=185 target/quarkus-app/*.jar /deployments/
+COPY --chown=185 target/quarkus-app/app/ /deployments/app/
+COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
+
diff --git a/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.legacy-jar b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.legacy-jar
new file mode 100644
index 0000000000000000000000000000000000000000..c30c2fbc95143fca26060b71679500e09a0d0a61
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.legacy-jar
@@ -0,0 +1,94 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/converter-legacy-jar .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter-legacy-jar
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter-legacy-jar
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+COPY target/lib/* /deployments/lib/
+COPY target/*-runner.jar /deployments/quarkus-run.jar
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
diff --git a/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native
new file mode 100644
index 0000000000000000000000000000000000000000..6e05ea83b45f83cc222677e2729476b6818de2eb
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native
@@ -0,0 +1,29 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native -t quarkus/converter .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter
+#
+# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.6` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
+###
+FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native-micro b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native-micro
new file mode 100644
index 0000000000000000000000000000000000000000..f759763ddffc7e2435b268662f9b49bb00656c1e
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/docker/Dockerfile.native-micro
@@ -0,0 +1,32 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+# It uses a micro base image, tuned for Quarkus native executables.
+# It reduces the size of the resulting container image.
+# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/converter .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/converter
+#
+# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
+###
+FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterBean.java b/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..fe3797b745fb3f6e1df35dc1fe572591e11e25e2
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterBean.java
@@ -0,0 +1,21 @@
+package quarkus.examples.tutorial;
+
+import java.math.BigDecimal;
+
+import jakarta.enterprise.context.ApplicationScoped;
+
+@ApplicationScoped
+public class ConverterBean {
+ private final BigDecimal yenRate = new BigDecimal("104.34");
+ private final BigDecimal euroRate = new BigDecimal("0.007");
+
+ public BigDecimal dollarToYen(BigDecimal dollars) {
+ BigDecimal result = dollars.multiply(yenRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+
+ public BigDecimal yenToEuro(BigDecimal yen) {
+ BigDecimal result = yen.multiply(euroRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+}
diff --git a/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterResource.java b/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterResource.java
new file mode 100644
index 0000000000000000000000000000000000000000..c40131c79510a644219a678f9a91a84dd7c71ada
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/java/quarkus/examples/tutorial/ConverterResource.java
@@ -0,0 +1,60 @@
+package quarkus.examples.tutorial;
+
+import java.math.BigDecimal;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.QueryParam;
+import jakarta.ws.rs.core.Context;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.UriInfo;
+
+@Path("/")
+public class ConverterResource {
+
+ @Inject
+ ConverterBean converter;
+
+ @Context
+ UriInfo uriInfo;
+
+ @GET
+ @Produces(MediaType.TEXT_HTML)
+ public String convert(@QueryParam("amount") String amount) {
+ StringBuilder html = new StringBuilder();
+ html.append("")
+ .append("")
+ .append("Servlet ConverterServlet ")
+ .append("")
+ .append("")
+ .append("Servlet ConverterServlet at ").append(uriInfo.getBaseUri().getPath())
+ .append(" ");
+
+ try {
+ if (amount != null && !amount.isEmpty()) {
+ BigDecimal d = new BigDecimal(amount);
+ BigDecimal yenAmount = converter.dollarToYen(d);
+ BigDecimal euroAmount = converter.yenToEuro(yenAmount);
+
+ html.append("").append(amount).append(" dollars are ")
+ .append(yenAmount.toPlainString()).append(" yen.
");
+ html.append("").append(yenAmount.toPlainString()).append(" yen are ")
+ .append(euroAmount.toPlainString()).append(" Euro.
");
+ } else {
+ html.append("Enter a dollar amount to convert:
")
+ .append("");
+ }
+ } finally {
+ html.append("")
+ .append("");
+ }
+
+ return html.toString();
+ }
+}
diff --git a/benchmark/business_domain/converter/quarkus/src/main/resources/application.properties b/benchmark/business_domain/converter/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..3fcbc9b6944249bf750e37a70a073ffbbdb536c3
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/src/main/resources/application.properties
@@ -0,0 +1 @@
+quarkus.http.root-path=/converter
\ No newline at end of file
diff --git a/benchmark/business_domain/converter/quarkus/test.sh b/benchmark/business_domain/converter/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a38533b5252b94c78ef2f5f7cbb7b59e55ab133d
--- /dev/null
+++ b/benchmark/business_domain/converter/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/converter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/converter/spring/.dockerignore b/benchmark/business_domain/converter/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/converter/spring/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/converter/spring/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/converter/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/converter/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/converter/spring/Dockerfile b/benchmark/business_domain/converter/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..1e5c9660ba86fdee01192feca7895ddda92c99e3
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["sh", "-c", "java -jar target/*.jar"]
diff --git a/benchmark/business_domain/converter/spring/mvnw b/benchmark/business_domain/converter/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/business_domain/converter/spring/mvnw.cmd b/benchmark/business_domain/converter/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/business_domain/converter/spring/pom.xml b/benchmark/business_domain/converter/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ca8e8aa3128ccc0104bafead3ee64461174d962a
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/pom.xml
@@ -0,0 +1,80 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+ spring.examples.tutorial
+ converter
+ 0.0.1-SNAPSHOT
+ converter
+ Demo project for Spring Boot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ 17
+ UTF-8
+
+
+
+ org.springframework
+ spring-core
+ 6.2.11
+
+
+ ch.qos.logback
+ logback-core
+ 1.5.19
+
+
+ ch.qos.logback
+ logback-classic
+ 1.5.19
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/ConverterApplication.java b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/ConverterApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..314bbcf003a79f7fc842ff3174533f89feeed7cd
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/ConverterApplication.java
@@ -0,0 +1,12 @@
+package spring.examples.tutorial.converter;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class ConverterApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(ConverterApplication.class, args);
+ }
+}
diff --git a/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/controller/ConverterController.java b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/controller/ConverterController.java
new file mode 100644
index 0000000000000000000000000000000000000000..922b01f6ff456a20c8a91af555314aefd0485665
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/controller/ConverterController.java
@@ -0,0 +1,55 @@
+package spring.examples.tutorial.converter.controller;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.math.BigDecimal;
+
+import jakarta.servlet.http.HttpServletRequest;
+import spring.examples.tutorial.converter.service.ConverterService;
+
+@RestController
+public class ConverterController {
+
+ @Autowired
+ private ConverterService converter;
+
+ @GetMapping("/")
+ public String convert(@RequestParam(value = "amount", required = false) String amount,
+ HttpServletRequest request) {
+ StringBuilder html = new StringBuilder();
+ html.append("")
+ .append("")
+ .append("Servlet ConverterServlet ")
+ .append("")
+ .append("")
+ .append("Servlet ConverterServlet at ").append(request.getContextPath())
+ .append(" ");
+
+ try {
+ if (amount != null && !amount.isEmpty()) {
+ BigDecimal d = new BigDecimal(amount);
+ BigDecimal yenAmount = converter.dollarToYen(d);
+ BigDecimal euroAmount = converter.yenToEuro(yenAmount);
+
+ html.append("").append(amount).append(" dollars are ")
+ .append(yenAmount.toPlainString()).append(" yen.
");
+ html.append("").append(yenAmount.toPlainString()).append(" yen are ")
+ .append(euroAmount.toPlainString()).append(" Euro.
");
+ } else {
+ html.append("Enter a dollar amount to convert:
")
+ .append("");
+ }
+ } finally {
+ html.append("")
+ .append("");
+ }
+
+ return html.toString();
+ }
+}
diff --git a/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/service/ConverterService.java b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/service/ConverterService.java
new file mode 100644
index 0000000000000000000000000000000000000000..5dc0552bbb1c8a2a7ec64bc1447f31417ed09aa5
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/src/main/java/spring/examples/tutorial/converter/service/ConverterService.java
@@ -0,0 +1,20 @@
+package spring.examples.tutorial.converter.service;
+
+import java.math.BigDecimal;
+import org.springframework.stereotype.Service;
+
+@Service
+public class ConverterService {
+ private final BigDecimal yenRate = new BigDecimal("104.34");
+ private final BigDecimal euroRate = new BigDecimal("0.007");
+
+ public BigDecimal dollarToYen(BigDecimal dollars) {
+ BigDecimal result = dollars.multiply(yenRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+
+ public BigDecimal yenToEuro(BigDecimal yen) {
+ BigDecimal result = yen.multiply(euroRate);
+ return result.setScale(2, BigDecimal.ROUND_UP);
+ }
+}
diff --git a/benchmark/business_domain/converter/spring/src/main/resources/application.properties b/benchmark/business_domain/converter/spring/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c2b8af1d19392918a2203872d151b67df231bcec
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/src/main/resources/application.properties
@@ -0,0 +1,3 @@
+spring.application.name=converter
+
+server.servlet.contextPath=/converter
diff --git a/benchmark/business_domain/converter/spring/test.sh b/benchmark/business_domain/converter/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a38533b5252b94c78ef2f5f7cbb7b59e55ab133d
--- /dev/null
+++ b/benchmark/business_domain/converter/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/converter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/counter/jakarta/.dockerignore b/benchmark/business_domain/counter/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/counter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/counter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/counter/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/counter/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/counter/jakarta/Dockerfile b/benchmark/business_domain/counter/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..52a2b7f77dd0c4ca02f541e3b14ae226b0c19490
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["mvn", "liberty:run"]
diff --git a/benchmark/business_domain/counter/jakarta/mvnw b/benchmark/business_domain/counter/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..41c0f0c23db5dca836d3db1a17a7a28444d17d74
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/counter/jakarta/mvnw.cmd b/benchmark/business_domain/counter/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..86115719e5383e94597f918bf18c5ecbb7cfe492
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/counter/jakarta/pom.xml b/benchmark/business_domain/counter/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..60be2303f13ac448429a994843cb8a7c5d9319fc
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/pom.xml
@@ -0,0 +1,71 @@
+
+
+
+ 4.0.0
+
+ jakarta.examples.tutorial.ejb
+ counter
+ 10-SNAPSHOT
+
+ war
+
+ ${project.artifactId}
+
+
+ 3.8.1
+ 3.3.1
+ UTF-8
+ 10.0.0
+ 3.10.3
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakarta.jakartaee-api.version}
+ provided
+
+
+
+
+ ${project.artifactId}
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+ 11
+ 11
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ ${maven.war.plugin.version}
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ ${liberty.maven.plugin.version}
+
+ defaultServer
+ ${project.basedir}/src/main/liberty/config
+
+
+
+
+
diff --git a/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/ejb/CounterBean.java b/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/ejb/CounterBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..a8c7571bca266028f98a3eb1b14e1e5b29093d92
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/ejb/CounterBean.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.counter.ejb;
+
+import jakarta.ejb.Singleton;
+
+/**
+ *
+ * @author ian
+ * CounterBean is a simple singleton session bean that records the number
+ * of hits to a web page.
+ */
+@Singleton
+public class CounterBean {
+ private int hits = 1;
+
+ // Increment and return the number of hits
+ public int getHits() {
+ return hits++;
+ }
+}
diff --git a/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/web/Count.java b/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/web/Count.java
new file mode 100644
index 0000000000000000000000000000000000000000..c49803c5417aef3addca674cbe99b0f33a8f6e6a
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/java/jakarta/tutorial/counter/web/Count.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.counter.web;
+
+import java.io.Serializable;
+
+import jakarta.ejb.EJB;
+import jakarta.enterprise.context.ConversationScoped;
+import jakarta.inject.Named;
+import jakarta.tutorial.counter.ejb.CounterBean;
+
+/**
+ *
+ * @author ian
+ */
+@Named
+@ConversationScoped
+public class Count implements Serializable {
+ @EJB
+ private CounterBean counterBean;
+
+ private int hitCount;
+
+ public Count() {
+ this.hitCount = 0;
+ }
+
+ public int getHitCount() {
+ hitCount = counterBean.getHits();
+ return hitCount;
+ }
+
+ public void setHitCount(int newHits) {
+ this.hitCount = newHits;
+ }
+}
diff --git a/benchmark/business_domain/counter/jakarta/src/main/liberty/config/server.xml b/benchmark/business_domain/counter/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..790077dd5f98d8420cd291851cb334c67fc65917
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,15 @@
+
+
+
+ jakartaee-10.0
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/counter/jakarta/src/main/webapp/WEB-INF/web.xml b/benchmark/business_domain/counter/jakarta/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b2312b6b34f6c906e77e836b858d1f7e89da0fcf
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,50 @@
+
+
+
+
+ counter
+
+
+
+ Tell the runtime where we are in the project development
+ lifecycle. Valid values are:
+ Development, UnitTest, SystemTest, or Production.
+ The runtime will display helpful hints to correct common mistakes
+ when the value is Development.
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+
+ Faces Servlet
+ *.xhtml
+
+
+
+ index.xhtml
+
+
+
diff --git a/benchmark/business_domain/counter/jakarta/src/main/webapp/index.xhtml b/benchmark/business_domain/counter/jakarta/src/main/webapp/index.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..cc75fd9fb8a5801bdaca95d831e63733833b185a
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/webapp/index.xhtml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+ This page has been accessed #{count.hitCount} time(s).
+
+
+ Hooray!
+
+
+
+
diff --git a/benchmark/business_domain/counter/jakarta/src/main/webapp/resources/css/default.css b/benchmark/business_domain/counter/jakarta/src/main/webapp/resources/css/default.css
new file mode 100644
index 0000000000000000000000000000000000000000..33a5857014cfcf5cdb54892c9a1b7fb02d5a1ad8
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/webapp/resources/css/default.css
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ color: #000000;
+ margin: 10px;
+}
+
+h1 {
+ font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ border-bottom: 1px solid #AFAFAF;
+ font-size: 16px;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #D20005;
+}
+
+a:link, a:visited {
+ color: #045491;
+ font-weight : bold;
+ text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+ color: #045491;
+ font-weight : bold;
+ text-decoration : underline;
+}
diff --git a/benchmark/business_domain/counter/jakarta/src/main/webapp/template.xhtml b/benchmark/business_domain/counter/jakarta/src/main/webapp/template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..beef16a0ada3572ae0e8a1fdd78edb21ec745c30
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/src/main/webapp/template.xhtml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ counter - A singleton session bean example.
+
+
+
+
+
+ Default Title
+
+
+ Default Body
+
+
+
+
diff --git a/benchmark/business_domain/counter/jakarta/test.sh b/benchmark/business_domain/counter/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..11ede8c9aba9deb7541bf09f0ff08cdfd0b3c3f5
--- /dev/null
+++ b/benchmark/business_domain/counter/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/counter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/counter/quarkus/.dockerignore b/benchmark/business_domain/counter/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/counter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/counter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/counter/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/counter/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/counter/quarkus/Dockerfile b/benchmark/business_domain/counter/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..dcd2739646fb4fd95a063f846da8c8b49776c723
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["java", "-jar", "target/quarkus-app/quarkus-run.jar"]
diff --git a/benchmark/business_domain/counter/quarkus/README.md b/benchmark/business_domain/counter/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..ef4384365b11151ee7b35e0d89d182521c06c64d
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/README.md
@@ -0,0 +1,58 @@
+# counter
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/counter-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Related Guides
+
+- Apache MyFaces ([guide](https://myfaces.apache.org/#/coregettingstarted?id=quarkus)): Apache MyFaces is a JSF / Faces implementation.
diff --git a/benchmark/business_domain/counter/quarkus/mvnw b/benchmark/business_domain/counter/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..5e9618cac26d1c3254dc88232a8c4d841316bd29
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/mvnw
@@ -0,0 +1,332 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.2
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /usr/local/etc/mavenrc ]; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ JAVA_HOME="$(/usr/libexec/java_home)"
+ export JAVA_HOME
+ else
+ JAVA_HOME="/Library/Java/Home"
+ export JAVA_HOME
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
+ && JAVA_HOME="$(
+ cd "$JAVA_HOME" || (
+ echo "cannot cd into $JAVA_HOME." >&2
+ exit 1
+ )
+ pwd
+ )"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr "$javaExecutable" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname "$javaExecutable")"
+ javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f "$javaExecutable")"
+ fi
+ javaHome="$(dirname "$javaExecutable")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(
+ \unset -f command 2>/dev/null
+ \command -v java
+ )"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set." >&2
+fi
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir" >&2
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.." || exit 1
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ printf '%s' "$(
+ cd "$basedir" || exit 1
+ pwd
+ )"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ # Remove \r in case we run on Windows within Git Bash
+ # and check out the repository with auto CRLF management
+ # enabled. Otherwise, we may read lines that are delimited with
+ # \r\n and produce $'-Xarg\r' rather than -Xarg due to word
+ # splitting rules.
+ tr -s '\r\n' ' ' <"$1"
+ fi
+}
+
+log() {
+ if [ "$MVNW_VERBOSE" = true ]; then
+ printf '%s\n' "$1"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+export MAVEN_PROJECTBASEDIR
+log "$MAVEN_PROJECTBASEDIR"
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
+if [ -r "$wrapperJarPath" ]; then
+ log "Found $wrapperJarPath"
+else
+ log "Couldn't find $wrapperJarPath, downloading it ..."
+
+ if [ -n "$MVNW_REPOURL" ]; then
+ wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ else
+ wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ fi
+ while IFS="=" read -r key value; do
+ # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
+ safeValue=$(echo "$value" | tr -d '\r')
+ case "$key" in wrapperUrl)
+ wrapperUrl="$safeValue"
+ break
+ ;;
+ esac
+ done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+ log "Downloading from: $wrapperUrl"
+
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ log "Found wget ... using wget"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ log "Found curl ... using curl"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ else
+ curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ fi
+ else
+ log "Falling back to using Java to download"
+ javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaSource=$(cygpath --path --windows "$javaSource")
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaSource" ]; then
+ if [ ! -e "$javaClass" ]; then
+ log " - Compiling MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/javac" "$javaSource")
+ fi
+ if [ -e "$javaClass" ]; then
+ log " - Running MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+# If specified, validate the SHA-256 sum of the Maven wrapper jar file
+wrapperSha256Sum=""
+while IFS="=" read -r key value; do
+ case "$key" in wrapperSha256Sum)
+ wrapperSha256Sum=$value
+ break
+ ;;
+ esac
+done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+if [ -n "$wrapperSha256Sum" ]; then
+ wrapperSha256Result=false
+ if command -v sha256sum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $wrapperSha256Result = false ]; then
+ echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
+ echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
+ echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] \
+ && MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+# shellcheck disable=SC2086 # safe args
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/counter/quarkus/mvnw.cmd b/benchmark/business_domain/counter/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..4136715f081ecad67b4ba4760f84065285a8e72b
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/mvnw.cmd
@@ -0,0 +1,206 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.2
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo. >&2
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo. >&2
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash;"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/counter/quarkus/pom.xml b/benchmark/business_domain/counter/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b0b027ca8d94e029e716d6daa7d3f767aaada94d
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/pom.xml
@@ -0,0 +1,120 @@
+
+
+ 4.0.0
+ quarkus.examples.tutorial
+ counter
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 21
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+
+
+
+
+ org.apache.myfaces.core.extensions.quarkus
+ myfaces-quarkus
+ 4.1.2
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.jvm b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.jvm
new file mode 100644
index 0000000000000000000000000000000000000000..9debeb55e0bc2326d289673e557b8b7bc675d392
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.jvm
@@ -0,0 +1,98 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/counter-jvm .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter-jvm
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter-jvm
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+# We make four distinct layers so if there are application changes the library layers can be re-used
+COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
+COPY --chown=185 target/quarkus-app/*.jar /deployments/
+COPY --chown=185 target/quarkus-app/app/ /deployments/app/
+COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
+
diff --git a/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.legacy-jar b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.legacy-jar
new file mode 100644
index 0000000000000000000000000000000000000000..964226b3747e7575ad2287197fdd4c970be67330
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.legacy-jar
@@ -0,0 +1,94 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/counter-legacy-jar .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter-legacy-jar
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter-legacy-jar
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+COPY target/lib/* /deployments/lib/
+COPY target/*-runner.jar /deployments/quarkus-run.jar
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
diff --git a/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native
new file mode 100644
index 0000000000000000000000000000000000000000..ce60316bb528e6b26dc7014cdaf887728a15a39a
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native
@@ -0,0 +1,29 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native -t quarkus/counter .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter
+#
+# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.6` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
+###
+FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native-micro b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native-micro
new file mode 100644
index 0000000000000000000000000000000000000000..c603dcd50cc4eefc3bb8a6584cd95e332eb2d3a8
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/docker/Dockerfile.native-micro
@@ -0,0 +1,32 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+# It uses a micro base image, tuned for Quarkus native executables.
+# It reduces the size of the resulting container image.
+# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/counter .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/counter
+#
+# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
+###
+FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/ejb/CounterBean.java b/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/ejb/CounterBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..ec51845a02d7375f98686cc6ad34bb7bd73b33bc
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/ejb/CounterBean.java
@@ -0,0 +1,13 @@
+package quarkus.tutorial.counter.ejb;
+
+import jakarta.inject.Singleton;
+
+@Singleton
+public class CounterBean {
+ private int hits = 1;
+
+ // Increment and return the number of hits
+ public int getHits() {
+ return hits++;
+ }
+}
diff --git a/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/web/Count.java b/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/web/Count.java
new file mode 100644
index 0000000000000000000000000000000000000000..30028b14c294f9d1c5c3814d7bcd813235e8b915
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/java/quarkus/tutorial/counter/web/Count.java
@@ -0,0 +1,30 @@
+package quarkus.tutorial.counter.web;
+
+import java.io.Serializable;
+
+import jakarta.enterprise.context.SessionScoped;
+import jakarta.inject.Inject;
+import jakarta.inject.Named;
+import quarkus.tutorial.counter.ejb.CounterBean;
+
+@Named
+@SessionScoped // not exactly ConversationScoped, but it's not supported in Quarkus
+public class Count implements Serializable {
+ @Inject
+ private CounterBean counterBean;
+
+ private int hitCount;
+
+ public Count() {
+ this.hitCount = 0;
+ }
+
+ public int getHitCount() {
+ hitCount = counterBean.getHits();
+ return hitCount;
+ }
+
+ public void setHitCount(int newHits) {
+ this.hitCount = newHits;
+ }
+}
diff --git a/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/index.xhtml b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/index.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..cc75fd9fb8a5801bdaca95d831e63733833b185a
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/index.xhtml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+ This page has been accessed #{count.hitCount} time(s).
+
+
+ Hooray!
+
+
+
+
diff --git a/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/resources/css/default.css b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/resources/css/default.css
new file mode 100644
index 0000000000000000000000000000000000000000..33a5857014cfcf5cdb54892c9a1b7fb02d5a1ad8
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/resources/css/default.css
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ color: #000000;
+ margin: 10px;
+}
+
+h1 {
+ font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ border-bottom: 1px solid #AFAFAF;
+ font-size: 16px;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #D20005;
+}
+
+a:link, a:visited {
+ color: #045491;
+ font-weight : bold;
+ text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+ color: #045491;
+ font-weight : bold;
+ text-decoration : underline;
+}
diff --git a/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/template.xhtml b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..beef16a0ada3572ae0e8a1fdd78edb21ec745c30
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/resources/template.xhtml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ counter - A singleton session bean example.
+
+
+
+
+
+ Default Title
+
+
+ Default Body
+
+
+
+
diff --git a/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/web.xml b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b2312b6b34f6c906e77e836b858d1f7e89da0fcf
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/resources/META-INF/web.xml
@@ -0,0 +1,50 @@
+
+
+
+
+ counter
+
+
+
+ Tell the runtime where we are in the project development
+ lifecycle. Valid values are:
+ Development, UnitTest, SystemTest, or Production.
+ The runtime will display helpful hints to correct common mistakes
+ when the value is Development.
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+
+ Faces Servlet
+ *.xhtml
+
+
+
+ index.xhtml
+
+
+
diff --git a/benchmark/business_domain/counter/quarkus/src/main/resources/application.properties b/benchmark/business_domain/counter/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..ff3e7b668621e7158989fefcaa333b8c051f8a60
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/src/main/resources/application.properties
@@ -0,0 +1 @@
+quarkus.http.root-path=/counter
\ No newline at end of file
diff --git a/benchmark/business_domain/counter/quarkus/test.sh b/benchmark/business_domain/counter/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..522e36ed7ac069840c9cbaad668dde195bf71250
--- /dev/null
+++ b/benchmark/business_domain/counter/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/counter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/counter/spring/.dockerignore b/benchmark/business_domain/counter/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/counter/spring/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/counter/spring/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/counter/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/counter/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/counter/spring/Dockerfile b/benchmark/business_domain/counter/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..1e5c9660ba86fdee01192feca7895ddda92c99e3
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["sh", "-c", "java -jar target/*.jar"]
diff --git a/benchmark/business_domain/counter/spring/mvnw b/benchmark/business_domain/counter/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/business_domain/counter/spring/mvnw.cmd b/benchmark/business_domain/counter/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/business_domain/counter/spring/pom.xml b/benchmark/business_domain/counter/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..92bf352797517dbfd41e04c009bec74bd5a298e8
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/pom.xml
@@ -0,0 +1,65 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+ spring.examples.tutorial
+ counter
+ 0.0.1-SNAPSHOT
+ counter
+ Demo project for Spring Boot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ 17
+ UTF-8
+
+
+
+ org.springframework.boot
+ spring-boot-starter-thymeleaf
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/CounterApplication.java b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/CounterApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..ae3adf0bf29c7c30ee956a3daa48f02bbeab2fd4
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/CounterApplication.java
@@ -0,0 +1,13 @@
+package spring.examples.tutorial.counter;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class CounterApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(CounterApplication.class, args);
+ }
+
+}
diff --git a/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/controller/CountController.java b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/controller/CountController.java
new file mode 100644
index 0000000000000000000000000000000000000000..c3cc77167b42771656c3b42125d7ed189c10b17e
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/controller/CountController.java
@@ -0,0 +1,25 @@
+package spring.examples.tutorial.counter.controller;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+import spring.examples.tutorial.counter.service.CounterService;
+
+@Controller
+public class CountController {
+
+ private final CounterService counterService;
+
+ @Autowired
+ public CountController(CounterService counterService) {
+ this.counterService = counterService;
+ }
+
+ @GetMapping("/")
+ public String index(Model model) {
+ int hitCount = counterService.getHits();
+ model.addAttribute("hitCount", hitCount);
+ return "index";
+ }
+}
diff --git a/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/service/CounterService.java b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/service/CounterService.java
new file mode 100644
index 0000000000000000000000000000000000000000..7e941fcda122c3327112def00fd9974f736e25a8
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/java/spring/examples/tutorial/counter/service/CounterService.java
@@ -0,0 +1,12 @@
+package spring.examples.tutorial.counter.service;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class CounterService {
+ private int hits = 1;
+
+ public int getHits() {
+ return hits++;
+ }
+}
diff --git a/benchmark/business_domain/counter/spring/src/main/resources/application.properties b/benchmark/business_domain/counter/spring/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..6eb4ff87ee0c925a605c9352ff151a732cfe4aab
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/resources/application.properties
@@ -0,0 +1,3 @@
+spring.application.name=counter
+
+server.servlet.contextPath=/counter
diff --git a/benchmark/business_domain/counter/spring/src/main/resources/static/css/default.css b/benchmark/business_domain/counter/spring/src/main/resources/static/css/default.css
new file mode 100644
index 0000000000000000000000000000000000000000..33a5857014cfcf5cdb54892c9a1b7fb02d5a1ad8
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/resources/static/css/default.css
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ color: #000000;
+ margin: 10px;
+}
+
+h1 {
+ font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ border-bottom: 1px solid #AFAFAF;
+ font-size: 16px;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #D20005;
+}
+
+a:link, a:visited {
+ color: #045491;
+ font-weight : bold;
+ text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+ color: #045491;
+ font-weight : bold;
+ text-decoration : underline;
+}
diff --git a/benchmark/business_domain/counter/spring/src/main/resources/templates/index.html b/benchmark/business_domain/counter/spring/src/main/resources/templates/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..690fc55704a7560f410988142f8d4b3c92d00225
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/resources/templates/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ This page has been accessed [[${hitCount}]] time(s).
+
+ Hooray!
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/counter/spring/src/main/resources/templates/template.html b/benchmark/business_domain/counter/spring/src/main/resources/templates/template.html
new file mode 100644
index 0000000000000000000000000000000000000000..f7b88a34f27c8c81cead0204eb91982c0345f0c0
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/src/main/resources/templates/template.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+ Counter - A singleton session bean example.
+
+
+
+
+ Default Title
+ Default Body
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/counter/spring/test.sh b/benchmark/business_domain/counter/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..522e36ed7ac069840c9cbaad668dde195bf71250
--- /dev/null
+++ b/benchmark/business_domain/counter/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/counter}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/helloservice/jakarta/.dockerignore b/benchmark/business_domain/helloservice/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/helloservice/jakarta/Dockerfile b/benchmark/business_domain/helloservice/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..5f89bac386bcf1f3e0285b3f2c9cba0e6dd1e4e3
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/Dockerfile
@@ -0,0 +1,32 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["mvn", "liberty:run"]
diff --git a/benchmark/business_domain/helloservice/jakarta/mvnw b/benchmark/business_domain/helloservice/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..41c0f0c23db5dca836d3db1a17a7a28444d17d74
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/helloservice/jakarta/mvnw.cmd b/benchmark/business_domain/helloservice/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..86115719e5383e94597f918bf18c5ecbb7cfe492
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/helloservice/jakarta/pom.xml b/benchmark/business_domain/helloservice/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8b4bd23c90080720a02a9d6fe0225f6720de3edc
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/pom.xml
@@ -0,0 +1,64 @@
+
+
+
+ 4.0.0
+
+ jakarta.examples.tutorial.ejb
+ helloservice
+ 10-SNAPSHOT
+
+ war
+ helloservice
+
+
+ 3.8.1
+ UTF-8
+ 10.0.0
+ 3.10.3
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakarta.jakartaee-api.version}
+ provided
+
+
+
+
+ ${project.artifactId}
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+ 11
+ 11
+
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ ${liberty.maven.plugin.version}
+
+ defaultServer
+ ${project.basedir}/src/main/liberty/config
+
+
+
+
+
diff --git a/benchmark/business_domain/helloservice/jakarta/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java b/benchmark/business_domain/helloservice/jakarta/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..0c4162235332a9c4b8a1d14ab6614a282ba7f98a
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.helloservice.ejb;
+
+import jakarta.ejb.Stateless;
+import jakarta.jws.WebMethod;
+import jakarta.jws.WebService;
+
+/**
+ * HelloServiceBean is a web service endpoint implemented as a stateless
+ * session bean.
+ */
+
+@Stateless
+@WebService
+public class HelloServiceBean {
+ private final String message = "Hello, ";
+
+ public HelloServiceBean() {}
+
+ @WebMethod
+ public String sayHello(String name) {
+ return message + name + ".";
+ }
+}
diff --git a/benchmark/business_domain/helloservice/jakarta/src/main/liberty/config/server.xml b/benchmark/business_domain/helloservice/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ffe3f9ec39c5549033515ce66fea7e4565d355dc
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,15 @@
+
+
+
+ jakartaee-10.0
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/helloservice/jakarta/src/main/resources/META-INF/MANIFEST.MF b/benchmark/business_domain/helloservice/jakarta/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000000000000000000000000000000000..58630c02ef423cffd6dd6aafd946eb8512040c37
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/benchmark/business_domain/helloservice/jakarta/test.sh b/benchmark/business_domain/helloservice/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2f71afada2be85ee5ec87d3daeb936a995a19909
--- /dev/null
+++ b/benchmark/business_domain/helloservice/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/helloservice}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/helloservice/quarkus/.dockerignore b/benchmark/business_domain/helloservice/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/helloservice/quarkus/Dockerfile b/benchmark/business_domain/helloservice/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..dcd2739646fb4fd95a063f846da8c8b49776c723
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["java", "-jar", "target/quarkus-app/quarkus-run.jar"]
diff --git a/benchmark/business_domain/helloservice/quarkus/README.md b/benchmark/business_domain/helloservice/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..9ed06eab862d7b1ce8c0a112a8a334178ea1b700
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/README.md
@@ -0,0 +1,58 @@
+# helloservice
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/helloservice-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Related Guides
+
+- Quarkus CXF ([guide](https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/dev/reference/extensions/quarkus-cxf.html)): Core capabilities for implementing SOAP clients and JAX-WS services
diff --git a/benchmark/business_domain/helloservice/quarkus/mvnw b/benchmark/business_domain/helloservice/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..5e9618cac26d1c3254dc88232a8c4d841316bd29
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/mvnw
@@ -0,0 +1,332 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.2
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /usr/local/etc/mavenrc ]; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ JAVA_HOME="$(/usr/libexec/java_home)"
+ export JAVA_HOME
+ else
+ JAVA_HOME="/Library/Java/Home"
+ export JAVA_HOME
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
+ && JAVA_HOME="$(
+ cd "$JAVA_HOME" || (
+ echo "cannot cd into $JAVA_HOME." >&2
+ exit 1
+ )
+ pwd
+ )"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr "$javaExecutable" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname "$javaExecutable")"
+ javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f "$javaExecutable")"
+ fi
+ javaHome="$(dirname "$javaExecutable")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(
+ \unset -f command 2>/dev/null
+ \command -v java
+ )"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set." >&2
+fi
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir" >&2
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.." || exit 1
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ printf '%s' "$(
+ cd "$basedir" || exit 1
+ pwd
+ )"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ # Remove \r in case we run on Windows within Git Bash
+ # and check out the repository with auto CRLF management
+ # enabled. Otherwise, we may read lines that are delimited with
+ # \r\n and produce $'-Xarg\r' rather than -Xarg due to word
+ # splitting rules.
+ tr -s '\r\n' ' ' <"$1"
+ fi
+}
+
+log() {
+ if [ "$MVNW_VERBOSE" = true ]; then
+ printf '%s\n' "$1"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+export MAVEN_PROJECTBASEDIR
+log "$MAVEN_PROJECTBASEDIR"
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
+if [ -r "$wrapperJarPath" ]; then
+ log "Found $wrapperJarPath"
+else
+ log "Couldn't find $wrapperJarPath, downloading it ..."
+
+ if [ -n "$MVNW_REPOURL" ]; then
+ wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ else
+ wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ fi
+ while IFS="=" read -r key value; do
+ # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
+ safeValue=$(echo "$value" | tr -d '\r')
+ case "$key" in wrapperUrl)
+ wrapperUrl="$safeValue"
+ break
+ ;;
+ esac
+ done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+ log "Downloading from: $wrapperUrl"
+
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ log "Found wget ... using wget"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ log "Found curl ... using curl"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ else
+ curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ fi
+ else
+ log "Falling back to using Java to download"
+ javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaSource=$(cygpath --path --windows "$javaSource")
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaSource" ]; then
+ if [ ! -e "$javaClass" ]; then
+ log " - Compiling MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/javac" "$javaSource")
+ fi
+ if [ -e "$javaClass" ]; then
+ log " - Running MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+# If specified, validate the SHA-256 sum of the Maven wrapper jar file
+wrapperSha256Sum=""
+while IFS="=" read -r key value; do
+ case "$key" in wrapperSha256Sum)
+ wrapperSha256Sum=$value
+ break
+ ;;
+ esac
+done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+if [ -n "$wrapperSha256Sum" ]; then
+ wrapperSha256Result=false
+ if command -v sha256sum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $wrapperSha256Result = false ]; then
+ echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
+ echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
+ echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] \
+ && MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+# shellcheck disable=SC2086 # safe args
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/helloservice/quarkus/mvnw.cmd b/benchmark/business_domain/helloservice/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..4136715f081ecad67b4ba4760f84065285a8e72b
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/mvnw.cmd
@@ -0,0 +1,206 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.2
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo. >&2
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo. >&2
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash;"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/helloservice/quarkus/pom.xml b/benchmark/business_domain/helloservice/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2945db1a49eaac39cdaa8b84dadeedf93edfe2a0
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/pom.xml
@@ -0,0 +1,126 @@
+
+
+ 4.0.0
+ quarkus.examples.tutorial
+ helloservice
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 21
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+ ${quarkus.platform.group-id}
+ quarkus-cxf-bom
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+
+
+
+
+ io.quarkiverse.cxf
+ quarkus-cxf
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.jvm b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.jvm
new file mode 100644
index 0000000000000000000000000000000000000000..f439f03d9a8c85ffb692cbcf0308e437d072c06a
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.jvm
@@ -0,0 +1,98 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/helloservice-jvm .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice-jvm
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice-jvm
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+# We make four distinct layers so if there are application changes the library layers can be re-used
+COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
+COPY --chown=185 target/quarkus-app/*.jar /deployments/
+COPY --chown=185 target/quarkus-app/app/ /deployments/app/
+COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
+
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.legacy-jar b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.legacy-jar
new file mode 100644
index 0000000000000000000000000000000000000000..e2efe54658438ffadb64d3d0b85c7d38f35757b3
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.legacy-jar
@@ -0,0 +1,94 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/helloservice-legacy-jar .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice-legacy-jar
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice-legacy-jar
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+COPY target/lib/* /deployments/lib/
+COPY target/*-runner.jar /deployments/quarkus-run.jar
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native
new file mode 100644
index 0000000000000000000000000000000000000000..7f67e80d6975b1783d6ae2f21491fb9d3890d026
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native
@@ -0,0 +1,29 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native -t quarkus/helloservice .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice
+#
+# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.6` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
+###
+FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native-micro b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native-micro
new file mode 100644
index 0000000000000000000000000000000000000000..2d069f431066613a5987a28889549d48465e7601
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/docker/Dockerfile.native-micro
@@ -0,0 +1,32 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+# It uses a micro base image, tuned for Quarkus native executables.
+# It reduces the size of the resulting container image.
+# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/helloservice .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/helloservice
+#
+# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
+###
+FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java b/benchmark/business_domain/helloservice/quarkus/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..83c183c75c550f52fe23c55d1c12783feec92d47
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/java/jakarta/tutorial/helloservice/ejb/HelloServiceBean.java
@@ -0,0 +1,18 @@
+package jakarta.tutorial.helloservice.ejb;
+
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.jws.WebMethod;
+import jakarta.jws.WebService;
+
+@WebService
+public class HelloServiceBean {
+ private final String message = "Hello, ";
+
+ public HelloServiceBean() {
+ }
+
+ @WebMethod
+ public String sayHello(String name) {
+ return message + name + ".";
+ }
+}
diff --git a/benchmark/business_domain/helloservice/quarkus/src/main/resources/application.properties b/benchmark/business_domain/helloservice/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..5c5b812804cc0905d30fde9adea91e838dcf53d9
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/src/main/resources/application.properties
@@ -0,0 +1,2 @@
+# just for parity with jakarta
+quarkus.cxf.path = /helloservice
\ No newline at end of file
diff --git a/benchmark/business_domain/helloservice/quarkus/test.sh b/benchmark/business_domain/helloservice/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..43307dcd73f7f1efbed34bcc07fb33a75a945a44
--- /dev/null
+++ b/benchmark/business_domain/helloservice/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/helloservice}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/helloservice/spring/.dockerignore b/benchmark/business_domain/helloservice/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/helloservice/spring/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/helloservice/spring/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/helloservice/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/helloservice/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/helloservice/spring/Dockerfile b/benchmark/business_domain/helloservice/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..1e5c9660ba86fdee01192feca7895ddda92c99e3
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["sh", "-c", "java -jar target/*.jar"]
diff --git a/benchmark/business_domain/helloservice/spring/mvnw b/benchmark/business_domain/helloservice/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/business_domain/helloservice/spring/mvnw.cmd b/benchmark/business_domain/helloservice/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/business_domain/helloservice/spring/pom.xml b/benchmark/business_domain/helloservice/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..fbaf2866a643bf2f98629d997af876d333329b8f
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/pom.xml
@@ -0,0 +1,94 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+ spring.examples.tutorial
+ helloservice
+ 0.0.1-SNAPSHOT
+ helloservice
+ Demo project for Spring Boot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ 17
+ UTF-8
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-web-services
+
+
+
+ wsdl4j
+ wsdl4j
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ ch.qos.logback
+ logback-core
+ 1.5.19
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ org.codehaus.mojo
+ jaxb2-maven-plugin
+ 3.2.0
+
+
+ xjc
+
+ xjc
+
+
+
+
+
+ ${project.basedir}/src/main/resources/hello.xsd
+
+
+
+
+
+
+
diff --git a/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceApplication.java b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..776a841cbc3361998f4ec795da082e9bceecb7ee
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceApplication.java
@@ -0,0 +1,12 @@
+package spring.examples.tutorial.helloservice;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class HelloServiceApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(HelloServiceApplication.class, args);
+ }
+}
diff --git a/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceBean.java b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..5139141881a7e39a7de8fd34d6e8d1d80798a1e2
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/HelloServiceBean.java
@@ -0,0 +1,24 @@
+package spring.examples.tutorial.helloservice;
+
+import jakarta.tutorial.helloservice.ejb.SayHello;
+import jakarta.tutorial.helloservice.ejb.SayHelloResponse;
+import org.springframework.ws.server.endpoint.annotation.Endpoint;
+import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
+import org.springframework.ws.server.endpoint.annotation.RequestPayload;
+import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
+
+@Endpoint
+public class HelloServiceBean {
+
+ private static final String NAMESPACE_URI = "http://ejb.helloservice.tutorial.jakarta/";
+ private final String message = "Hello, ";
+
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "sayHello")
+ @ResponsePayload
+ public SayHelloResponse sayHello(@RequestPayload SayHello request) {
+ SayHelloResponse response = new SayHelloResponse();
+ response.setReturn(message + request.getArg0() + ".");
+ return response;
+ }
+
+}
diff --git a/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/WebServiceConfig.java b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/WebServiceConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..b15b3992a438a23e6875a73558ab70de359d9704
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/src/main/java/spring/examples/tutorial/helloservice/WebServiceConfig.java
@@ -0,0 +1,43 @@
+package spring.examples.tutorial.helloservice;
+
+import org.springframework.boot.web.servlet.ServletRegistrationBean;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.io.ClassPathResource;
+import org.springframework.ws.config.annotation.EnableWs;
+import org.springframework.ws.transport.http.MessageDispatcherServlet;
+import org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition;
+import org.springframework.xml.xsd.SimpleXsdSchema;
+import org.springframework.xml.xsd.XsdSchema;
+
+import java.io.IOException;
+
+@EnableWs
+@Configuration
+public class WebServiceConfig {
+
+ @Bean
+ public ServletRegistrationBean messageDispatcherServlet(
+ ApplicationContext context) {
+ MessageDispatcherServlet servlet = new MessageDispatcherServlet();
+ servlet.setApplicationContext(context);
+ servlet.setTransformWsdlLocations(true);
+ return new ServletRegistrationBean<>(servlet, "/helloservice/*");
+ }
+
+ @Bean(name = "HelloServiceBean")
+ public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema helloSchema) {
+ DefaultWsdl11Definition definition = new DefaultWsdl11Definition();
+ definition.setPortTypeName("HelloPort");
+ definition.setTargetNamespace("http://ejb.helloservice.tutorial.jakarta/");
+ definition.setLocationUri("/helloservice/HelloServiceBean");
+ definition.setSchema(helloSchema);
+ return definition;
+ }
+
+ @Bean
+ public XsdSchema helloSchema() throws IOException {
+ return new SimpleXsdSchema(new ClassPathResource("hello.xsd"));
+ }
+}
diff --git a/benchmark/business_domain/helloservice/spring/src/main/resources/application.properties b/benchmark/business_domain/helloservice/spring/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..b6842c3a81bb60a9bc7525c30d9ffbb1ccb6844f
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/src/main/resources/application.properties
@@ -0,0 +1 @@
+spring.application.name=helloservice
diff --git a/benchmark/business_domain/helloservice/spring/src/main/resources/hello.xsd b/benchmark/business_domain/helloservice/spring/src/main/resources/hello.xsd
new file mode 100644
index 0000000000000000000000000000000000000000..0907c65540432fe2c29ffe0b1ea33d4e9703eb23
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/src/main/resources/hello.xsd
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/business_domain/helloservice/spring/test.sh b/benchmark/business_domain/helloservice/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..43307dcd73f7f1efbed34bcc07fb33a75a945a44
--- /dev/null
+++ b/benchmark/business_domain/helloservice/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/helloservice}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/standalone/jakarta/.dockerignore b/benchmark/business_domain/standalone/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/standalone/jakarta/Dockerfile b/benchmark/business_domain/standalone/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..5f89bac386bcf1f3e0285b3f2c9cba0e6dd1e4e3
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/Dockerfile
@@ -0,0 +1,32 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["mvn", "liberty:run"]
diff --git a/benchmark/business_domain/standalone/jakarta/mvnw b/benchmark/business_domain/standalone/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..41c0f0c23db5dca836d3db1a17a7a28444d17d74
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/standalone/jakarta/mvnw.cmd b/benchmark/business_domain/standalone/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..86115719e5383e94597f918bf18c5ecbb7cfe492
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/standalone/jakarta/pom.xml b/benchmark/business_domain/standalone/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9d882a43f44e3e0df0833b6187bb11c140c6a553
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/pom.xml
@@ -0,0 +1,85 @@
+
+
+
+ 4.0.0
+
+ jakarta.examples.tutorial.ejb
+ standalone
+ 10-SNAPSHOT
+
+ war
+ standalone
+
+
+ 4.13.1
+ 6.2.5
+ 3.0.0-M5
+ 3.8.1
+ UTF-8
+ 9.1.0
+ 3.10.3
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-api
+ ${jakarta.jakartaee-api.version}
+ provided
+
+
+
+ junit
+ junit
+ ${junit.version}
+ test
+
+
+ org.glassfish.main.extras
+ glassfish-embedded-all
+ ${glassfish.embedded.version}
+ test
+
+
+
+
+ ${project.artifactId}
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.plugin.version}
+
+ 11
+ 11
+
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ ${liberty.maven.plugin.version}
+
+ defaultServer
+ ${project.basedir}/src/main/liberty/config
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ ${maven.surefire.plugin.version}
+
+
+
+
diff --git a/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/ejb/StandaloneBean.java b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/ejb/StandaloneBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..b3a930edba73c6e5627a44492810899f49e1a37a
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/ejb/StandaloneBean.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.standalone.ejb;
+
+import jakarta.ejb.Stateless;
+
+@Stateless
+public class StandaloneBean {
+
+ private static final String message = "Greetings!";
+
+ public String returnMessage() {
+ return message;
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/GreetResource.java b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/GreetResource.java
new file mode 100644
index 0000000000000000000000000000000000000000..a7bb31bb4f365bd73256cf15a46236141d288a2b
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/GreetResource.java
@@ -0,0 +1,30 @@
+package jakarta.tutorial.standalone.web;
+
+import java.util.Map;
+
+import jakarta.ejb.EJB;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.tutorial.standalone.ejb.StandaloneBean;
+import jakarta.ws.rs.Consumes;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+
+@Path("/")
+@ApplicationScoped
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+public class GreetResource {
+
+ @EJB
+ private StandaloneBean standaloneBean;
+
+ @GET
+ @Path("/greet")
+ public Response greet() {
+ return Response.ok(Map.of("message", standaloneBean.returnMessage())).build();
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/RestApplication.java b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/RestApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..25cfb5cb9cebc249d72af933b319ffe8480c54fd
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/main/java/jakarta/tutorial/standalone/web/RestApplication.java
@@ -0,0 +1,10 @@
+package jakarta.tutorial.standalone.web;
+
+import jakarta.ws.rs.ApplicationPath;
+import jakarta.ws.rs.core.Application;
+
+@ApplicationPath("/")
+public class RestApplication extends Application {
+ // No additional configuration needed
+ // JAX-RS will auto-discover resource classes
+}
diff --git a/benchmark/business_domain/standalone/jakarta/src/main/liberty/config/server.xml b/benchmark/business_domain/standalone/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..76fb908af3254ea4b16b0e4359363b336713320e
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,15 @@
+
+
+
+ jakartaee-9.1
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/business_domain/standalone/jakarta/src/main/resources/META-INF/MANIFEST.MF b/benchmark/business_domain/standalone/jakarta/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000000000000000000000000000000000..58630c02ef423cffd6dd6aafd946eb8512040c37
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+
diff --git a/benchmark/business_domain/standalone/jakarta/src/test/java/jakarta/tutorial/standalone/ejb/StandaloneBeanTest.java b/benchmark/business_domain/standalone/jakarta/src/test/java/jakarta/tutorial/standalone/ejb/StandaloneBeanTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..3089c6d03f995d96a37adb534aca09f2d0c3e7ce
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/src/test/java/jakarta/tutorial/standalone/ejb/StandaloneBeanTest.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.standalone.ejb;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.logging.Logger;
+
+import javax.naming.Context;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import jakarta.ejb.embeddable.EJBContainer;
+
+/**
+ *
+ * @author ian
+ */
+public class StandaloneBeanTest {
+
+ private EJBContainer ec;
+ private Context ctx;
+ private static final Logger logger = Logger.getLogger("standalone.ejb");
+
+ public StandaloneBeanTest() {
+ }
+
+ @Before
+ public void setUp() {
+ ec = EJBContainer.createEJBContainer();
+ ctx = ec.getContext();
+ }
+
+ @After
+ public void tearDown() {
+ if (ec != null) {
+ ec.close();
+ }
+ }
+
+ /**
+ * Test of returnMessage method, of class StandaloneBean.
+ * @throws java.lang.Exception
+ */
+ @Test
+ public void testReturnMessage() throws Exception {
+ logger.info("Testing standalone.ejb.StandaloneBean.returnMessage()");
+ StandaloneBean instance =
+ (StandaloneBean) ctx.lookup("java:global/classes/StandaloneBean");
+ String expResult = "Greetings!";
+ String result = instance.returnMessage();
+ assertEquals(expResult, result);
+ }
+}
diff --git a/benchmark/business_domain/standalone/jakarta/test.sh b/benchmark/business_domain/standalone/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..bfa98ddb4630cf1b5fae64faf9610d7c107d752c
--- /dev/null
+++ b/benchmark/business_domain/standalone/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/standalone}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/standalone/quarkus/.dockerignore b/benchmark/business_domain/standalone/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/standalone/quarkus/Dockerfile b/benchmark/business_domain/standalone/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..dcd2739646fb4fd95a063f846da8c8b49776c723
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["java", "-jar", "target/quarkus-app/quarkus-run.jar"]
diff --git a/benchmark/business_domain/standalone/quarkus/README.md b/benchmark/business_domain/standalone/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..a31b3779ee65e37e6a62ffcf17b1369961fb31b3
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/README.md
@@ -0,0 +1,62 @@
+# standalone
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/standalone-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Provided Code
+
+### REST
+
+Easily start your REST Web Services
+
+[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
diff --git a/benchmark/business_domain/standalone/quarkus/mvnw b/benchmark/business_domain/standalone/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..5e9618cac26d1c3254dc88232a8c4d841316bd29
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/mvnw
@@ -0,0 +1,332 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.2
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /usr/local/etc/mavenrc ]; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ JAVA_HOME="$(/usr/libexec/java_home)"
+ export JAVA_HOME
+ else
+ JAVA_HOME="/Library/Java/Home"
+ export JAVA_HOME
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] \
+ && JAVA_HOME="$(
+ cd "$JAVA_HOME" || (
+ echo "cannot cd into $JAVA_HOME." >&2
+ exit 1
+ )
+ pwd
+ )"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr "$javaExecutable" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname "$javaExecutable")"
+ javaExecutable="$(cd "$javaHome" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f "$javaExecutable")"
+ fi
+ javaHome="$(dirname "$javaExecutable")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(
+ \unset -f command 2>/dev/null
+ \command -v java
+ )"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set." >&2
+fi
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir" >&2
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.." || exit 1
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ printf '%s' "$(
+ cd "$basedir" || exit 1
+ pwd
+ )"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ # Remove \r in case we run on Windows within Git Bash
+ # and check out the repository with auto CRLF management
+ # enabled. Otherwise, we may read lines that are delimited with
+ # \r\n and produce $'-Xarg\r' rather than -Xarg due to word
+ # splitting rules.
+ tr -s '\r\n' ' ' <"$1"
+ fi
+}
+
+log() {
+ if [ "$MVNW_VERBOSE" = true ]; then
+ printf '%s\n' "$1"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+export MAVEN_PROJECTBASEDIR
+log "$MAVEN_PROJECTBASEDIR"
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
+if [ -r "$wrapperJarPath" ]; then
+ log "Found $wrapperJarPath"
+else
+ log "Couldn't find $wrapperJarPath, downloading it ..."
+
+ if [ -n "$MVNW_REPOURL" ]; then
+ wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ else
+ wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ fi
+ while IFS="=" read -r key value; do
+ # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
+ safeValue=$(echo "$value" | tr -d '\r')
+ case "$key" in wrapperUrl)
+ wrapperUrl="$safeValue"
+ break
+ ;;
+ esac
+ done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+ log "Downloading from: $wrapperUrl"
+
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ log "Found wget ... using wget"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ log "Found curl ... using curl"
+ [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ else
+ curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
+ fi
+ else
+ log "Falling back to using Java to download"
+ javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaSource=$(cygpath --path --windows "$javaSource")
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaSource" ]; then
+ if [ ! -e "$javaClass" ]; then
+ log " - Compiling MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/javac" "$javaSource")
+ fi
+ if [ -e "$javaClass" ]; then
+ log " - Running MavenWrapperDownloader.java ..."
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+# If specified, validate the SHA-256 sum of the Maven wrapper jar file
+wrapperSha256Sum=""
+while IFS="=" read -r key value; do
+ case "$key" in wrapperSha256Sum)
+ wrapperSha256Sum=$value
+ break
+ ;;
+ esac
+done <"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
+if [ -n "$wrapperSha256Sum" ]; then
+ wrapperSha256Result=false
+ if command -v sha256sum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c >/dev/null 2>&1; then
+ wrapperSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $wrapperSha256Result = false ]; then
+ echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
+ echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
+ echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$JAVA_HOME" ] \
+ && JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] \
+ && CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] \
+ && MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+# shellcheck disable=SC2086 # safe args
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/benchmark/business_domain/standalone/quarkus/mvnw.cmd b/benchmark/business_domain/standalone/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..4136715f081ecad67b4ba4760f84065285a8e72b
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/mvnw.cmd
@@ -0,0 +1,206 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.2
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo. >&2
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo. >&2
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo. >&2
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash;"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git a/benchmark/business_domain/standalone/quarkus/pom.xml b/benchmark/business_domain/standalone/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..cedb94cd3d0ab7606c3d51730fdf6ca7b625947c
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/pom.xml
@@ -0,0 +1,149 @@
+
+
+ 4.0.0
+ quarkus.examples.tutorial
+ standalone
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 21
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+ io.netty
+ netty-codec-http
+ 4.1.130.Final
+
+
+ io.netty
+ netty-codec
+ 4.1.130.Final
+
+
+ io.netty
+ netty-handler
+ 4.1.130.Final
+
+
+ io.vertx
+ vertx-web
+ 4.5.23
+
+
+ io.vertx
+ vertx-web-common
+ 4.5.23
+
+
+
+
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-resteasy-jackson
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+ io.rest-assured
+ rest-assured
+ test
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.jvm b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.jvm
new file mode 100644
index 0000000000000000000000000000000000000000..9f29b4da1ab270f866f80a434ba8e725b1f974e0
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.jvm
@@ -0,0 +1,98 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/standalone-jvm .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone-jvm
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone-jvm
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+# We make four distinct layers so if there are application changes the library layers can be re-used
+COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
+COPY --chown=185 target/quarkus-app/*.jar /deployments/
+COPY --chown=185 target/quarkus-app/app/ /deployments/app/
+COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
+
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.legacy-jar b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.legacy-jar
new file mode 100644
index 0000000000000000000000000000000000000000..2b335b97e05f85bee5d9ee166c65677a6d4c11b1
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.legacy-jar
@@ -0,0 +1,94 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/standalone-legacy-jar .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone-legacy-jar
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone-legacy-jar
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+COPY target/lib/* /deployments/lib/
+COPY target/*-runner.jar /deployments/quarkus-run.jar
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native
new file mode 100644
index 0000000000000000000000000000000000000000..4f841f2f7d65e063646abb96f45fc60adb0d085c
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native
@@ -0,0 +1,29 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native -t quarkus/standalone .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone
+#
+# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.6` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
+###
+FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native-micro b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native-micro
new file mode 100644
index 0000000000000000000000000000000000000000..c50a05b15aa18ff79f35f83baf9b4361c704e3b7
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/docker/Dockerfile.native-micro
@@ -0,0 +1,32 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+# It uses a micro base image, tuned for Quarkus native executables.
+# It reduces the size of the resulting container image.
+# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/standalone .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/standalone
+#
+# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
+###
+FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/GreetResource.java b/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/GreetResource.java
new file mode 100644
index 0000000000000000000000000000000000000000..06d3ca0097d2858e66369d161c3657266a6e0206
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/GreetResource.java
@@ -0,0 +1,29 @@
+package quarkus.examples.tutorial;
+
+import java.util.Map;
+
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.Consumes;
+import jakarta.ws.rs.GET;
+import jakarta.ws.rs.Path;
+import jakarta.ws.rs.Produces;
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+
+@Path("/")
+@ApplicationScoped
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+public class GreetResource {
+
+ @Inject
+ StandaloneBean standaloneBean;
+
+ @GET
+ @Path("/greet")
+ public Response greet() {
+ return Response.ok(Map.of("message", standaloneBean.returnMessage())).build();
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/StandaloneBean.java b/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/StandaloneBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..b340ad55f5dd73bd71532824a29911a215fd40b9
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/java/quarkus/examples/tutorial/StandaloneBean.java
@@ -0,0 +1,14 @@
+package quarkus.examples.tutorial;
+
+import jakarta.enterprise.context.ApplicationScoped;
+
+@ApplicationScoped
+public class StandaloneBean {
+
+ private static final String message = "Greetings!";
+
+ public String returnMessage() {
+ return message;
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/quarkus/src/main/resources/application.properties b/benchmark/business_domain/standalone/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..44933f2096135fe7e1653ac86d1d2cb89a76811e
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/main/resources/application.properties
@@ -0,0 +1 @@
+quarkus.http.root-path=/standalone
\ No newline at end of file
diff --git a/benchmark/business_domain/standalone/quarkus/src/test/java/quarkus/examples/tutorial/StandaloneBeanTest.java b/benchmark/business_domain/standalone/quarkus/src/test/java/quarkus/examples/tutorial/StandaloneBeanTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..def0f15799ebcb537b709f1ce1daca2d60441e02
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/src/test/java/quarkus/examples/tutorial/StandaloneBeanTest.java
@@ -0,0 +1,24 @@
+package quarkus.examples.tutorial;
+
+import io.quarkus.test.junit.QuarkusTest;
+import jakarta.inject.Inject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import java.util.logging.Logger;
+
+@QuarkusTest
+class StandaloneBeanTest {
+ private static final Logger logger = Logger.getLogger("standalone");
+
+ @Inject
+ private StandaloneBean standaloneBean;
+
+ @Test
+ public void testReturnMessage() throws Exception {
+ logger.info("Testing StandaloneBean.returnMessage()");
+ String expResult = "Greetings!";
+ String result = standaloneBean.returnMessage();
+ assertEquals(expResult, result);
+ }
+}
diff --git a/benchmark/business_domain/standalone/quarkus/test.sh b/benchmark/business_domain/standalone/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2f6a7a940e269497834310db734b759b8b44ae0a
--- /dev/null
+++ b/benchmark/business_domain/standalone/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/standalone}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/business_domain/standalone/spring/.dockerignore b/benchmark/business_domain/standalone/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/business_domain/standalone/spring/.mvn/wrapper/MavenWrapperDownloader.java b/benchmark/business_domain/standalone/spring/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000000000000000000000000000000000000..b901097f2db6e50097dc0b222204a88f8cea1609
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/business_domain/standalone/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..43ad4f7bc95d51463a4cea4b6d84e6e069b98f1f
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/benchmark/business_domain/standalone/spring/Dockerfile b/benchmark/business_domain/standalone/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..1e5c9660ba86fdee01192feca7895ddda92c99e3
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/Dockerfile
@@ -0,0 +1,34 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full \
+ && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv \
+ && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+WORKDIR /app
+
+# Cache Maven dependencies separately from source
+COPY pom.xml .
+RUN mvn dependency:go-offline -q
+
+# Build application
+COPY src ./src
+RUN mvn package -DskipTests -q
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+CMD ["sh", "-c", "java -jar target/*.jar"]
diff --git a/benchmark/business_domain/standalone/spring/mvnw b/benchmark/business_domain/standalone/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/business_domain/standalone/spring/mvnw.cmd b/benchmark/business_domain/standalone/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/business_domain/standalone/spring/pom.xml b/benchmark/business_domain/standalone/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d9b108dc10a1f840034cc8c1639032aa554cc140
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/pom.xml
@@ -0,0 +1,65 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+ spring.examples.tutorial
+ standalone
+ 0.0.1-SNAPSHOT
+ standalone
+ Demo project for Spring Boot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ 17
+ UTF-8
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/StandaloneApplication.java b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/StandaloneApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..ab8c606d4b14bee18736206abf2853c50c3d641c
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/StandaloneApplication.java
@@ -0,0 +1,13 @@
+package spring.examples.tutorial.standalone;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class StandaloneApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(StandaloneApplication.class, args);
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/controller/GreetController.java b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/controller/GreetController.java
new file mode 100644
index 0000000000000000000000000000000000000000..4670fce58e6f1239335191ae75c1519a7da098f6
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/controller/GreetController.java
@@ -0,0 +1,22 @@
+package spring.examples.tutorial.standalone.controller;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import spring.examples.tutorial.standalone.service.StandaloneService;
+
+@RestController
+public class GreetController {
+
+ @Autowired
+ private StandaloneService standaloneService;
+
+ record GreetResponse(String message) {
+ }
+
+ @GetMapping("/greet")
+ public ResponseEntity greet() {
+ return ResponseEntity.ok(new GreetResponse(standaloneService.returnMessage()));
+ }
+}
diff --git a/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/service/StandaloneService.java b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/service/StandaloneService.java
new file mode 100644
index 0000000000000000000000000000000000000000..f00113f8e4995f2ae0314529b12536dd2ed9d7b2
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/src/main/java/spring/examples/tutorial/standalone/service/StandaloneService.java
@@ -0,0 +1,14 @@
+package spring.examples.tutorial.standalone.service;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class StandaloneService {
+
+ private static final String message = "Greetings!";
+
+ public String returnMessage() {
+ return message;
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/spring/src/main/resources/application.properties b/benchmark/business_domain/standalone/spring/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..216e453aaa310f1638005010885f16024cb1bc07
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/src/main/resources/application.properties
@@ -0,0 +1,3 @@
+spring.application.name=standalone
+
+server.servlet.contextPath=/standalone
diff --git a/benchmark/business_domain/standalone/spring/src/test/java/spring/examples/tutorial/standalone/StandaloneApplicationTests.java b/benchmark/business_domain/standalone/spring/src/test/java/spring/examples/tutorial/standalone/StandaloneApplicationTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..90786547ed0eb6867923f04d3c6902475a4bb3aa
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/src/test/java/spring/examples/tutorial/standalone/StandaloneApplicationTests.java
@@ -0,0 +1,29 @@
+package spring.examples.tutorial.standalone;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import java.util.logging.Logger;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import spring.examples.tutorial.standalone.service.StandaloneService;
+
+@SpringBootTest
+class StandaloneApplicationTests {
+
+ private static final Logger logger = Logger.getLogger("standalone.service");
+
+ @Autowired
+ private StandaloneService standaloneService;
+
+ @Test
+ void contextLoads() {}
+
+ @Test
+ public void testReturnMessage() throws Exception {
+ logger.info("Testing standalone.service.StandaloneService.returnMessage()");
+ String expResult = "Greetings!";
+ String result = standaloneService.returnMessage();
+ assertEquals(expResult, result);
+ }
+
+}
diff --git a/benchmark/business_domain/standalone/spring/test.sh b/benchmark/business_domain/standalone/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..2f6a7a940e269497834310db734b759b8b44ae0a
--- /dev/null
+++ b/benchmark/business_domain/standalone/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080/standalone}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/address-book/jakarta/.dockerignore b/benchmark/persistence/address-book/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/address-book/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/address-book/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8dea6c227c08000d2400d38a2ac886063f22bc36
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
diff --git a/benchmark/persistence/address-book/jakarta/Dockerfile b/benchmark/persistence/address-book/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..bb9aafb1cb951a1ab54c776a26843385260532e8
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/Dockerfile
@@ -0,0 +1,28 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+COPY test.sh .
+RUN chmod +x test.sh
+RUN mvn clean install -DskipTests
+CMD [ "mvn", "liberty:run" ]
diff --git a/benchmark/persistence/address-book/jakarta/README.md b/benchmark/persistence/address-book/jakarta/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..2a122c6fb1db4c01a9c285973ba63347f78ad9ea
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/README.md
@@ -0,0 +1,12 @@
+To test this app,
+
+```bash
+pip install playwright
+playwright install --with-deps chromium
+```
+
+Then run:
+
+```bash
+./smoke.py
+```
\ No newline at end of file
diff --git a/benchmark/persistence/address-book/jakarta/mvnw b/benchmark/persistence/address-book/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/address-book/jakarta/mvnw.cmd b/benchmark/persistence/address-book/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/address-book/jakarta/pom.xml b/benchmark/persistence/address-book/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..368e48ce7c9860175f4520ca0e59a3828c18ac3e
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/pom.xml
@@ -0,0 +1,78 @@
+
+
+ 4.0.0
+
+
+ jakarta.examples.tutorial.persistence
+ address-book
+ 10-SNAPSHOT
+ war
+
+ Jakarta EE Address Book Example
+
+
+ 17
+ 17
+ UTF-8
+ 24.0.0.12
+
+
+
+
+
+ io.openliberty.features
+ features-bom
+ ${liberty.version}
+ pom
+ import
+
+
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-web-api
+ 10.0.0
+ provided
+
+
+
+ com.h2database
+ h2
+ 2.3.232
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.4.0
+
+ false
+
+
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ 3.11.1
+
+
+
+ ${project.build.directory}/liberty/wlp/usr/shared/resources
+
+ com.h2database
+ h2
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/AbstractFacade.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/AbstractFacade.java
new file mode 100644
index 0000000000000000000000000000000000000000..7effcedc60aeb1fa5ed67db67f4377ce90eb71e6
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/AbstractFacade.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.ejb;
+
+import java.util.List;
+
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.Query;
+import jakarta.persistence.criteria.CriteriaQuery;
+import jakarta.persistence.criteria.Root;
+
+/**
+ *
+ * @author ian
+ */
+public abstract class AbstractFacade {
+ private Class entityClass;
+
+ public AbstractFacade(Class entityClass) {
+ this.entityClass = entityClass;
+ }
+
+ protected abstract EntityManager getEntityManager();
+
+ public void create(T entity) {
+ getEntityManager().persist(entity);
+ }
+
+ public void edit(T entity) {
+ getEntityManager().merge(entity);
+ }
+
+ public void remove(T entity) {
+ getEntityManager().remove(getEntityManager().merge(entity));
+ }
+
+ public T find(Object id) {
+ return getEntityManager().find(entityClass, id);
+ }
+
+ public List findAll() {
+ CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
+ cq.select(cq.from(entityClass));
+ return getEntityManager().createQuery(cq).getResultList();
+ }
+
+ public List findRange(int[] range) {
+ CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
+ cq.select(cq.from(entityClass));
+ Query q = getEntityManager().createQuery(cq);
+ q.setMaxResults(range[1] - range[0]);
+ q.setFirstResult(range[0]);
+ return q.getResultList();
+ }
+
+ public int count() {
+ CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();
+ Root rt = cq.from(entityClass);
+ cq.select(getEntityManager().getCriteriaBuilder().count(rt));
+ Query q = getEntityManager().createQuery(cq);
+ return ((Long) q.getSingleResult()).intValue();
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/ContactFacade.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/ContactFacade.java
new file mode 100644
index 0000000000000000000000000000000000000000..15ac33c9957c89ded20cb82e9e023556b44c1644
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/ejb/ContactFacade.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.ejb;
+
+import jakarta.ejb.Stateless;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import jakarta.tutorial.addressbook.entity.Contact;
+
+/**
+ *
+ * @author ian
+ */
+@Stateless
+public class ContactFacade extends AbstractFacade {
+ @PersistenceContext(unitName = "address-bookPU")
+ private EntityManager em;
+
+ @Override
+ protected EntityManager getEntityManager() {
+ return em;
+ }
+
+ public ContactFacade() {
+ super(Contact.class);
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/entity/Contact.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/entity/Contact.java
new file mode 100644
index 0000000000000000000000000000000000000000..2470a16cf7e854942dc6355513be76ac2b600410
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/entity/Contact.java
@@ -0,0 +1,199 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Past;
+import jakarta.validation.constraints.Pattern;
+
+/**
+ *
+ * @author ian
+ */
+@Entity
+public class Contact implements Serializable {
+
+ private static final long serialVersionUID = -825634229676522580L;
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ private Long id;
+ @NotNull
+ protected String firstName;
+ @NotNull
+ protected String lastName;
+ @Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\."
+ + "[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"
+ + "(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9]"
+ + "(?:[a-z0-9-]*[a-z0-9])?",
+ message = "{invalid.email}")
+ protected String email;
+ @Pattern(regexp = "^\\(?(\\d{3})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$",
+ message = "{invalid.phonenumber}")
+ protected String mobilePhone;
+ @Pattern(regexp = "^\\(?(\\d{3})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$",
+ message = "{invalid.phonenumber}")
+ protected String homePhone;
+ @Temporal(TemporalType.DATE)
+ @Past
+ protected Date birthday;
+
+ /**
+ * Get the value of birthday
+ *
+ * @return the value of birthday
+ */
+ public Date getBirthday() {
+ return birthday;
+ }
+
+ /**
+ * Set the value of birthday
+ *
+ * @param birthday new value of birthday
+ */
+ public void setBirthday(Date birthday) {
+ this.birthday = birthday;
+ }
+
+ /**
+ * Get the value of homePhone
+ *
+ * @return the value of homePhone
+ */
+ public String getHomePhone() {
+ return homePhone;
+ }
+
+ /**
+ * Set the value of homePhone
+ *
+ * @param homePhone new value of homePhone
+ */
+ public void setHomePhone(String homePhone) {
+ this.homePhone = homePhone;
+ }
+
+ /**
+ * Get the value of mobilePhone
+ *
+ * @return the value of mobilePhone
+ */
+ public String getMobilePhone() {
+ return mobilePhone;
+ }
+
+ /**
+ * Set the value of mobilePhone
+ *
+ * @param mobilePhone new value of mobilePhone
+ */
+ public void setMobilePhone(String mobilePhone) {
+ this.mobilePhone = mobilePhone;
+ }
+
+ /**
+ * Get the value of email
+ *
+ * @return the value of email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * Set the value of email
+ *
+ * @param email new value of email
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * Get the value of lastName
+ *
+ * @return the value of lastName
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * Set the value of lastName
+ *
+ * @param lastName new value of lastName
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ * Get the value of firstName
+ *
+ * @return the value of firstName
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * Set the value of firstName
+ *
+ * @param firstName new value of firstName
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ // TODO: Warning - this method won't work in the case the id fields are not set
+ if (!(object instanceof Contact)) {
+ return false;
+ }
+ Contact other = (Contact) object;
+ if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "addressbook.entity.Contact[id=" + id + "]";
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/ContactController.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/ContactController.java
new file mode 100644
index 0000000000000000000000000000000000000000..b498bec94b5d68bbe00cebd0a3485fd0b75f3d86
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/ContactController.java
@@ -0,0 +1,241 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.web;
+
+import java.io.Serializable;
+import java.util.ResourceBundle;
+
+import jakarta.ejb.EJB;
+import jakarta.enterprise.context.SessionScoped;
+import jakarta.faces.component.UIComponent;
+import jakarta.faces.context.FacesContext;
+import jakarta.faces.convert.Converter;
+import jakarta.faces.convert.FacesConverter;
+import jakarta.faces.model.DataModel;
+import jakarta.faces.model.ListDataModel;
+import jakarta.faces.model.SelectItem;
+import jakarta.inject.Named;
+import jakarta.tutorial.addressbook.ejb.ContactFacade;
+import jakarta.tutorial.addressbook.entity.Contact;
+import jakarta.tutorial.addressbook.web.util.JsfUtil;
+import jakarta.tutorial.addressbook.web.util.PaginationHelper;
+
+@Named
+@SessionScoped
+public class ContactController implements Serializable {
+ private static final long serialVersionUID = -8163374738411860012L;
+ private Contact current;
+ private DataModel items = null;
+ @EJB private ContactFacade ejbFacade;
+ private PaginationHelper pagination;
+ private int selectedItemIndex;
+
+ public ContactController() {
+ }
+
+ public Contact getSelected() {
+ if (current == null) {
+ current = new Contact();
+ selectedItemIndex = -1;
+ }
+ return current;
+ }
+
+ private ContactFacade getFacade() {
+ return ejbFacade;
+ }
+
+ public PaginationHelper getPagination() {
+ if (pagination == null) {
+ pagination = new PaginationHelper(10) {
+
+ @Override
+ public int getItemsCount() {
+ return getFacade().count();
+ }
+
+ @Override
+ public DataModel createPageDataModel() {
+ return new ListDataModel(getFacade().findRange(new int[]{getPageFirstItem(), getPageFirstItem()+getPageSize()}));
+ }
+ };
+ }
+ return pagination;
+ }
+
+ public String prepareList() {
+ recreateModel();
+ return "List";
+ }
+
+ public String prepareView() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ return "View";
+ }
+
+ public String prepareCreate() {
+ current = new Contact();
+ selectedItemIndex = -1;
+ return "Create";
+ }
+
+ public String create() {
+ try {
+ getFacade().create(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactCreated"));
+ return prepareCreate();
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ return null;
+ }
+ }
+
+ public String prepareEdit() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ return "Edit";
+ }
+
+ public String update() {
+ try {
+ getFacade().edit(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactUpdated"));
+ return "View";
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ return null;
+ }
+ }
+
+ public String destroy() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ performDestroy();
+ recreateModel();
+ return "List";
+ }
+
+ public String destroyAndView() {
+ performDestroy();
+ recreateModel();
+ updateCurrentItem();
+ if (selectedItemIndex >= 0) {
+ return "View";
+ } else {
+ // all items were removed - go back to list
+ recreateModel();
+ return "List";
+ }
+ }
+
+ private void performDestroy() {
+ try {
+ getFacade().remove(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactDeleted"));
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ }
+ }
+
+ private void updateCurrentItem() {
+ int count = getFacade().count();
+ if (selectedItemIndex >= count) {
+ // selected index cannot be bigger than number of items:
+ selectedItemIndex = count-1;
+ // go to previous page if last page disappeared:
+ if (pagination.getPageFirstItem() >= count) {
+ pagination.previousPage();
+ }
+ }
+ if (selectedItemIndex >= 0) {
+ current = getFacade().findRange(new int[]{selectedItemIndex, selectedItemIndex+1}).get(0);
+ }
+ }
+
+ public DataModel getItems() {
+ if (items == null) {
+ items = getPagination().createPageDataModel();
+ }
+ return items;
+ }
+
+ private void recreateModel() {
+ items = null;
+ }
+
+ public String next() {
+ getPagination().nextPage();
+ recreateModel();
+ return "List";
+ }
+
+ public String previous() {
+ getPagination().previousPage();
+ recreateModel();
+ return "List";
+ }
+
+ public SelectItem[] getItemsAvailableSelectMany() {
+ return JsfUtil.getSelectItems(ejbFacade.findAll(), false);
+ }
+
+ public SelectItem[] getItemsAvailableSelectOne() {
+ return JsfUtil.getSelectItems(ejbFacade.findAll(), true);
+ }
+
+ @FacesConverter(forClass=Contact.class)
+ public static class ContactControllerConverter implements Converter {
+
+ @Override
+ public Contact getAsObject(FacesContext facesContext, UIComponent component, String value) {
+ if (value == null || value.length() == 0) {
+ return null;
+ }
+ ContactController controller = (ContactController)facesContext.getApplication().getELResolver().
+ getValue(facesContext.getELContext(), null, "contactController");
+ return controller.ejbFacade.find(getKey(value));
+ }
+
+ java.lang.Long getKey(String value) {
+ java.lang.Long key;
+ key = Long.valueOf(value);
+ return key;
+ }
+
+ String getStringKey(java.lang.Long value) {
+ StringBuilder sb = new StringBuilder();
+ sb.append(value);
+ return sb.toString();
+ }
+
+ @Override
+ public String getAsString(FacesContext facesContext, UIComponent component, Contact object) {
+ if (object == null) {
+ return null;
+ }
+ if (object instanceof Contact) {
+ Contact o = (Contact) object;
+ return getStringKey(o.getId());
+ } else {
+ throw new IllegalArgumentException("object " +
+ object +
+ " is of type " +
+ object.getClass().getName() +
+ "; expected type: " +
+ ContactController.class.getName());
+ }
+ }
+
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/JsfUtil.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/JsfUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..3e88a852554c4880368140cfa3a509ff66c37af6
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/JsfUtil.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.web.util;
+
+import java.util.List;
+
+import jakarta.faces.application.FacesMessage;
+import jakarta.faces.component.UIComponent;
+import jakarta.faces.context.FacesContext;
+import jakarta.faces.convert.Converter;
+import jakarta.faces.model.SelectItem;
+
+public class JsfUtil {
+
+ public static SelectItem[] getSelectItems(List> entities, boolean selectOne) {
+ int size = selectOne ? entities.size() + 1 : entities.size();
+ SelectItem[] items = new SelectItem[size];
+ int i = 0;
+ if (selectOne) {
+ items[0] = new SelectItem("", "---");
+ i++;
+ }
+ for (Object x : entities) {
+ items[i++] = new SelectItem(x, x.toString());
+ }
+ return items;
+ }
+
+ public static void addErrorMessage(Exception ex, String defaultMsg) {
+ String msg = ex.getLocalizedMessage();
+ if (msg != null && msg.length() > 0) {
+ addErrorMessage(msg);
+ } else {
+ addErrorMessage(defaultMsg);
+ }
+ }
+
+ public static void addErrorMessages(List messages) {
+ for (String message : messages) {
+ addErrorMessage(message);
+ }
+ }
+
+ public static void addErrorMessage(String msg) {
+ FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, msg);
+ FacesContext.getCurrentInstance().addMessage(null, facesMsg);
+ }
+
+ public static void addSuccessMessage(String msg) {
+ FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
+ FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg);
+ }
+
+ public static String getRequestParameter(String key) {
+ return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);
+ }
+
+ public static Object getObjectFromRequestParameter(String requestParameterName, Converter converter, UIComponent component) {
+ String theId = JsfUtil.getRequestParameter(requestParameterName);
+ return converter.getAsObject(FacesContext.getCurrentInstance(), component, theId);
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/PaginationHelper.java b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/PaginationHelper.java
new file mode 100644
index 0000000000000000000000000000000000000000..b56f99b3b8c0e3f919cbd7dff73086d3ccc9b6a2
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/java/jakarta/tutorial/addressbook/web/util/PaginationHelper.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.addressbook.web.util;
+
+import jakarta.faces.model.DataModel;
+
+public abstract class PaginationHelper {
+
+ private int pageSize;
+ private int page;
+
+ public PaginationHelper(int pageSize) {
+ this.pageSize = pageSize;
+ }
+
+ public abstract int getItemsCount();
+
+ public abstract DataModel createPageDataModel();
+
+ public int getPageFirstItem() {
+ return page*pageSize;
+ }
+
+ public int getPageLastItem() {
+ int i = getPageFirstItem() + pageSize -1;
+ int count = getItemsCount() - 1;
+ if (i > count) {
+ i = count;
+ }
+ if (i < 0) {
+ i = 0;
+ }
+ return i;
+ }
+
+ public boolean isHasNextPage() {
+ return (page+1)*pageSize+1 <= getItemsCount();
+ }
+
+ public void nextPage() {
+ if (isHasNextPage()) {
+ page++;
+ }
+ }
+
+ public boolean isHasPreviousPage() {
+ return page > 0;
+ }
+
+ public void previousPage() {
+ if (isHasPreviousPage()) {
+ page--;
+ }
+ }
+
+ public int getPageSize() {
+ return pageSize;
+ }
+
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/liberty/config/server.xml b/benchmark/persistence/address-book/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e13f5dcd15ef9d81712cbe9b2a4ab2a7b03a1580
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ jakartaee-10.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/resources/Bundle.properties b/benchmark/persistence/address-book/jakarta/src/main/resources/Bundle.properties
new file mode 100644
index 0000000000000000000000000000000000000000..02e0ea911cd21469a5b9b4f712721158d9bd87de
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/resources/Bundle.properties
@@ -0,0 +1,92 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+PersistenceErrorOccured=A persistence error occurred.
+Previous=Previous
+Next=Next
+
+ContactCreated=Contact was successfully created.
+ContactUpdated=Contact was successfully updated.
+ContactDeleted=Contact was successfully deleted.
+CreateContactTitle=Create New Contact
+CreateContactSaveLink=Save
+CreateContactShowAllLink=Show All Contact Items
+CreateContactIndexLink=Index
+CreateContactLabel_birthday=Birthday:
+CreateContactTitle_birthday=Birthday
+CreateContactLabel_homePhone=Home Phone:
+CreateContactTitle_homePhone=Home Phone
+CreateContactLabel_mobilePhone=Mobile Phone:
+CreateContactTitle_mobilePhone=Mobile Phone
+CreateContactLabel_email=Email:
+CreateContactTitle_email=Email
+CreateContactLabel_lastName=Last Name:
+CreateContactTitle_lastName=Last Name
+CreateContactLabel_firstName=First Name:
+CreateContactTitle_firstName=First Name
+CreateContactLabel_id=Id:
+CreateContactTitle_id=Id
+EditContactTitle=Edit Contact
+EditContactSaveLink=Save
+EditContactViewLink=View
+EditContactShowAllLink=Show All Contact Items
+EditContactIndexLink=Index
+EditContactLabel_birthday=Birthday:
+EditContactTitle_birthday=Birthday
+EditContactLabel_homePhone=Home Phone:
+EditContactTitle_homePhone=Home Phone
+EditContactLabel_mobilePhone=Mobile Phone:
+EditContactTitle_mobilePhone=Mobile Phone
+EditContactLabel_email=Email:
+EditContactTitle_email=Email
+EditContactLabel_lastName=Last Name:
+EditContactTitle_lastName=Last Name
+EditContactLabel_firstName=First Name:
+EditContactTitle_firstName=First Name
+EditContactLabel_id=Id:
+EditContactTitle_id=Id
+ViewContactTitle=View
+ViewContactDestroyLink=Destroy
+ViewContactEditLink=Edit
+ViewContactCreateLink=Create New Contact
+ViewContactShowAllLink=Show All Contact Items
+ViewContactIndexLink=Index
+ViewContactLabel_birthday=Birthday:
+ViewContactTitle_birthday=Birthday
+ViewContactLabel_homePhone=Home Phone:
+ViewContactTitle_homePhone=Home Phone
+ViewContactLabel_mobilePhone=Mobile Phone:
+ViewContactTitle_mobilePhone=Mobile Phone
+ViewContactLabel_email=Email:
+ViewContactTitle_email=Email
+ViewContactLabel_lastName=Last Name:
+ViewContactTitle_lastName=Last Name
+ViewContactLabel_firstName=First Name:
+ViewContactTitle_firstName=First Name
+ViewContactLabel_id=Id:
+ViewContactTitle_id=Id
+ListContactTitle=List
+ListContactEmpty=(No Contact Items Found)
+ListContactDestroyLink=Destroy
+ListContactEditLink=Edit
+ListContactViewLink=View
+ListContactCreateLink=Create New Contact
+ListContactIndexLink=Index
+ListContactTitle_birthday=Birthday
+ListContactTitle_homePhone=Home Phone
+ListContactTitle_mobilePhone=Mobile Phone
+ListContactTitle_email=Email
+ListContactTitle_lastName=Last Name
+ListContactTitle_firstName=First Name
+ListContactTitle_id=Id
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/resources/META-INF/persistence.xml b/benchmark/persistence/address-book/jakarta/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000000000000000000000000000000000000..dfe8a9b556da8362068ca90bef6a54823debb66b
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ jdbc/DefaultDataSource
+ false
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/resources/ValidationMessages.properties b/benchmark/persistence/address-book/jakarta/src/main/resources/ValidationMessages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c4eb065f57e93900b2eeae7c5ff2b4cd88d2749a
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/resources/ValidationMessages.properties
@@ -0,0 +1,15 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# Validation message string for the JavaBeans Validation API
+invalid.email=Not a valid email address.
+invalid.phonenumber=Not a valid phone number.
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/faces-config.xml b/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/faces-config.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3f31a7897ebe3d64226d6966ddc08cda6dbe4f06
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/faces-config.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ /Bundle
+ bundle
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/web.xml b/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f098eac97b98f9dca6eac8dd752fff55ed1753ab
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,40 @@
+
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+
+ jakarta.faces.webapp.FacesServlet
+
+ 1
+
+
+ Faces Servlet
+ *.xhtml
+
+
+ 30
+
+
+ index.xhtml
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Create.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Create.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..1fe9aa0f3f5af23f904d72b2d439f62de791fa93
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Create.xhtml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Edit.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Edit.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..30d7874193e081773648d2b672ae9d9dd787bd40
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/Edit.xhtml
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/List.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/List.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..84b340973b0a41c13cf98858c7936a2abef05f50
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/List.xhtml
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/View.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/View.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..c42df45a989ccdc3a820fd02c8909e28d31d0d0c
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/contact/View.xhtml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/index.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/index.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..ef91e66add4d78592a851bfc35209463e44a458b
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/index.xhtml
@@ -0,0 +1,31 @@
+
+
+
+
+
+ Java Persistence API with JavaBeans Annotations Example
+
+
+
+ Welcome to the Address Book example.
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/resources/css/jsfcrud.css b/benchmark/persistence/address-book/jakarta/src/main/webapp/resources/css/jsfcrud.css
new file mode 100644
index 0000000000000000000000000000000000000000..9ad890eb751df6c25998e4f1b4e77e3c4de70c5d
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/resources/css/jsfcrud.css
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+root {
+ display: block;
+}
+
+body {
+ font-family: Univers, "Univers 55", "Lucida Grande CE", lucida, Helvetica, san-serif;
+ color: black;
+ background-color: white;
+ font-size: small;
+}
+
+h1, h2, h3, h4 {
+ border-bottom: 1px solid #7F7F7F;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #d20005;
+}
+
+h1 {
+ font-size: 16px;
+}
+
+h2 {
+ font-size: 14px;
+}
+
+h3 {
+ font-size: 12px;
+}
+
+h4 {
+ font-size: 10px;
+}
+
+a:link, a:visited {
+ color: black;
+}
+
+a:link:hover, a:visited:hover {
+ text-decoration: underline;
+ color: #d20005;
+}
+
+table {
+ empty-cells: show;
+}
+
+form.jsfcrud_list_form th, td th {
+ font-size: x-small;
+ color: #d20005;
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ letter-spacing: 3px;
+ text-align: left;
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 6px;
+ padding-right: 6px;
+ background-color: white;
+}
+
+td {
+ vertical-align: top;
+ padding-bottom: 8px;
+ font-size: small;
+}
+
+form.jsfcrud_list_form td, td td {
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ vertical-align: baseline;
+ padding-bottom: 0px;
+}
+
+tr.jsfcrud_odd_row {
+ background-color: #e5e5e5;
+ color: black;
+}
+
+
+tr.jsfcrud_even_row {
+ background-color: #cccccc;
+ color: black;
+}
+
+#busyImage {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+}
diff --git a/benchmark/persistence/address-book/jakarta/src/main/webapp/template.xhtml b/benchmark/persistence/address-book/jakarta/src/main/webapp/template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..4581b49780fc8e0450c27f08f126e2988b0ff569
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/src/main/webapp/template.xhtml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ Default Title
+
+
+
+
+
+ Default Title
+
+
+ Default Body
+
+
+
+
diff --git a/benchmark/persistence/address-book/jakarta/test.sh b/benchmark/persistence/address-book/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..bd060ae487536596a65a09d340d5a1d6a9587f48
--- /dev/null
+++ b/benchmark/persistence/address-book/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/address-book-10-SNAPSHOT}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/address-book/quarkus/.dockerignore b/benchmark/persistence/address-book/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/address-book/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/address-book/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8dea6c227c08000d2400d38a2ac886063f22bc36
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
diff --git a/benchmark/persistence/address-book/quarkus/Dockerfile b/benchmark/persistence/address-book/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..5b85845ebb66e78ecce7a6dd3e30269db90b4bb5
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/Dockerfile
@@ -0,0 +1,33 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+# Build the application at image build time
+RUN mvn clean install -DskipTests
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+RUN mvn clean install -DskipTests
+
+CMD ["mvn", "quarkus:run"]
diff --git a/benchmark/persistence/address-book/quarkus/README.md b/benchmark/persistence/address-book/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..d931cb7d784994803aa5992d62bced04cf5c42ef
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/README.md
@@ -0,0 +1,62 @@
+# address-book-quarkus
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/address-book-quarkus-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Provided Code
+
+### REST
+
+Easily start your REST Web Services
+
+[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
diff --git a/benchmark/persistence/address-book/quarkus/mvnw b/benchmark/persistence/address-book/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/address-book/quarkus/mvnw.cmd b/benchmark/persistence/address-book/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/address-book/quarkus/pom.xml b/benchmark/persistence/address-book/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..00501c11e60164b5eb011f145139ac45e5a74332
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/pom.xml
@@ -0,0 +1,146 @@
+
+
+ 4.0.0
+ quarkus.tutorial
+ address-book-quarkus
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 17
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+
+
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-rest
+
+
+ io.quarkus
+ quarkus-hibernate-orm
+
+
+ io.quarkus
+ quarkus-hibernate-validator
+
+
+ io.quarkus
+ quarkus-jdbc-h2
+
+
+
+ org.apache.myfaces.core.extensions.quarkus
+ myfaces-quarkus
+ 4.1.2
+
+
+ io.quarkus
+ quarkus-undertow
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+ io.rest-assured
+ rest-assured
+ test
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/AbstractFacade.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/AbstractFacade.java
new file mode 100644
index 0000000000000000000000000000000000000000..eeb8591ca0d91d4133c2dfe061dc7c6a9dd5d1a2
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/AbstractFacade.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.addressbook.ejb;
+
+import java.util.List;
+
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.TypedQuery;
+import jakarta.persistence.criteria.CriteriaBuilder;
+import jakarta.persistence.criteria.CriteriaQuery;
+import jakarta.persistence.criteria.Root;
+
+/**
+ *
+ * @author ian
+ */
+public abstract class AbstractFacade {
+
+ private final Class entityClass;
+
+ protected AbstractFacade(Class entityClass) {
+ this.entityClass = entityClass;
+ }
+
+ protected abstract EntityManager getEntityManager();
+
+ public void create(T entity) {
+ getEntityManager().persist(entity);
+ }
+
+ public void edit(T entity) {
+ getEntityManager().merge(entity);
+ }
+
+ public void remove(T entity) {
+ getEntityManager().remove(getEntityManager().merge(entity));
+ }
+
+ public T find(Object id) {
+ return getEntityManager().find(entityClass, id);
+ }
+
+ public List findAll() {
+ CriteriaBuilder cb = getEntityManager().getCriteriaBuilder();
+ CriteriaQuery cq = cb.createQuery(entityClass);
+ cq.select(cq.from(entityClass));
+ TypedQuery q = getEntityManager().createQuery(cq);
+ return q.getResultList();
+ }
+
+ public List findRange(int[] range) {
+ CriteriaBuilder cb = getEntityManager().getCriteriaBuilder();
+ CriteriaQuery cq = cb.createQuery(entityClass);
+ cq.select(cq.from(entityClass));
+ TypedQuery q = getEntityManager().createQuery(cq);
+ // keep your current (exclusive upper bound) behavior:
+ q.setMaxResults(range[1] - range[0]);
+ q.setFirstResult(range[0]);
+ return q.getResultList();
+ }
+
+ public int count() {
+ CriteriaBuilder cb = getEntityManager().getCriteriaBuilder();
+ CriteriaQuery cq = cb.createQuery(Long.class);
+ Root rt = cq.from(entityClass);
+ cq.select(cb.count(rt));
+ return getEntityManager().createQuery(cq).getSingleResult().intValue();
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/ContactFacade.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/ContactFacade.java
new file mode 100644
index 0000000000000000000000000000000000000000..3641db92bab19461d8b2857e07069e369c9ce600
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/ejb/ContactFacade.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.addressbook.ejb;
+
+import jakarta.persistence.EntityManager;
+import quarkus.tutorial.addressbook.entity.Contact;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.transaction.Transactional;
+import jakarta.inject.Inject;
+
+/**
+ *
+ * @author ian
+ */
+
+@ApplicationScoped
+@Transactional
+public class ContactFacade extends AbstractFacade {
+ @Inject EntityManager em;
+
+ @Override protected EntityManager getEntityManager() { return em; }
+
+ public ContactFacade() {
+ super(Contact.class);
+ }
+
+}
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/entity/Contact.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/entity/Contact.java
new file mode 100644
index 0000000000000000000000000000000000000000..569091e0cb6944047afba60005cd86c6736a9c97
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/entity/Contact.java
@@ -0,0 +1,173 @@
+package quarkus.tutorial.addressbook.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+
+/**
+ *
+ * @author ian
+ */
+@Entity
+public class Contact implements Serializable {
+
+ private static final long serialVersionUID = -825634229676522580L;
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ private Long id;
+ protected String firstName;
+ protected String lastName;
+ protected String email;
+ protected String mobilePhone;
+ protected String homePhone;
+ @Temporal(TemporalType.DATE)
+ protected Date birthday;
+
+ /**
+ * Get the value of birthday
+ *
+ * @return the value of birthday
+ */
+ public Date getBirthday() {
+ return birthday;
+ }
+
+ /**
+ * Set the value of birthday
+ *
+ * @param birthday new value of birthday
+ */
+ public void setBirthday(Date birthday) {
+ this.birthday = birthday;
+ }
+
+ /**
+ * Get the value of homePhone
+ *
+ * @return the value of homePhone
+ */
+ public String getHomePhone() {
+ return homePhone;
+ }
+
+ /**
+ * Set the value of homePhone
+ *
+ * @param homePhone new value of homePhone
+ */
+ public void setHomePhone(String homePhone) {
+ this.homePhone = homePhone;
+ }
+
+ /**
+ * Get the value of mobilePhone
+ *
+ * @return the value of mobilePhone
+ */
+ public String getMobilePhone() {
+ return mobilePhone;
+ }
+
+ /**
+ * Set the value of mobilePhone
+ *
+ * @param mobilePhone new value of mobilePhone
+ */
+ public void setMobilePhone(String mobilePhone) {
+ this.mobilePhone = mobilePhone;
+ }
+
+ /**
+ * Get the value of email
+ *
+ * @return the value of email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * Set the value of email
+ *
+ * @param email new value of email
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * Get the value of lastName
+ *
+ * @return the value of lastName
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * Set the value of lastName
+ *
+ * @param lastName new value of lastName
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ * Get the value of firstName
+ *
+ * @return the value of firstName
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * Set the value of firstName
+ *
+ * @param firstName new value of firstName
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ // TODO: Warning - this method won't work in the case the id fields are not set
+ if (!(object instanceof Contact)) {
+ return false;
+ }
+ Contact other = (Contact) object;
+ if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "addressbook.entity.Contact[id=" + id + "]";
+ }
+
+}
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/ContactController.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/ContactController.java
new file mode 100644
index 0000000000000000000000000000000000000000..5b0476183b6a87aa41c02459332707553c6ac58f
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/ContactController.java
@@ -0,0 +1,241 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.addressbook.web;
+
+import java.io.Serializable;
+import java.util.ResourceBundle;
+
+import jakarta.inject.Inject;
+import jakarta.enterprise.context.SessionScoped;
+import jakarta.faces.component.UIComponent;
+import jakarta.faces.context.FacesContext;
+import jakarta.faces.convert.Converter;
+import jakarta.faces.convert.FacesConverter;
+import jakarta.faces.model.DataModel;
+import jakarta.faces.model.ListDataModel;
+import jakarta.faces.model.SelectItem;
+import jakarta.inject.Named;
+import quarkus.tutorial.addressbook.ejb.ContactFacade;
+import quarkus.tutorial.addressbook.entity.Contact;
+import quarkus.tutorial.addressbook.web.util.JsfUtil;
+import quarkus.tutorial.addressbook.web.util.PaginationHelper;
+
+@Named
+@SessionScoped
+public class ContactController implements Serializable {
+ private static final long serialVersionUID = -8163374738411860012L;
+ private Contact current;
+ private DataModel items = null;
+ @Inject private ContactFacade ejbFacade;
+ private PaginationHelper pagination;
+ private int selectedItemIndex;
+
+ public ContactController() {
+ }
+
+ public Contact getSelected() {
+ if (current == null) {
+ current = new Contact();
+ selectedItemIndex = -1;
+ }
+ return current;
+ }
+
+ private ContactFacade getFacade() {
+ return ejbFacade;
+ }
+
+ public PaginationHelper getPagination() {
+ if (pagination == null) {
+ pagination = new PaginationHelper(10) {
+
+ @Override
+ public int getItemsCount() {
+ return getFacade().count();
+ }
+
+ @Override
+ public DataModel createPageDataModel() {
+ return new ListDataModel(getFacade().findRange(new int[]{getPageFirstItem(), getPageFirstItem()+getPageSize()}));
+ }
+ };
+ }
+ return pagination;
+ }
+
+ public String prepareList() {
+ recreateModel();
+ return "List";
+ }
+
+ public String prepareView() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ return "View";
+ }
+
+ public String prepareCreate() {
+ current = new Contact();
+ selectedItemIndex = -1;
+ return "Create";
+ }
+
+ public String create() {
+ try {
+ getFacade().create(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactCreated"));
+ return prepareCreate();
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ return null;
+ }
+ }
+
+ public String prepareEdit() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ return "Edit";
+ }
+
+ public String update() {
+ try {
+ getFacade().edit(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactUpdated"));
+ return "View";
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ return null;
+ }
+ }
+
+ public String destroy() {
+ current = (Contact)getItems().getRowData();
+ selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
+ performDestroy();
+ recreateModel();
+ return "List";
+ }
+
+ public String destroyAndView() {
+ performDestroy();
+ recreateModel();
+ updateCurrentItem();
+ if (selectedItemIndex >= 0) {
+ return "View";
+ } else {
+ // all items were removed - go back to list
+ recreateModel();
+ return "List";
+ }
+ }
+
+ private void performDestroy() {
+ try {
+ getFacade().remove(current);
+ JsfUtil.addSuccessMessage(ResourceBundle.getBundle("/Bundle").getString("ContactDeleted"));
+ } catch (Exception e) {
+ JsfUtil.addErrorMessage(e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
+ }
+ }
+
+ private void updateCurrentItem() {
+ int count = getFacade().count();
+ if (selectedItemIndex >= count) {
+ // selected index cannot be bigger than number of items:
+ selectedItemIndex = count-1;
+ // go to previous page if last page disappeared:
+ if (pagination.getPageFirstItem() >= count) {
+ pagination.previousPage();
+ }
+ }
+ if (selectedItemIndex >= 0) {
+ current = getFacade().findRange(new int[]{selectedItemIndex, selectedItemIndex+1}).get(0);
+ }
+ }
+
+ public DataModel getItems() {
+ if (items == null) {
+ items = getPagination().createPageDataModel();
+ }
+ return items;
+ }
+
+ private void recreateModel() {
+ items = null;
+ }
+
+ public String next() {
+ getPagination().nextPage();
+ recreateModel();
+ return "List";
+ }
+
+ public String previous() {
+ getPagination().previousPage();
+ recreateModel();
+ return "List";
+ }
+
+ public SelectItem[] getItemsAvailableSelectMany() {
+ return JsfUtil.getSelectItems(ejbFacade.findAll(), false);
+ }
+
+ public SelectItem[] getItemsAvailableSelectOne() {
+ return JsfUtil.getSelectItems(ejbFacade.findAll(), true);
+ }
+
+ @FacesConverter(forClass=Contact.class)
+ public static class ContactControllerConverter implements Converter {
+
+ @Override
+ public Contact getAsObject(FacesContext facesContext, UIComponent component, String value) {
+ if (value == null || value.length() == 0) {
+ return null;
+ }
+ ContactController controller = (ContactController)facesContext.getApplication().getELResolver().
+ getValue(facesContext.getELContext(), null, "contactController");
+ return controller.ejbFacade.find(getKey(value));
+ }
+
+ java.lang.Long getKey(String value) {
+ java.lang.Long key;
+ key = Long.valueOf(value);
+ return key;
+ }
+
+ String getStringKey(java.lang.Long value) {
+ StringBuilder sb = new StringBuilder();
+ sb.append(value);
+ return sb.toString();
+ }
+
+ @Override
+ public String getAsString(FacesContext facesContext, UIComponent component, Contact object) {
+ if (object == null) {
+ return null;
+ }
+ if (object instanceof Contact) {
+ Contact o = (Contact) object;
+ return getStringKey(o.getId());
+ } else {
+ throw new IllegalArgumentException("object " +
+ object +
+ " is of type " +
+ object.getClass().getName() +
+ "; expected type: " +
+ ContactController.class.getName());
+ }
+ }
+
+ }
+
+}
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/JsfUtil.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/JsfUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..5e2bf0add54859bf1ec03a46557a403820de8c38
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/JsfUtil.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.addressbook.web.util;
+
+import java.util.List;
+
+import jakarta.faces.application.FacesMessage;
+import jakarta.faces.component.UIComponent;
+import jakarta.faces.context.FacesContext;
+import jakarta.faces.convert.Converter;
+import jakarta.faces.model.SelectItem;
+
+public class JsfUtil {
+
+ public static SelectItem[] getSelectItems(List> entities, boolean selectOne) {
+ int size = selectOne ? entities.size() + 1 : entities.size();
+ SelectItem[] items = new SelectItem[size];
+ int i = 0;
+ if (selectOne) {
+ items[0] = new SelectItem("", "---");
+ i++;
+ }
+ for (Object x : entities) {
+ items[i++] = new SelectItem(x, x.toString());
+ }
+ return items;
+ }
+
+ public static void addErrorMessage(Exception ex, String defaultMsg) {
+ String msg = ex.getLocalizedMessage();
+ if (msg != null && msg.length() > 0) {
+ addErrorMessage(msg);
+ } else {
+ addErrorMessage(defaultMsg);
+ }
+ }
+
+ public static void addErrorMessages(List messages) {
+ for (String message : messages) {
+ addErrorMessage(message);
+ }
+ }
+
+ public static void addErrorMessage(String msg) {
+ FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, msg);
+ FacesContext.getCurrentInstance().addMessage(null, facesMsg);
+ }
+
+ public static void addSuccessMessage(String msg) {
+ FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
+ FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg);
+ }
+
+ public static String getRequestParameter(String key) {
+ return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);
+ }
+
+ public static Object getObjectFromRequestParameter(String requestParameterName, Converter converter, UIComponent component) {
+ String theId = JsfUtil.getRequestParameter(requestParameterName);
+ return converter.getAsObject(FacesContext.getCurrentInstance(), component, theId);
+ }
+
+}
diff --git a/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/PaginationHelper.java b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/PaginationHelper.java
new file mode 100644
index 0000000000000000000000000000000000000000..b866f21e7a38ea37583952dcfd6576beef1e749e
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/java/quarkus/tutorial/addressbook/web/util/PaginationHelper.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.addressbook.web.util;
+
+import jakarta.faces.model.DataModel;
+
+public abstract class PaginationHelper {
+
+ private int pageSize;
+ private int page;
+
+ public PaginationHelper(int pageSize) {
+ this.pageSize = pageSize;
+ }
+
+ public abstract int getItemsCount();
+
+ public abstract DataModel createPageDataModel();
+
+ public int getPageFirstItem() {
+ return page*pageSize;
+ }
+
+ public int getPageLastItem() {
+ int i = getPageFirstItem() + pageSize -1;
+ int count = getItemsCount() - 1;
+ if (i > count) {
+ i = count;
+ }
+ if (i < 0) {
+ i = 0;
+ }
+ return i;
+ }
+
+ public boolean isHasNextPage() {
+ return (page+1)*pageSize+1 <= getItemsCount();
+ }
+
+ public void nextPage() {
+ if (isHasNextPage()) {
+ page++;
+ }
+ }
+
+ public boolean isHasPreviousPage() {
+ return page > 0;
+ }
+
+ public void previousPage() {
+ if (isHasPreviousPage()) {
+ page--;
+ }
+ }
+
+ public int getPageSize() {
+ return pageSize;
+ }
+
+}
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/address-book/quarkus/src/main/resources/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..ffcab66aa2834b68df24bd23612a717fdbf7920a
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/Bundle.properties b/benchmark/persistence/address-book/quarkus/src/main/resources/Bundle.properties
new file mode 100644
index 0000000000000000000000000000000000000000..02e0ea911cd21469a5b9b4f712721158d9bd87de
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/Bundle.properties
@@ -0,0 +1,92 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+PersistenceErrorOccured=A persistence error occurred.
+Previous=Previous
+Next=Next
+
+ContactCreated=Contact was successfully created.
+ContactUpdated=Contact was successfully updated.
+ContactDeleted=Contact was successfully deleted.
+CreateContactTitle=Create New Contact
+CreateContactSaveLink=Save
+CreateContactShowAllLink=Show All Contact Items
+CreateContactIndexLink=Index
+CreateContactLabel_birthday=Birthday:
+CreateContactTitle_birthday=Birthday
+CreateContactLabel_homePhone=Home Phone:
+CreateContactTitle_homePhone=Home Phone
+CreateContactLabel_mobilePhone=Mobile Phone:
+CreateContactTitle_mobilePhone=Mobile Phone
+CreateContactLabel_email=Email:
+CreateContactTitle_email=Email
+CreateContactLabel_lastName=Last Name:
+CreateContactTitle_lastName=Last Name
+CreateContactLabel_firstName=First Name:
+CreateContactTitle_firstName=First Name
+CreateContactLabel_id=Id:
+CreateContactTitle_id=Id
+EditContactTitle=Edit Contact
+EditContactSaveLink=Save
+EditContactViewLink=View
+EditContactShowAllLink=Show All Contact Items
+EditContactIndexLink=Index
+EditContactLabel_birthday=Birthday:
+EditContactTitle_birthday=Birthday
+EditContactLabel_homePhone=Home Phone:
+EditContactTitle_homePhone=Home Phone
+EditContactLabel_mobilePhone=Mobile Phone:
+EditContactTitle_mobilePhone=Mobile Phone
+EditContactLabel_email=Email:
+EditContactTitle_email=Email
+EditContactLabel_lastName=Last Name:
+EditContactTitle_lastName=Last Name
+EditContactLabel_firstName=First Name:
+EditContactTitle_firstName=First Name
+EditContactLabel_id=Id:
+EditContactTitle_id=Id
+ViewContactTitle=View
+ViewContactDestroyLink=Destroy
+ViewContactEditLink=Edit
+ViewContactCreateLink=Create New Contact
+ViewContactShowAllLink=Show All Contact Items
+ViewContactIndexLink=Index
+ViewContactLabel_birthday=Birthday:
+ViewContactTitle_birthday=Birthday
+ViewContactLabel_homePhone=Home Phone:
+ViewContactTitle_homePhone=Home Phone
+ViewContactLabel_mobilePhone=Mobile Phone:
+ViewContactTitle_mobilePhone=Mobile Phone
+ViewContactLabel_email=Email:
+ViewContactTitle_email=Email
+ViewContactLabel_lastName=Last Name:
+ViewContactTitle_lastName=Last Name
+ViewContactLabel_firstName=First Name:
+ViewContactTitle_firstName=First Name
+ViewContactLabel_id=Id:
+ViewContactTitle_id=Id
+ListContactTitle=List
+ListContactEmpty=(No Contact Items Found)
+ListContactDestroyLink=Destroy
+ListContactEditLink=Edit
+ListContactViewLink=View
+ListContactCreateLink=Create New Contact
+ListContactIndexLink=Index
+ListContactTitle_birthday=Birthday
+ListContactTitle_homePhone=Home Phone
+ListContactTitle_mobilePhone=Mobile Phone
+ListContactTitle_email=Email
+ListContactTitle_lastName=Last Name
+ListContactTitle_firstName=First Name
+ListContactTitle_id=Id
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/faces-config.xml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/faces-config.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3f31a7897ebe3d64226d6966ddc08cda6dbe4f06
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/faces-config.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ /Bundle
+ bundle
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/web.xml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..37159047cffaa0adc7435fad0ae8a36b27fc73c8
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/WEB-INF/web.xml
@@ -0,0 +1,39 @@
+
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ jakarta.faces.FACELETS_SKIP_COMMENTS
+ true
+
+
+ jakarta.faces.FACELETS_REFRESH_PERIOD
+ -1
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ *.xhtml
+
+
+ index.xhtml
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Create.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Create.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..1fe9aa0f3f5af23f904d72b2d439f62de791fa93
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Create.xhtml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Edit.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Edit.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..30d7874193e081773648d2b672ae9d9dd787bd40
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/Edit.xhtml
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/List.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/List.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..84b340973b0a41c13cf98858c7936a2abef05f50
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/List.xhtml
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/View.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/View.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..c42df45a989ccdc3a820fd02c8909e28d31d0d0c
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/contact/View.xhtml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/index.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/index.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..ef91e66add4d78592a851bfc35209463e44a458b
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/index.xhtml
@@ -0,0 +1,31 @@
+
+
+
+
+
+ Java Persistence API with JavaBeans Annotations Example
+
+
+
+ Welcome to the Address Book example.
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/resources/css/jsfcrud.css b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/resources/css/jsfcrud.css
new file mode 100644
index 0000000000000000000000000000000000000000..9ad890eb751df6c25998e4f1b4e77e3c4de70c5d
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/resources/css/jsfcrud.css
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+root {
+ display: block;
+}
+
+body {
+ font-family: Univers, "Univers 55", "Lucida Grande CE", lucida, Helvetica, san-serif;
+ color: black;
+ background-color: white;
+ font-size: small;
+}
+
+h1, h2, h3, h4 {
+ border-bottom: 1px solid #7F7F7F;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #d20005;
+}
+
+h1 {
+ font-size: 16px;
+}
+
+h2 {
+ font-size: 14px;
+}
+
+h3 {
+ font-size: 12px;
+}
+
+h4 {
+ font-size: 10px;
+}
+
+a:link, a:visited {
+ color: black;
+}
+
+a:link:hover, a:visited:hover {
+ text-decoration: underline;
+ color: #d20005;
+}
+
+table {
+ empty-cells: show;
+}
+
+form.jsfcrud_list_form th, td th {
+ font-size: x-small;
+ color: #d20005;
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ letter-spacing: 3px;
+ text-align: left;
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 6px;
+ padding-right: 6px;
+ background-color: white;
+}
+
+td {
+ vertical-align: top;
+ padding-bottom: 8px;
+ font-size: small;
+}
+
+form.jsfcrud_list_form td, td td {
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ vertical-align: baseline;
+ padding-bottom: 0px;
+}
+
+tr.jsfcrud_odd_row {
+ background-color: #e5e5e5;
+ color: black;
+}
+
+
+tr.jsfcrud_even_row {
+ background-color: #cccccc;
+ color: black;
+}
+
+#busyImage {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+}
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/template.xhtml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..4581b49780fc8e0450c27f08f126e2988b0ff569
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/resources/template.xhtml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ Default Title
+
+
+
+
+
+ Default Title
+
+
+ Default Body
+
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/web.xml b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..37159047cffaa0adc7435fad0ae8a36b27fc73c8
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/META-INF/web.xml
@@ -0,0 +1,39 @@
+
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ jakarta.faces.FACELETS_SKIP_COMMENTS
+ true
+
+
+ jakarta.faces.FACELETS_REFRESH_PERIOD
+ -1
+
+
+ Faces Servlet
+ jakarta.faces.webapp.FacesServlet
+ 1
+
+
+ Faces Servlet
+ *.xhtml
+
+
+ index.xhtml
+
+
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/ValidationMessages.properties b/benchmark/persistence/address-book/quarkus/src/main/resources/ValidationMessages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c4eb065f57e93900b2eeae7c5ff2b4cd88d2749a
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/ValidationMessages.properties
@@ -0,0 +1,15 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# Validation message string for the JavaBeans Validation API
+invalid.email=Not a valid email address.
+invalid.phonenumber=Not a valid phone number.
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/application.properties b/benchmark/persistence/address-book/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c509eaadffcfb36282a69794ed71a7e6e531d78e
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/application.properties
@@ -0,0 +1,8 @@
+quarkus.datasource.db-kind=h2
+quarkus.datasource.jdbc.url=jdbc:h2:mem:addressbook;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
+quarkus.datasource.username=sa
+quarkus.datasource.password=
+quarkus.hibernate-orm.database.generation=update
+quarkus.hibernate-orm.log.sql=true
+quarkus.http.port=8080
+
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw b/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw.cmd b/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/src/main/resources/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/address-book/quarkus/test.sh b/benchmark/persistence/address-book/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..21784743b019b9893b6c1981b7bb76709e960d6b
--- /dev/null
+++ b/benchmark/persistence/address-book/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080}"
+
+echo "Health check: ${BASE_URL}/"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}/")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/address-book/spring/.dockerignore b/benchmark/persistence/address-book/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/address-book/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/address-book/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8dea6c227c08000d2400d38a2ac886063f22bc36
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
diff --git a/benchmark/persistence/address-book/spring/Dockerfile b/benchmark/persistence/address-book/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..57e175bfb6aea19c77e95e82697b83253c1d3191
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/Dockerfile
@@ -0,0 +1,31 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+# Build application at image build time
+RUN mvn clean install -DskipTests
+
+CMD ["mvn", "spring-boot:run"]
diff --git a/benchmark/persistence/address-book/spring/mvnw b/benchmark/persistence/address-book/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/address-book/spring/mvnw.cmd b/benchmark/persistence/address-book/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/address-book/spring/pom.xml b/benchmark/persistence/address-book/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f481c1fcb35cbf55ac4a2bb9ede2a6317014eb4b
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/pom.xml
@@ -0,0 +1,105 @@
+
+ 4.0.0
+ com.example
+ address-book-spring
+ 0.0.1-SNAPSHOT
+ war
+ Address Book (Spring)
+ Demo project for Spring Boot
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 17
+ 17
+ UTF-8
+
+
+
+
+ org.springframework
+ spring-core
+ 6.2.11
+
+
+ ch.qos.logback
+ logback-core
+ 1.5.19
+
+
+ ch.qos.logback
+ logback-classic
+ 1.5.19
+
+
+ org.joinfaces
+ joinfaces-platform
+ 5.5.5
+ pom
+ import
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-validation
+
+
+ org.joinfaces
+ jsf-spring-boot-starter
+
+
+ org.glassfish
+ jakarta.faces
+ 4.0.2
+
+
+ org.jboss.weld.servlet
+ weld-servlet-core
+ 5.1.0.Final
+
+
+ com.h2database
+ h2
+ runtime
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ provided
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
\ No newline at end of file
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/Application.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/Application.java
new file mode 100644
index 0000000000000000000000000000000000000000..1f19bacc344a3d15f666b171ae155fed19532942
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/Application.java
@@ -0,0 +1,13 @@
+package com.example.addressbookspring;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class Application {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/ServletInitializer.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/ServletInitializer.java
new file mode 100644
index 0000000000000000000000000000000000000000..dad93156dd17ceefe3ebf6659bc46cb782416dd1
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/ServletInitializer.java
@@ -0,0 +1,13 @@
+package com.example.addressbookspring;
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+public class ServletInitializer extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
+ return application.sources(Application.class);
+ }
+
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/JsfConfig.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/JsfConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..18cf52c04ef7d637b3349e4633ff1ce5dcd75f9f
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/JsfConfig.java
@@ -0,0 +1,18 @@
+package com.example.addressbookspring.config;
+
+import jakarta.faces.webapp.FacesServlet;
+import org.springframework.boot.web.servlet.ServletRegistrationBean;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class JsfConfig {
+
+ @Bean
+ public ServletRegistrationBean facesServletRegistration() {
+ ServletRegistrationBean srb =
+ new ServletRegistrationBean<>(new FacesServlet(), "*.xhtml");
+ srb.setLoadOnStartup(1);
+ return srb;
+ }
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/SpringConfig.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/SpringConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..d1ae899b3944e9cb4a85487e222a7d7635a51dc0
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/config/SpringConfig.java
@@ -0,0 +1,9 @@
+package com.example.addressbookspring.config;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.ComponentScan;
+
+@Configuration
+@ComponentScan(basePackages = "com.example.addressbookspring")
+public class SpringConfig {
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/entity/Contact.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/entity/Contact.java
new file mode 100644
index 0000000000000000000000000000000000000000..a73565afcd9bf0e8f2a69613128c01e5a2ecf594
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/entity/Contact.java
@@ -0,0 +1,185 @@
+package com.example.addressbookspring.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Past;
+import jakarta.validation.constraints.Pattern;
+
+
+@Entity
+public class Contact implements Serializable {
+
+ private static final long serialVersionUID = -825634229676522580L;
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ private Long id;
+ @NotNull
+ protected String firstName;
+ @NotNull
+ protected String lastName;
+ @Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\."
+ + "[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"
+ + "(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9]"
+ + "(?:[a-z0-9-]*[a-z0-9])?",
+ message = "{invalid.email}")
+ protected String email;
+ @Pattern(regexp = "^\\(?(\\d{3})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$",
+ message = "{invalid.phonenumber}")
+ protected String mobilePhone;
+ @Pattern(regexp = "^\\(?(\\d{3})\\)?[- ]?(\\d{3})[- ]?(\\d{4})$",
+ message = "{invalid.phonenumber}")
+ protected String homePhone;
+ @Temporal(TemporalType.DATE)
+ @Past
+ protected Date birthday;
+
+ /**
+ * Get the value of birthday
+ *
+ * @return the value of birthday
+ */
+ public Date getBirthday() {
+ return birthday;
+ }
+
+ /**
+ * Set the value of birthday
+ *
+ * @param birthday new value of birthday
+ */
+ public void setBirthday(Date birthday) {
+ this.birthday = birthday;
+ }
+
+ /**
+ * Get the value of homePhone
+ *
+ * @return the value of homePhone
+ */
+ public String getHomePhone() {
+ return homePhone;
+ }
+
+ /**
+ * Set the value of homePhone
+ *
+ * @param homePhone new value of homePhone
+ */
+ public void setHomePhone(String homePhone) {
+ this.homePhone = homePhone;
+ }
+
+ /**
+ * Get the value of mobilePhone
+ *
+ * @return the value of mobilePhone
+ */
+ public String getMobilePhone() {
+ return mobilePhone;
+ }
+
+ /**
+ * Set the value of mobilePhone
+ *
+ * @param mobilePhone new value of mobilePhone
+ */
+ public void setMobilePhone(String mobilePhone) {
+ this.mobilePhone = mobilePhone;
+ }
+
+ /**
+ * Get the value of email
+ *
+ * @return the value of email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * Set the value of email
+ *
+ * @param email new value of email
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * Get the value of lastName
+ *
+ * @return the value of lastName
+ */
+ public String getLastName() {
+ return lastName;
+ }
+
+ /**
+ * Set the value of lastName
+ *
+ * @param lastName new value of lastName
+ */
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ /**
+ * Get the value of firstName
+ *
+ * @return the value of firstName
+ */
+ public String getFirstName() {
+ return firstName;
+ }
+
+ /**
+ * Set the value of firstName
+ *
+ * @param firstName new value of firstName
+ */
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ @Override
+ public int hashCode() {
+ int hash = 0;
+ hash += (id != null ? id.hashCode() : 0);
+ return hash;
+ }
+
+ @Override
+ public boolean equals(Object object) {
+ // TODO: Warning - this method won't work in the case the id fields are not set
+ if (!(object instanceof Contact)) {
+ return false;
+ }
+ Contact other = (Contact) object;
+ if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "addressbookspring.entity.Contact[id=" + id + "]";
+ }
+
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/repo/ContactRepository.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/repo/ContactRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..f529bc331de4aa76040c7a4cd531d7abdb7bef7f
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/repo/ContactRepository.java
@@ -0,0 +1,8 @@
+package com.example.addressbookspring.repo;
+
+import com.example.addressbookspring.entity.Contact;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface ContactRepository extends JpaRepository { }
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/service/ContactService.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/service/ContactService.java
new file mode 100644
index 0000000000000000000000000000000000000000..c8294ae29efba9e3254e74512a055c0463e68139
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/service/ContactService.java
@@ -0,0 +1,60 @@
+package com.example.addressbookspring.service;
+
+import com.example.addressbookspring.entity.Contact;
+import com.example.addressbookspring.repo.ContactRepository;
+import org.springframework.data.domain.PageRequest;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+
+@Service
+@Transactional
+public class ContactService {
+ private final ContactRepository repo;
+
+ public ContactService(ContactRepository repo) {
+ this.repo = repo;
+ }
+
+
+ public void create(Contact entity) {
+ repo.save(entity);
+ }
+
+ public void edit(Contact entity) {
+ repo.save(entity);
+ }
+
+ public void remove(Contact entity) {
+ if (entity == null) return;
+ Long id = entity.getId();
+ if (id != null && repo.existsById(id)) {
+ repo.deleteById(id);
+ } else {
+ repo.delete(entity);
+ }
+ }
+
+ public Contact find(Long id) {
+ return (id == null) ? null : repo.findById(id).orElse(null);
+ }
+
+ public List findAll() {
+ return repo.findAll();
+ }
+
+ public List findRange(int[] range) {
+ int start = range[0];
+ int endExclusive = range[1];
+ int size = Math.max(0, endExclusive - start);
+ if (size <= 0) return List.of();
+ int page = start / size;
+ return repo.findAll(PageRequest.of(page, size)).getContent();
+ }
+
+ public int count() {
+ long c = repo.count();
+ return (c > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) c;
+ }
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/web/ContactController.java b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/web/ContactController.java
new file mode 100644
index 0000000000000000000000000000000000000000..aded9d983b80e90b2ddd7282641f24800382b375
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/java/com/example/addressbookspring/web/ContactController.java
@@ -0,0 +1,245 @@
+package com.example.addressbookspring.web;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.ResourceBundle;
+import org.springframework.context.annotation.Scope;
+import jakarta.faces.context.FacesContext;
+import jakarta.validation.Valid;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import com.example.addressbookspring.entity.Contact;
+import com.example.addressbookspring.service.ContactService;
+
+@Component("contactController")
+@Scope("session")
+public class ContactController implements Serializable {
+
+ private static final long serialVersionUID = -8163374738411860012L;
+
+ @Autowired
+ private ContactService ejbFacade;
+
+ private Contact current;
+ private List items = null;
+ private PaginationHelper pagination;
+ private int selectedItemIndex;
+
+ public Contact getSelected() {
+ if (current == null) {
+ current = new Contact();
+ selectedItemIndex = -1;
+ }
+ return current;
+ }
+
+ private ContactService getFacade() {
+ return ejbFacade;
+ }
+
+ public static abstract class PaginationHelper {
+ private final int pageSize;
+ private int page;
+
+ protected PaginationHelper(int pageSize) { this.pageSize = pageSize; }
+
+ public abstract int getItemsCount();
+
+ public abstract List createPageData();
+
+ public int getPageFirstItem() {
+ return page*pageSize;
+ }
+
+ public int getPageLastItem() {
+ int i = getPageFirstItem() + pageSize -1;
+ int count = getItemsCount() - 1;
+ if (i > count) {
+ i = count;
+ }
+ if (i < 0) {
+ i = 0;
+ }
+ return i;
+ }
+
+ public boolean isHasNextPage() {
+ return (page+1)*pageSize+1 <= getItemsCount();
+ }
+
+ public void nextPage() {
+ if (isHasNextPage()) {
+ page++;
+ }
+ }
+
+ public boolean isHasPreviousPage() {
+ return page > 0;
+ }
+
+ public void previousPage() {
+ if (isHasPreviousPage()) {
+ page--;
+ }
+ }
+
+ public int getPageSize() {
+ return pageSize;
+ }
+
+ }
+
+ public PaginationHelper getPagination() {
+ if (pagination == null) {
+ pagination = new PaginationHelper(10) {
+ @Override
+ public int getItemsCount() {
+ return getFacade().count();
+ }
+
+ @Override
+ public List createPageData() {
+ int first = getPageFirstItem();
+ int lastExclusive = getPageFirstItem() + getPageSize();
+ return getFacade().findRange(new int[]{ first, lastExclusive });
+ }
+ };
+ }
+ return pagination;
+ }
+
+ public String prepareList() {
+ recreateModel();
+ return "List";
+ }
+
+ public String prepareView(Contact contact) {
+ current = contact;
+ selectedItemIndex = getItems().indexOf(contact);
+ return "View";
+ }
+
+ public String prepareCreate() {
+ current = new Contact();
+ selectedItemIndex = -1;
+ return "Create";
+ }
+
+ public String create() {
+ try {
+ getFacade().create(current);
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("ContactCreated")));
+ return prepareCreate();
+ } catch (Exception e) {
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("PersistenceErrorOccured")));
+ return null;
+ }
+ }
+
+ public String prepareEdit(Contact contact) {
+ current = contact;
+ selectedItemIndex = getItems().indexOf(contact);
+ return "Edit";
+ }
+
+ public String update() {
+ try {
+ getFacade().edit(current);
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("ContactUpdated")));
+ return "View";
+ } catch (Exception e) {
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("PersistenceErrorOccured")));
+ return null;
+ }
+ }
+
+ public String destroy(Contact contact) {
+ current = contact;
+ selectedItemIndex = getItems().indexOf(contact);
+ performDestroy();
+ recreateModel();
+ return "List";
+ }
+
+ public String destroyAndView() {
+ performDestroy();
+ recreateModel();
+ updateCurrentItem();
+ if (selectedItemIndex >= 0) {
+ return "View";
+ } else {
+ recreateModel();
+ return "List";
+ }
+ }
+
+ private void performDestroy() {
+ try {
+ getFacade().remove(current);
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("ContactDeleted")));
+ } catch (Exception e) {
+ FacesContext.getCurrentInstance().addMessage(null,
+ new jakarta.faces.application.FacesMessage(
+ ResourceBundle.getBundle("Bundle").getString("PersistenceErrorOccured")));
+ }
+ }
+
+ private void updateCurrentItem() {
+ int count = getFacade().count();
+ if (selectedItemIndex >= count) {
+ selectedItemIndex = count - 1;
+ if (getPagination().getPageFirstItem() >= count) {
+ getPagination().previousPage();
+ }
+ }
+ if (selectedItemIndex >= 0) {
+ current = getFacade().findRange(new int[]{ selectedItemIndex, selectedItemIndex + 1 }).get(0);
+ } else {
+ current = null;
+ }
+ }
+
+ public List getItems() {
+ if (items == null) {
+ items = new ArrayList<>(getPagination().createPageData());
+ }
+ return items;
+ }
+
+ private void recreateModel() {
+ items = null;
+ }
+
+ public String next() {
+ getPagination().nextPage();
+ recreateModel();
+ return "List";
+ }
+
+ public String previous() {
+ getPagination().previousPage();
+ recreateModel();
+ return "List";
+ }
+
+ public List getItemsAvailableSelectMany() {
+ return getFacade().findAll();
+ }
+
+ public List getItemsAvailableSelectOne() {
+ return getFacade().findAll();
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/Bundle.properties b/benchmark/persistence/address-book/spring/src/main/resources/Bundle.properties
new file mode 100644
index 0000000000000000000000000000000000000000..02e0ea911cd21469a5b9b4f712721158d9bd87de
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/Bundle.properties
@@ -0,0 +1,92 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+PersistenceErrorOccured=A persistence error occurred.
+Previous=Previous
+Next=Next
+
+ContactCreated=Contact was successfully created.
+ContactUpdated=Contact was successfully updated.
+ContactDeleted=Contact was successfully deleted.
+CreateContactTitle=Create New Contact
+CreateContactSaveLink=Save
+CreateContactShowAllLink=Show All Contact Items
+CreateContactIndexLink=Index
+CreateContactLabel_birthday=Birthday:
+CreateContactTitle_birthday=Birthday
+CreateContactLabel_homePhone=Home Phone:
+CreateContactTitle_homePhone=Home Phone
+CreateContactLabel_mobilePhone=Mobile Phone:
+CreateContactTitle_mobilePhone=Mobile Phone
+CreateContactLabel_email=Email:
+CreateContactTitle_email=Email
+CreateContactLabel_lastName=Last Name:
+CreateContactTitle_lastName=Last Name
+CreateContactLabel_firstName=First Name:
+CreateContactTitle_firstName=First Name
+CreateContactLabel_id=Id:
+CreateContactTitle_id=Id
+EditContactTitle=Edit Contact
+EditContactSaveLink=Save
+EditContactViewLink=View
+EditContactShowAllLink=Show All Contact Items
+EditContactIndexLink=Index
+EditContactLabel_birthday=Birthday:
+EditContactTitle_birthday=Birthday
+EditContactLabel_homePhone=Home Phone:
+EditContactTitle_homePhone=Home Phone
+EditContactLabel_mobilePhone=Mobile Phone:
+EditContactTitle_mobilePhone=Mobile Phone
+EditContactLabel_email=Email:
+EditContactTitle_email=Email
+EditContactLabel_lastName=Last Name:
+EditContactTitle_lastName=Last Name
+EditContactLabel_firstName=First Name:
+EditContactTitle_firstName=First Name
+EditContactLabel_id=Id:
+EditContactTitle_id=Id
+ViewContactTitle=View
+ViewContactDestroyLink=Destroy
+ViewContactEditLink=Edit
+ViewContactCreateLink=Create New Contact
+ViewContactShowAllLink=Show All Contact Items
+ViewContactIndexLink=Index
+ViewContactLabel_birthday=Birthday:
+ViewContactTitle_birthday=Birthday
+ViewContactLabel_homePhone=Home Phone:
+ViewContactTitle_homePhone=Home Phone
+ViewContactLabel_mobilePhone=Mobile Phone:
+ViewContactTitle_mobilePhone=Mobile Phone
+ViewContactLabel_email=Email:
+ViewContactTitle_email=Email
+ViewContactLabel_lastName=Last Name:
+ViewContactTitle_lastName=Last Name
+ViewContactLabel_firstName=First Name:
+ViewContactTitle_firstName=First Name
+ViewContactLabel_id=Id:
+ViewContactTitle_id=Id
+ListContactTitle=List
+ListContactEmpty=(No Contact Items Found)
+ListContactDestroyLink=Destroy
+ListContactEditLink=Edit
+ListContactViewLink=View
+ListContactCreateLink=Create New Contact
+ListContactIndexLink=Index
+ListContactTitle_birthday=Birthday
+ListContactTitle_homePhone=Home Phone
+ListContactTitle_mobilePhone=Mobile Phone
+ListContactTitle_email=Email
+ListContactTitle_lastName=Last Name
+ListContactTitle_firstName=First Name
+ListContactTitle_id=Id
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/faces-config.xml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/faces-config.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b40e8f98257159210b7472952111b20fb3bd005e
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/faces-config.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ Bundle
+ bundle
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Create.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Create.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..1fe9aa0f3f5af23f904d72b2d439f62de791fa93
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Create.xhtml
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Edit.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Edit.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..30d7874193e081773648d2b672ae9d9dd787bd40
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/Edit.xhtml
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/List.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/List.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..02fb306caddffc42774d57fde54e65da273cd9f2
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/List.xhtml
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/View.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/View.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..c42df45a989ccdc3a820fd02c8909e28d31d0d0c
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/contact/View.xhtml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/css/jsfcrud.css b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/css/jsfcrud.css
new file mode 100644
index 0000000000000000000000000000000000000000..9ad890eb751df6c25998e4f1b4e77e3c4de70c5d
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/css/jsfcrud.css
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+root {
+ display: block;
+}
+
+body {
+ font-family: Univers, "Univers 55", "Lucida Grande CE", lucida, Helvetica, san-serif;
+ color: black;
+ background-color: white;
+ font-size: small;
+}
+
+h1, h2, h3, h4 {
+ border-bottom: 1px solid #7F7F7F;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #d20005;
+}
+
+h1 {
+ font-size: 16px;
+}
+
+h2 {
+ font-size: 14px;
+}
+
+h3 {
+ font-size: 12px;
+}
+
+h4 {
+ font-size: 10px;
+}
+
+a:link, a:visited {
+ color: black;
+}
+
+a:link:hover, a:visited:hover {
+ text-decoration: underline;
+ color: #d20005;
+}
+
+table {
+ empty-cells: show;
+}
+
+form.jsfcrud_list_form th, td th {
+ font-size: x-small;
+ color: #d20005;
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ letter-spacing: 3px;
+ text-align: left;
+ padding-top: 6px;
+ padding-bottom: 6px;
+ padding-left: 6px;
+ padding-right: 6px;
+ background-color: white;
+}
+
+td {
+ vertical-align: top;
+ padding-bottom: 8px;
+ font-size: small;
+}
+
+form.jsfcrud_list_form td, td td {
+ border-top-style: solid;
+ border-bottom-style: solid;
+ border-left-style: solid;
+ border-right-style: solid;
+ border-top-width: 1px;
+ border-bottom-width: 1px;
+ border-left-width: 1px;
+ border-right-width: 1px;
+ border-top-color: #cccccc;
+ border-bottom-color: #cccccc;
+ border-left-color: #999999;
+ border-right-color: #999999;
+ vertical-align: baseline;
+ padding-bottom: 0px;
+}
+
+tr.jsfcrud_odd_row {
+ background-color: #e5e5e5;
+ color: black;
+}
+
+
+tr.jsfcrud_even_row {
+ background-color: #cccccc;
+ color: black;
+}
+
+#busyImage {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+}
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/index.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/index.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..f012e65017a32ea66400ce7043bd6f2c5eabca89
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/index.xhtml
@@ -0,0 +1,30 @@
+
+
+
+
+
+ Java Persistence API with JavaBeans Annotations Example
+
+
+
+ Welcome to the Address Book example.
+
+
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/template.xhtml b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..4581b49780fc8e0450c27f08f126e2988b0ff569
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/META-INF/resources/template.xhtml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ Default Title
+
+
+
+
+
+ Default Title
+
+
+ Default Body
+
+
+
+
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/ValidationMessages.properties b/benchmark/persistence/address-book/spring/src/main/resources/ValidationMessages.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c4eb065f57e93900b2eeae7c5ff2b4cd88d2749a
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/ValidationMessages.properties
@@ -0,0 +1,15 @@
+#
+# Copyright (c), Eclipse Foundation, Inc. and its licensors.
+#
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Distribution License v1.0, which is available at
+# https://www.eclipse.org/org/documents/edl-v10.php
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# Validation message string for the JavaBeans Validation API
+invalid.email=Not a valid email address.
+invalid.phonenumber=Not a valid phone number.
diff --git a/benchmark/persistence/address-book/spring/src/main/resources/application.properties b/benchmark/persistence/address-book/spring/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..a1e8d82570dca3e2b8621a9a8026831da7fa0675
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/src/main/resources/application.properties
@@ -0,0 +1,15 @@
+spring.application.name=Address Book (Spring + JSF)
+spring.datasource.url=jdbc:h2:mem:addressbook;DB_CLOSE_DELAY=-1
+spring.datasource.username=sa
+spring.datasource.password=
+spring.jpa.hibernate.ddl-auto=update
+spring.jpa.show-sql=true
+spring.mvc.format.date=MM/dd/yyyy
+spring.messages.basename=Bundle,ValidationMessages
+server.port=8080
+
+# JSF Configuration
+joinfaces.faces-servlet.enabled=true
+joinfaces.faces-servlet.url-mappings=*.xhtml,/faces/*
+joinfaces.jsf.project-stage=Development
+
diff --git a/benchmark/persistence/address-book/spring/test.sh b/benchmark/persistence/address-book/spring/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..21784743b019b9893b6c1981b7bb76709e960d6b
--- /dev/null
+++ b/benchmark/persistence/address-book/spring/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8080}"
+
+echo "Health check: ${BASE_URL}/"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}/")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/order/jakarta/.dockerignore b/benchmark/persistence/order/jakarta/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/order/jakarta/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/order/jakarta/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8dea6c227c08000d2400d38a2ac886063f22bc36
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
diff --git a/benchmark/persistence/order/jakarta/Dockerfile b/benchmark/persistence/order/jakarta/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..bb9aafb1cb951a1ab54c776a26843385260532e8
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/Dockerfile
@@ -0,0 +1,28 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+COPY test.sh .
+RUN chmod +x test.sh
+RUN mvn clean install -DskipTests
+CMD [ "mvn", "liberty:run" ]
diff --git a/benchmark/persistence/order/jakarta/mvnw b/benchmark/persistence/order/jakarta/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/order/jakarta/mvnw.cmd b/benchmark/persistence/order/jakarta/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/order/jakarta/pom.xml b/benchmark/persistence/order/jakarta/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6c77ead8c37af2c64c3dde491a9383be95ad49a9
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/pom.xml
@@ -0,0 +1,74 @@
+
+
+
+ 4.0.0
+
+ jakarta.examples.tutorial.persistence
+ order
+ 10-SNAPSHOT
+ war
+ order
+
+
+ 17
+ UTF-8
+ 2.2.224
+
+
+
+
+ jakarta.platform
+ jakarta.jakartaee-web-api
+ 10.0.0
+ provided
+
+
+ com.h2database
+ h2
+ ${h2.version}
+
+
+
+
+
+
+ maven-war-plugin
+ 3.4.0
+
+ false
+
+
+
+ io.openliberty.tools
+ liberty-maven-plugin
+ 3.10
+
+
+
+ ${project.build.directory}/liberty/wlp/usr/shared/resources
+
+ com.h2database
+ h2
+ ${h2.version}
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/ConfigBean.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/ConfigBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..1e6ce6738aef76f60ff9374c4133ae815b894988
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/ConfigBean.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.ejb;
+
+import jakarta.annotation.PostConstruct;
+import jakarta.annotation.PreDestroy;
+import jakarta.ejb.EJB;
+import jakarta.ejb.Singleton;
+import jakarta.ejb.Startup;
+
+/**
+ *
+ * @author ian
+ */
+@Singleton
+@Startup
+public class ConfigBean {
+
+ @EJB
+ private RequestBean request;
+
+ @PostConstruct
+ public void createData() {
+ request.createPart("1234-5678-01", 1, "ABC PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ request.createPart("9876-4321-02", 2, "DEF PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ request.createPart("5456-6789-03", 3, "GHI PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ request.createPart("ABCD-XYZW-FF", 5, "XYZ PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ request.createPart("SDFG-ERTY-BN", 7, "BOM PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+
+ request.addPartToBillOfMaterial("SDFG-ERTY-BN", 7,
+ "1234-5678-01", 1);
+ request.addPartToBillOfMaterial("SDFG-ERTY-BN", 7,
+ "9876-4321-02", 2);
+ request.addPartToBillOfMaterial("SDFG-ERTY-BN", 7,
+ "5456-6789-03", 3);
+ request.addPartToBillOfMaterial("SDFG-ERTY-BN", 7,
+ "ABCD-XYZW-FF", 5);
+
+ request.createVendor(100, "WidgetCorp",
+ "111 Main St., Anytown, KY 99999", "Mr. Jones",
+ "888-777-9999");
+ request.createVendor(200, "Gadget, Inc.",
+ "123 State St., Sometown, MI 88888", "Mrs. Smith",
+ "866-345-6789");
+
+ request.createVendorPart("1234-5678-01", 1,
+ "PART1", 100.00, 100);
+ request.createVendorPart("9876-4321-02", 2,
+ "PART2", 10.44, 200);
+ request.createVendorPart("5456-6789-03", 3,
+ "PART3", 76.23, 200);
+ request.createVendorPart("ABCD-XYZW-FF", 5,
+ "PART4", 55.19, 100);
+ request.createVendorPart("SDFG-ERTY-BN", 7,
+ "PART5", 345.87, 100);
+
+ Integer orderId = 1111;
+ request.createOrder(orderId, 'N', 10,
+ "333 New Court, New City, CA 90000");
+ request.addLineItem(orderId, "1234-5678-01", 1, 3);
+ request.addLineItem(orderId, "9876-4321-02", 2, 5);
+ request.addLineItem(orderId, "ABCD-XYZW-FF", 5, 7);
+
+ orderId = 4312;
+ request.createOrder(orderId, 'N', 0,
+ "333 New Court, New City, CA 90000");
+ request.addLineItem(orderId, "SDFG-ERTY-BN", 7, 1);
+ request.addLineItem(orderId, "ABCD-XYZW-FF", 5, 3);
+ request.addLineItem(orderId, "1234-5678-01", 1, 15);
+ }
+
+ @PreDestroy
+ public void deleteData() {
+
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/RequestBean.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/RequestBean.java
new file mode 100644
index 0000000000000000000000000000000000000000..7ae4a6154d0b98d081c1f7388de45dd826670396
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/ejb/RequestBean.java
@@ -0,0 +1,304 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.ejb;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import jakarta.ejb.EJBException;
+import jakarta.ejb.Stateful;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import jakarta.tutorial.order.entity.CustomerOrder;
+import jakarta.tutorial.order.entity.LineItem;
+import jakarta.tutorial.order.entity.Part;
+import jakarta.tutorial.order.entity.PartKey;
+import jakarta.tutorial.order.entity.Vendor;
+import jakarta.tutorial.order.entity.VendorPart;
+
+
+@Stateful
+public class RequestBean {
+
+ @PersistenceContext
+ private EntityManager em;
+
+ private static final Logger logger = Logger.getLogger("order.ejb.RequestBean");
+
+ public void createPart(String partNumber,
+ int revision,
+ String description,
+ java.util.Date revisionDate,
+ String specification,
+ Serializable drawing) {
+ try {
+ Part part = new Part(partNumber,
+ revision,
+ description,
+ revisionDate,
+ specification,
+ drawing);
+ logger.log(Level.INFO, "Created part {0}-{1}", new Object[]{partNumber, revision});
+ em.persist(part);
+ logger.log(Level.INFO, "Persisted part {0}-{1}", new Object[]{partNumber, revision});
+ } catch (Exception ex) {
+ throw new EJBException(ex.getMessage());
+ }
+ }
+
+ public List getAllParts() {
+ List parts = (List) em.createNamedQuery("findAllParts").getResultList();
+ return parts;
+ }
+
+ public void addPartToBillOfMaterial(String bomPartNumber,
+ int bomRevision,
+ String partNumber,
+ int revision) {
+ logger.log(Level.INFO, "BOM part number: {0}", bomPartNumber);
+ logger.log(Level.INFO, "BOM revision: {0}", bomRevision);
+ logger.log(Level.INFO, "Part number: {0}", partNumber);
+ logger.log(Level.INFO, "Part revision: {0}", revision);
+ try {
+ PartKey bomKey = new PartKey();
+ bomKey.setPartNumber(bomPartNumber);
+ bomKey.setRevision(bomRevision);
+
+ Part bom = em.find(Part.class, bomKey);
+ logger.log(Level.INFO, "BOM Part found: {0}", bom.getPartNumber());
+
+ PartKey partKey = new PartKey();
+ partKey.setPartNumber(partNumber);
+ partKey.setRevision(revision);
+
+ Part part = em.find(Part.class, partKey);
+ logger.log(Level.INFO, "Part found: {0}", part.getPartNumber());
+ bom.getParts().add(part);
+ part.setBomPart(bom);
+ } catch (EJBException e) {
+ }
+ }
+
+ public void createVendor(int vendorId,
+ String name,
+ String address,
+ String contact,
+ String phone) {
+ try {
+ Vendor vendor = new Vendor(vendorId, name, address, contact, phone);
+ em.persist(vendor);
+ } catch (Exception e) {
+ throw new EJBException(e);
+ }
+ }
+
+ public void createVendorPart(String partNumber,
+ int revision,
+ String description,
+ double price,
+ int vendorId) {
+ try {
+ PartKey pkey = new PartKey();
+ pkey.setPartNumber(partNumber);
+ pkey.setRevision(revision);
+
+ Part part = em.find(Part.class, pkey);
+
+ VendorPart vendorPart = new VendorPart(description, price, part);
+ em.persist(vendorPart);
+
+ Vendor vendor = em.find(Vendor.class, vendorId);
+ vendor.addVendorPart(vendorPart);
+ vendorPart.setVendor(vendor);
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public void createOrder(Integer orderId, char status, int discount, String shipmentInfo) {
+ try {
+ CustomerOrder order = new CustomerOrder(orderId, status, discount, shipmentInfo);
+ em.persist(order);
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public List getOrders() {
+ try {
+ return (List) em.createNamedQuery("findAllOrders").getResultList();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public void addLineItem(Integer orderId, String partNumber, int revision, int quantity) {
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ logger.log(Level.INFO, "Found order ID {0}", orderId);
+
+ PartKey pkey = new PartKey();
+ pkey.setPartNumber(partNumber);
+ pkey.setRevision(revision);
+
+ Part part = em.find(Part.class, pkey);
+
+ LineItem lineItem = new LineItem(order, quantity, part.getVendorPart());
+ order.addLineItem(lineItem);
+ } catch (Exception e) {
+ logger.log(Level.WARNING, "Couldn''t add {0} to order ID {1}.", new Object[]{partNumber, orderId});
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public double getBillOfMaterialPrice(String bomPartNumber, int bomRevision, String partNumber, int revision) {
+ double price = 0.0;
+ try {
+ PartKey bomkey = new PartKey();
+ bomkey.setPartNumber(bomPartNumber);
+ bomkey.setRevision(bomRevision);
+
+ Part bom = em.find(Part.class, bomkey);
+ Collection parts = bom.getParts();
+ for (Part part : parts) {
+ VendorPart vendorPart = part.getVendorPart();
+ price += vendorPart.getPrice();
+ }
+
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ return price;
+ }
+
+ public double getOrderPrice(Integer orderId) {
+ double price = 0.0;
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ price = order.calculateAmmount();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ return price;
+ }
+
+ public void adjustOrderDiscount(int adjustment) {
+ try {
+ List orders = em.createNamedQuery(
+ "findAllOrders")
+ .getResultList();
+ for (Iterator it = orders.iterator(); it.hasNext();) {
+ CustomerOrder order = (CustomerOrder)it.next();
+ int newDiscount = order.getDiscount() + adjustment;
+ order.setDiscount((newDiscount > 0)? newDiscount : 0);
+ }
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public Double getAvgPrice() {
+ try {
+ return (Double) em.createNamedQuery(
+ "findAverageVendorPartPrice")
+ .getSingleResult();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public Double getTotalPricePerVendor(int vendorId) {
+ try {
+ return (Double) em.createNamedQuery(
+ "findTotalVendorPartPricePerVendor")
+ .setParameter("id", vendorId)
+ .getSingleResult();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public List locateVendorsByPartialName(String name) {
+
+ List names = new ArrayList<>();
+ try {
+ List vendors = em.createNamedQuery(
+ "findVendorsByPartialName")
+ .setParameter("name", name)
+ .getResultList();
+ for (Iterator iterator = vendors.iterator(); iterator.hasNext();) {
+ Vendor vendor = (Vendor)iterator.next();
+ names.add(vendor.getName());
+ }
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ return names;
+ }
+
+ public int countAllItems() {
+ int count = 0;
+ try {
+ count = em.createNamedQuery(
+ "findAllLineItems")
+ .getResultList()
+ .size();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ return count;
+ }
+
+ public List getLineItems(int orderId) {
+ try {
+ return em.createNamedQuery("findLineItemsByOrderId")
+ .setParameter("orderId", orderId)
+ .getResultList();
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public void removeOrder(Integer orderId) {
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ em.remove(order);
+ } catch (Exception e) {
+ throw new EJBException(e.getMessage());
+ }
+ }
+
+ public String reportVendorsByOrder(Integer orderId) {
+ StringBuilder report = new StringBuilder();
+ try {
+ List vendors = em.createNamedQuery(
+ "findVendorByOrder")
+ .setParameter("id", orderId)
+ .getResultList();
+ for (Iterator iterator = vendors.iterator(); iterator.hasNext();) {
+ Vendor vendor = (Vendor)iterator.next();
+ report.append(vendor.getVendorId()).append(' ')
+ .append(vendor.getName()).append(' ')
+ .append(vendor.getContact()).append('\n');
+ }
+
+ } catch (Exception e) {
+ throw new EJBException(e);
+ }
+ return report.toString();
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/CustomerOrder.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/CustomerOrder.java
new file mode 100644
index 0000000000000000000000000000000000000000..46bcf6ab1be4ef8a348f350657b510d0a46f185c
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/CustomerOrder.java
@@ -0,0 +1,128 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Date;
+
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+import jakarta.persistence.Transient;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_CUSTOMERORDER")
+@NamedQuery(
+ name="findAllOrders",
+ query="SELECT co FROM CustomerOrder co " +
+ "ORDER BY co.orderId"
+)
+public class CustomerOrder implements java.io.Serializable {
+ private static final long serialVersionUID = 6582105865012174694L;
+ private Integer orderId;
+ private char status;
+ private Date lastUpdate;
+ private int discount;
+ private String shipmentInfo;
+ private Collection lineItems;
+
+ public CustomerOrder() {
+ this.lastUpdate = new Date();
+ this.lineItems = new ArrayList<>();
+ }
+
+ public CustomerOrder(Integer orderId, char status, int discount,
+ String shipmentInfo) {
+ this.orderId = orderId;
+ this.status = status;
+ this.discount = discount;
+ this.shipmentInfo = shipmentInfo;
+ this.lastUpdate = new Date();
+ this.lineItems = new ArrayList<>();
+ }
+
+ @Id
+ public Integer getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(Integer orderId) {
+ this.orderId = orderId;
+ }
+
+ public char getStatus() {
+ return status;
+ }
+
+ public void setStatus(char status) {
+ this.status = status;
+ }
+
+ @Temporal(TemporalType.TIMESTAMP)
+ public Date getLastUpdate() {
+ return lastUpdate;
+ }
+
+ public void setLastUpdate(Date lastUpdate) {
+ this.lastUpdate = lastUpdate;
+ }
+
+ public int getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(int discount) {
+ this.discount = discount;
+ }
+
+ public String getShipmentInfo() {
+ return shipmentInfo;
+ }
+
+ public void setShipmentInfo(String shipmentInfo) {
+ this.shipmentInfo = shipmentInfo;
+ }
+
+ @OneToMany(cascade=CascadeType.ALL, mappedBy="customerOrder")
+ public Collection getLineItems() {
+ return lineItems;
+ }
+
+ public void setLineItems(Collection lineItems) {
+ this.lineItems = lineItems;
+ }
+
+ public double calculateAmmount() {
+ double ammount = 0;
+ Collection items = getLineItems();
+ for (LineItem item : items) {
+ VendorPart part = item.getVendorPart();
+ ammount += part.getPrice() * item.getQuantity();
+ }
+ return (ammount * (100 - getDiscount()))/100;
+ }
+
+ public void addLineItem(LineItem lineItem) {
+ this.getLineItems().add(lineItem);
+ }
+
+ @Transient
+ public int getNextId() {
+ return this.lineItems.size() + 1;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItem.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItem.java
new file mode 100644
index 0000000000000000000000000000000000000000..35af87d46793ad41819af3001acdc2274094c0fa
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItem.java
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.io.Serializable;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.IdClass;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.Table;
+
+@IdClass(LineItemKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_LINEITEM")
+@NamedQueries({
+ @NamedQuery(
+ name="findAllLineItems",
+ query="SELECT l " +
+ "FROM LineItem l"),
+ @NamedQuery(
+ name="findLineItemsByOrderId",
+ query="SELECT l FROM LineItem l " +
+ "WHERE l.customerOrder.orderId = :orderId " +
+ "ORDER BY l.itemId"),
+ @NamedQuery(
+ name="findLineItemById",
+ query="SELECT DISTINCT l FROM LineItem l " +
+ "WHERE l.itemId = :itemId AND l.customerOrder.orderId = :orderId")
+})
+public class LineItem implements Serializable {
+ private static final long serialVersionUID = 3229188813505619743L;
+ private int itemId;
+ private int quantity;
+ private VendorPart vendorPart;
+ private CustomerOrder customerOrder;
+
+ public LineItem() {}
+
+ public LineItem(CustomerOrder order, int quantity, VendorPart vendorPart) {
+ this.customerOrder = order;
+ this.itemId = order.getNextId();
+ this.quantity = quantity;
+ this.vendorPart = vendorPart;
+ }
+
+ @Id
+ public int getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(int itemId) {
+ this.itemId = itemId;
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+
+ @JoinColumn(name="VENDORPARTNUMBER")
+ @ManyToOne
+ public VendorPart getVendorPart() {
+ return vendorPart;
+ }
+
+ public void setVendorPart(VendorPart vendorPart) {
+ this.vendorPart = vendorPart;
+ }
+
+ @Id
+ @ManyToOne
+ @JoinColumn(name="ORDERID")
+ public CustomerOrder getCustomerOrder() {
+ return customerOrder;
+ }
+
+ public void setCustomerOrder(CustomerOrder customerOrder) {
+ this.customerOrder = customerOrder;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItemKey.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItemKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..8f060cfbc6ff3087e2f01a22372fc2e8ee01a049
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/LineItemKey.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.io.Serializable;
+
+public final class LineItemKey implements Serializable {
+
+ private static final long serialVersionUID = 1562260205094677677L;
+ private Integer customerOrder;
+ private int itemId;
+
+ public LineItemKey() {
+ }
+
+ public LineItemKey(Integer order, int itemId) {
+ this.setCustomerOrder(order);
+ this.setItemId(itemId);
+ }
+
+ @Override
+ public int hashCode() {
+ return ((this.getCustomerOrder() == null
+ ? 0 : this.getCustomerOrder().hashCode())
+ ^ ((int) this.getItemId()));
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof LineItemKey)) {
+ return false;
+ }
+ LineItemKey other = (LineItemKey) otherOb;
+ return ((this.getCustomerOrder() == null
+ ? other.getCustomerOrder() == null : this.getCustomerOrder()
+ .equals(other.getCustomerOrder()))
+ && (this.getItemId() == other.getItemId()));
+ }
+
+ @Override
+ public String toString() {
+ return "" + getCustomerOrder() + "-" + getItemId();
+ }
+
+ public Integer getCustomerOrder() {
+ return customerOrder;
+ }
+
+ public void setCustomerOrder(Integer order) {
+ this.customerOrder = order;
+ }
+
+ public int getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(int itemId) {
+ this.itemId = itemId;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Part.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Part.java
new file mode 100644
index 0000000000000000000000000000000000000000..968e809b48b38f344da39e828ed83675d0558cbc
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Part.java
@@ -0,0 +1,164 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.IdClass;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.JoinColumns;
+import jakarta.persistence.Lob;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.PrimaryKeyJoinColumn;
+import jakarta.persistence.SecondaryTable;
+import jakarta.persistence.Table;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+
+@IdClass(PartKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_PART")
+@SecondaryTable(name="PERSISTENCE_ORDER_PART_DETAIL", pkJoinColumns={
+ @PrimaryKeyJoinColumn(name="PARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @PrimaryKeyJoinColumn(name="REVISION", referencedColumnName="REVISION")
+})
+@NamedQuery(
+ name="findAllParts",
+ query="SELECT p FROM Part p " +
+ "ORDER BY p.partNumber"
+)
+public class Part implements Serializable {
+ private static final long serialVersionUID = -3082087016342644227L;
+ private String partNumber;
+ private int revision;
+ private String description;
+ private Date revisionDate;
+ private Serializable drawing;
+ private String specification;
+ private Part bomPart;
+ private List parts;
+ private VendorPart vendorPart;
+
+ public Part() {}
+
+ public Part(String partNumber,
+ int revision,
+ String description,
+ Date revisionDate,
+ String specification,
+ Serializable drawing) {
+ this.partNumber = partNumber;
+ this.revision = revision;
+ this.description = description;
+ this.revisionDate = revisionDate;
+ this.specification = specification;
+ this.drawing = drawing;
+ this.parts = new ArrayList<>();
+ }
+
+ @Id
+ @Column(nullable=false)
+ public String getPartNumber() {
+ return partNumber;
+ }
+
+ public void setPartNumber(String partNumber) {
+ this.partNumber = partNumber;
+ }
+
+ @Id
+ @Column(nullable=false)
+ public int getRevision() {
+ return revision;
+ }
+
+ public void setRevision(int revision) {
+ this.revision = revision;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Temporal(TemporalType.DATE)
+ public Date getRevisionDate() {
+ return revisionDate;
+ }
+
+ public void setRevisionDate(Date revisionDate) {
+ this.revisionDate = revisionDate;
+ }
+
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ @Lob
+ public Serializable getDrawing() {
+ return drawing;
+ }
+
+ public void setDrawing(Serializable drawing) {
+ this.drawing = drawing;
+ }
+
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ @Lob
+ public String getSpecification() {
+ return specification;
+ }
+
+ public void setSpecification(String specification) {
+ this.specification = specification;
+ }
+
+ @ManyToOne
+ @JoinColumns({
+ @JoinColumn(name="BOMPARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @JoinColumn(name="BOMREVISION", referencedColumnName="REVISION")
+ })
+ public Part getBomPart() {
+ return bomPart;
+ }
+
+ public void setBomPart(Part bomPart) {
+ this.bomPart = bomPart;
+ }
+
+ @OneToMany(mappedBy="bomPart")
+ public List getParts() {
+ return parts;
+ }
+
+ public void setParts(List parts) {
+ this.parts = parts;
+ }
+
+ @OneToOne(mappedBy="part")
+ public VendorPart getVendorPart() {
+ return vendorPart;
+ }
+
+ public void setVendorPart(VendorPart vendorPart) {
+ this.vendorPart = vendorPart;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/PartKey.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/PartKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..1acf1ed44f4f92a620758b955b737d1609023415
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/PartKey.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.io.Serializable;
+
+/**
+ *
+ * @author ian
+ */
+public class PartKey implements Serializable {
+ private static final long serialVersionUID = -3162267592969127613L;
+ private String partNumber;
+ private int revision;
+
+ @Override
+ public int hashCode() {
+ return (
+ (this.getPartNumber()==null?0:this.getPartNumber().hashCode())
+ ^
+ ((int) this.getRevision())
+ );
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof PartKey)) {
+ return false;
+ }
+ PartKey other = (PartKey) otherOb;
+ return (
+ (this.getPartNumber()==null?other.getPartNumber()==null:this.getPartNumber().equals(other.getPartNumber()))
+ &&
+ (getRevision() == other.getRevision())
+ );
+ }
+
+ @Override
+ public String toString() {
+ return getPartNumber() + " rev" + this.getRevision();
+ }
+
+ public String getPartNumber() {
+ return partNumber;
+ }
+
+ public void setPartNumber(String partNumber) {
+ this.partNumber = partNumber;
+ }
+
+ public int getRevision() {
+ return revision;
+ }
+
+ public void setRevision(int revision) {
+ this.revision = revision;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Vendor.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Vendor.java
new file mode 100644
index 0000000000000000000000000000000000000000..eec404a0b6c04cd06d9e7107fb8c04d6c8e85283
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/Vendor.java
@@ -0,0 +1,119 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import java.util.Collection;
+
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_VENDOR")
+@NamedQueries({
+ @NamedQuery(
+ name="findVendorsByPartialName",
+ query="SELECT v " +
+ "FROM Vendor v " +
+ "WHERE LOCATE(:name, v.name) > 0"
+ ),
+ @NamedQuery(
+ name="findVendorByCustomerOrder",
+ query="SELECT DISTINCT l.vendorPart.vendor " +
+ "FROM CustomerOrder co, IN(co.lineItems) l " +
+ "WHERE co.orderId = :id " +
+ "ORDER BY l.vendorPart.vendor.name"
+ )
+})
+public class Vendor implements java.io.Serializable {
+ private static final long serialVersionUID = 2538635007598426330L;
+ private int vendorId;
+ private String name;
+ private String address;
+ private String contact;
+ private String phone;
+ private Collection vendorParts;
+
+ public Vendor() {}
+
+ public Vendor(int vendorId,
+ String name,
+ String address,
+ String contact,
+ String phone) {
+ this.vendorId = vendorId;
+ this.name = name;
+ this.address = address;
+ this.contact = contact;
+ this.phone = phone;
+ }
+
+ @Id
+ public int getVendorId() {
+ return vendorId;
+ }
+
+ public void setVendorId(int vendorId) {
+ this.vendorId = vendorId;
+ }
+
+ @Column(name="VENDORNAME")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getContact() {
+ return contact;
+ }
+
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ @OneToMany(cascade=CascadeType.ALL, mappedBy="vendor")
+ public Collection getVendorParts() {
+ return vendorParts;
+ }
+
+ public void setVendorParts(Collection vendorParts) {
+ this.vendorParts = vendorParts;
+ }
+
+ public void addVendorPart(VendorPart vendorPart) {
+ this.getVendorParts().add(vendorPart);
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/VendorPart.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/VendorPart.java
new file mode 100644
index 0000000000000000000000000000000000000000..a33fbbaa89d822ce6817bf27cb190c944f95d5e5
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/entity/VendorPart.java
@@ -0,0 +1,123 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.entity;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.JoinColumns;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
+import jakarta.persistence.TableGenerator;
+import jakarta.persistence.UniqueConstraint;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_VENDOR_PART",
+ uniqueConstraints=
+ @UniqueConstraint(columnNames={"PARTNUMBER", "PARTREVISION"})
+)
+@NamedQueries({
+ @NamedQuery(
+ name="findAverageVendorPartPrice",
+ query="SELECT AVG(vp.price) " +
+ "FROM VendorPart vp"
+ ),
+ @NamedQuery(
+ name="findTotalVendorPartPricePerVendor",
+ query="SELECT SUM(vp.price) " +
+ "FROM VendorPart vp " +
+ "WHERE vp.vendor.vendorId = :id"
+ ),
+ @NamedQuery(
+ name="findAllVendorParts",
+ query="SELECT vp FROM VendorPart vp ORDER BY vp.vendorPartNumber"
+ )
+})
+public class VendorPart implements java.io.Serializable {
+ private static final long serialVersionUID = 4685631589912848921L;
+ private Long vendorPartNumber;
+ private String description;
+ private double price;
+ private Part part;
+ private Vendor vendor;
+
+ public VendorPart() {}
+
+ public VendorPart(String description, double price, Part part) {
+ this.description = description;
+ this.price = price;
+ this.part = part;
+ part.setVendorPart(this);
+ }
+
+ @TableGenerator(
+ name="vendorPartGen",
+ table="PERSISTENCE_ORDER_SEQUENCE_GENERATOR",
+ pkColumnName="GEN_KEY",
+ valueColumnName="GEN_VALUE",
+ pkColumnValue="VENDOR_PART_ID",
+ allocationSize=10)
+ @Id
+ @GeneratedValue(strategy=GenerationType.TABLE, generator="vendorPartGen")
+ public Long getVendorPartNumber() {
+ return vendorPartNumber;
+ }
+
+ public void setVendorPartNumber(Long vendorPartNumber) {
+ this.vendorPartNumber = vendorPartNumber;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+
+ @OneToOne
+ @JoinColumns({
+ @JoinColumn(name="PARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @JoinColumn(name="PARTREVISION", referencedColumnName="REVISION")
+ })
+ public Part getPart() {
+ return part;
+ }
+
+ public void setPart(Part part) {
+ this.part = part;
+ }
+
+ @JoinColumn(name="VENDORID")
+ @ManyToOne
+ public Vendor getVendor() {
+ return vendor;
+ }
+
+ public void setVendor(Vendor vendor) {
+ this.vendor = vendor;
+ }
+
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/web/OrderManager.java b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/web/OrderManager.java
new file mode 100644
index 0000000000000000000000000000000000000000..304df3f9882c903df2135479bb11fd675a756fb6
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/java/jakarta/tutorial/order/web/OrderManager.java
@@ -0,0 +1,348 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package jakarta.tutorial.order.web;
+
+import java.io.Serializable;
+import java.util.Iterator;
+import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+import jakarta.ejb.EJB;
+import jakarta.enterprise.context.SessionScoped;
+import jakarta.faces.component.UIParameter;
+import jakarta.faces.event.ActionEvent;
+import jakarta.inject.Named;
+import jakarta.tutorial.order.ejb.RequestBean;
+import jakarta.tutorial.order.entity.CustomerOrder;
+import jakarta.tutorial.order.entity.LineItem;
+import jakarta.tutorial.order.entity.Part;
+
+
+/**
+ *
+ * @author ian
+ */
+@SessionScoped
+@Named
+public class OrderManager implements Serializable{
+ private static final long serialVersionUID = 2142383151318489373L;
+ @EJB
+ private RequestBean request;
+ private static final Logger logger = Logger.getLogger("order.web.OrderManager");
+ private List orders;
+ private Integer currentOrder;
+ private Integer newOrderId;
+ private String newOrderShippingInfo;
+ private char newOrderStatus;
+ private int newOrderDiscount;
+ private List newOrderParts;
+ private List newOrderSelectedParts;
+ private String vendorName;
+ private List vendorSearchResults;
+ private String selectedPartNumber;
+ private int selectedPartRevision;
+ private Long selectedVendorPartNumber;
+ private Boolean findVendorTableDisabled = false;
+ private Boolean partsTableDisabled = true;
+
+ /**
+ * @return the orders
+ */
+ public List getOrders() {
+ try {
+ this.orders = request.getOrders();
+ } catch (Exception e) {
+ logger.warning("Couldn't get orders.");
+ }
+ return orders;
+ }
+
+ public List getLineItems() {
+ try {
+ return request.getLineItems(this.currentOrder);
+ } catch (Exception e) {
+ logger.warning("Couldn't get lineItems.");
+ return null;
+ }
+ }
+
+ public void removeOrder(ActionEvent event) {
+ try {
+ UIParameter param = (UIParameter) event.getComponent().findComponent("deleteOrderId");
+ Integer id = Integer.parseInt(param.getValue().toString());
+ request.removeOrder(id);
+ logger.log(Level.INFO, "Removed order {0}.", id);
+ } catch (NumberFormatException e) {
+ }
+ }
+
+ public void findVendor() {
+ try {
+ this.findVendorTableDisabled = true;
+ this.vendorSearchResults = (List) request.locateVendorsByPartialName(vendorName);
+ logger.log(Level.INFO, "Found {0} vendor(s) using the search string {1}.",
+ new Object[]{vendorSearchResults.size(), vendorName});
+ } catch (Exception e) {
+ logger.warning("Problem calling RequestBean.locateVendorsByPartialName from findVendor");
+ }
+ }
+
+ public void submitOrder() {
+ try {
+ request.createOrder(newOrderId, newOrderStatus, newOrderDiscount,
+ newOrderShippingInfo);
+
+ logger.log(Level.INFO, "Created new order with order ID {0}, status {1}, "
+ + "discount {2}, and shipping info {3}.",
+ new Object[]{newOrderId, newOrderStatus, newOrderDiscount, newOrderShippingInfo});
+ this.newOrderId = null;
+ this.newOrderDiscount = 0;
+ this.newOrderParts = null;
+ this.newOrderShippingInfo = null;
+ } catch (Exception e) {
+ logger.warning("Problem creating order in submitOrder.");
+ }
+ }
+
+ public void addLineItem() {
+ try {
+ List lineItems = request.getLineItems(currentOrder);
+ logger.log(Level.INFO, "There are {0} line items in {1}.",
+ new Object[]{lineItems.size(), currentOrder});
+ request.addLineItem(this.currentOrder,
+ this.selectedPartNumber,
+ this.selectedPartRevision,
+ 1);
+ logger.log(Level.INFO, "Adding line item to order # {0}",
+ this.currentOrder);
+ //this.clearSelected();
+ } catch (Exception e) {
+ logger.log(Level.WARNING, "Problem adding line items to order ID {0}",
+ newOrderId);
+ }
+ }
+
+ /**
+ * @param orders the orders to set
+ */
+ public void setOrders(List orders) {
+ this.orders = orders;
+ }
+
+ /**
+ * @return the currentOrder
+ */
+ public int getCurrentOrder() {
+ return currentOrder;
+ }
+
+ /**
+ * @param currentOrder the currentOrder to set
+ */
+ public void setCurrentOrder(int currentOrder) {
+ this.currentOrder = currentOrder;
+ }
+
+ /**
+ * @return the newOrderId
+ */
+ public Integer getNewOrderId() {
+ return newOrderId;
+ }
+
+ /**
+ * @param newOrderId the newOrderId to set
+ */
+ public void setNewOrderId(Integer newOrderId) {
+ this.newOrderId = newOrderId;
+ }
+
+ /**
+ * @return the newOrderShippingInfo
+ */
+ public String getNewOrderShippingInfo() {
+ return newOrderShippingInfo;
+ }
+
+ /**
+ * @param newOrderShippingInfo the newOrderShippingInfo to set
+ */
+ public void setNewOrderShippingInfo(String newOrderShippingInfo) {
+ this.newOrderShippingInfo = newOrderShippingInfo;
+ }
+
+ /**
+ * @return the newOrderStatus
+ */
+ public char getNewOrderStatus() {
+ return newOrderStatus;
+ }
+
+ /**
+ * @param newOrderStatus the newOrderStatus to set
+ */
+ public void setNewOrderStatus(char newOrderStatus) {
+ this.newOrderStatus = newOrderStatus;
+ }
+
+ /**
+ * @return the newOrderDiscount
+ */
+ public int getNewOrderDiscount() {
+ return newOrderDiscount;
+ }
+
+ /**
+ * @param newOrderDiscount the newOrderDiscount to set
+ */
+ public void setNewOrderDiscount(int newOrderDiscount) {
+ this.newOrderDiscount = newOrderDiscount;
+ }
+
+ /**
+ * @return the newOrderParts
+ */
+ public List getNewOrderParts() {
+ return request.getAllParts();
+ }
+
+ /**
+ * @param newOrderParts the newOrderParts to set
+ */
+ public void setNewOrderParts(List newOrderParts) {
+ this.newOrderParts = newOrderParts;
+ }
+
+ /**
+ * @return the vendorName
+ */
+ public String getVendorName() {
+ return vendorName;
+ }
+
+ /**
+ * @param vendorName the vendorName to set
+ */
+ public void setVendorName(String vendorName) {
+ this.vendorName = vendorName;
+ }
+
+ /**
+ * @return the vendorSearchResults
+ */
+ public List getVendorSearchResults() {
+ return vendorSearchResults;
+ }
+
+ /**
+ * @param vendorSearchResults the vendorSearchResults to set
+ */
+ public void setVendorSearchResults(List vendorSearchResults) {
+ this.vendorSearchResults = vendorSearchResults;
+ }
+
+ /**
+ * @return the newOrderSelectedParts
+ */
+ public List getNewOrderSelectedParts() {
+ return newOrderSelectedParts;
+ }
+
+ /**
+ * @param newOrderSelectedParts the newOrderSelectedParts to set
+ */
+ public void setNewOrderSelectedParts(List newOrderSelectedParts) {
+ Iterator i = newOrderSelectedParts.iterator();
+ while (i.hasNext()) {
+ Part part = i.next();
+ logger.log(Level.INFO, "Selected part {0}.", part.getPartNumber());
+ }
+ this.newOrderSelectedParts = newOrderSelectedParts;
+ }
+
+ /**
+ * @return the selectedPartNumber
+ */
+ public String getSelectedPartNumber() {
+ return selectedPartNumber;
+ }
+
+ /**
+ * @param selectedPartNumber the selectedPartNumber to set
+ */
+ public void setSelectedPartNumber(String selectedPartNumber) {
+ this.selectedPartNumber = selectedPartNumber;
+ }
+
+ /**
+ * @return the selectedPartRevision
+ */
+ public int getSelectedPartRevision() {
+ return selectedPartRevision;
+ }
+
+ /**
+ * @param selectedPartRevision the selectedPartRevision to set
+ */
+ public void setSelectedPartRevision(int selectedPartRevision) {
+ this.selectedPartRevision = selectedPartRevision;
+ }
+
+ /**
+ * @return the selectedVendorPartNumber
+ */
+ public Long getSelectedVendorPartNumber() {
+ return selectedVendorPartNumber;
+ }
+
+ /**
+ * @param selectedVendorPartNumber the selectedVendorPartNumber to set
+ */
+ public void setSelectedVendorPartNumber(Long selectedVendorPartNumber) {
+ this.selectedVendorPartNumber = selectedVendorPartNumber;
+ }
+
+ private void clearSelected() {
+ this.setSelectedPartNumber(null);
+ this.setSelectedPartRevision(0);
+ this.setSelectedVendorPartNumber(0L);
+ }
+
+ /**
+ * @return the findVendorTableDisabled
+ */
+ public Boolean getFindVendorTableDisabled() {
+ return findVendorTableDisabled;
+ }
+
+ /**
+ * @param findVendorTableDisabled the findVendorTableDisabled to set
+ */
+ public void setFindVendorTableDisabled(Boolean findVendorTableDisabled) {
+ this.findVendorTableDisabled = findVendorTableDisabled;
+ }
+
+ /**
+ * @return the partsTableDisabled
+ */
+ public Boolean getPartsTableDisabled() {
+ return partsTableDisabled;
+ }
+
+ /**
+ * @param partsTableDisabled the partsTableDisabled to set
+ */
+ public void setPartsTableDisabled(Boolean partsTableDisabled) {
+ this.partsTableDisabled = partsTableDisabled;
+ }
+}
diff --git a/benchmark/persistence/order/jakarta/src/main/liberty/config/server.xml b/benchmark/persistence/order/jakarta/src/main/liberty/config/server.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e13f5dcd15ef9d81712cbe9b2a4ab2a7b03a1580
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/liberty/config/server.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ jakartaee-10.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/resources/META-INF/persistence.xml b/benchmark/persistence/order/jakarta/src/main/resources/META-INF/persistence.xml
new file mode 100644
index 0000000000000000000000000000000000000000..a069ff6ef9788f076977d68c05607b75aa4c3544
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/resources/META-INF/persistence.xml
@@ -0,0 +1,25 @@
+
+
+
+
+ java:comp/DefaultDataSource
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/WEB-INF/web.xml b/benchmark/persistence/order/jakarta/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c90fea852436fd4f9db75e8c0c645a79dd42a14e
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,40 @@
+
+
+
+
+ jakarta.faces.PROJECT_STAGE
+ Development
+
+
+ Faces Servlet
+
+ jakarta.faces.webapp.FacesServlet
+
+ 1
+
+
+ Faces Servlet
+ *.xhtml
+
+
+ 30
+
+
+ order.xhtml
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/lineItem-template.xhtml b/benchmark/persistence/order/jakarta/src/main/webapp/lineItem-template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..c5a7fede5db55bb9b3ac240f4cef82d0f7ca7f4c
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/lineItem-template.xhtml
@@ -0,0 +1,30 @@
+
+
+
+
+
+ Order Persistence Example
+
+
+
+ Default Title
+
+ Default Body
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/lineItem.xhtml b/benchmark/persistence/order/jakarta/src/main/webapp/lineItem.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..9a6c34fbc634ad3ca32d79c95ecac716bf5faccb
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/lineItem.xhtml
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+ Line Items for Order #{orderManager.currentOrder}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/order-template.xhtml b/benchmark/persistence/order/jakarta/src/main/webapp/order-template.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..9c214ccdc3a670975a29cfede1deb22e676f2c03
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/order-template.xhtml
@@ -0,0 +1,41 @@
+
+
+
+
+
+ Order JPA Example
+
+
+
+ Default Title
+
+ Default Body
+
+ View All Orders
+ Default ordersTable
+
+ Create New Order
+ Default new orders form
+
+ Find Vendors
+ Default find vendors form
+
+ Default find vendor table
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/order.xhtml b/benchmark/persistence/order/jakarta/src/main/webapp/order.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..695b2e5ab61f07b94b0adabae70fdbac4f388e65
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/order.xhtml
@@ -0,0 +1,142 @@
+
+
+
+
+
+ Order Java Persistence Example
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/benchmark/persistence/order/jakarta/src/main/webapp/resources/css/default.css b/benchmark/persistence/order/jakarta/src/main/webapp/resources/css/default.css
new file mode 100644
index 0000000000000000000000000000000000000000..cf1f0b31d150939811f62238b663f7995cc7b727
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/src/main/webapp/resources/css/default.css
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ color: #000000;
+ margin: 10px;
+}
+
+h1 {
+ font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ border-bottom: 1px solid #AFAFAF;
+ font-size: 16px;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #D20005;
+}
+
+a:link, a:visited {
+ color: #045491;
+ font-weight : bold;
+ text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+ color: #045491;
+ font-weight : bold;
+ text-decoration : underline;
+}
+
+th {
+ font-weight: bold;
+ text-align: center;
+}
+
+td {
+ text-align: center;
+}
diff --git a/benchmark/persistence/order/jakarta/test.sh b/benchmark/persistence/order/jakarta/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..f8274d526904577f71e81b292188a03329c75c46
--- /dev/null
+++ b/benchmark/persistence/order/jakarta/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:9080/order-10-SNAPSHOT}"
+
+echo "Health check: ${BASE_URL}"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/order/quarkus/.dockerignore b/benchmark/persistence/order/quarkus/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/order/quarkus/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/order/quarkus/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8dea6c227c08000d2400d38a2ac886063f22bc36
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
diff --git a/benchmark/persistence/order/quarkus/Dockerfile b/benchmark/persistence/order/quarkus/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..69c4e7a98a9ffec83a261b35eaa4c2ee0eb78343
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/Dockerfile
@@ -0,0 +1,33 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl lsof python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest aiohttp
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+# Build the application at image build time
+RUN mvn clean install -DskipTests
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+RUN mvn clean install -DskipTests
+
+CMD ["mvn", "quarkus:run"]
diff --git a/benchmark/persistence/order/quarkus/README.md b/benchmark/persistence/order/quarkus/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..97a505b0dc2e0077ecae55737e9961a1d203a23e
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/README.md
@@ -0,0 +1,62 @@
+# order-quarkus
+
+This project uses Quarkus, the Supersonic Subatomic Java Framework.
+
+If you want to learn more about Quarkus, please visit its website: .
+
+## Running the application in dev mode
+
+You can run your application in dev mode that enables live coding using:
+
+```shell script
+./mvnw quarkus:dev
+```
+
+> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at .
+
+## Packaging and running the application
+
+The application can be packaged using:
+
+```shell script
+./mvnw package
+```
+
+It produces the `quarkus-run.jar` file in the `target/quarkus-app/` directory.
+Be aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib/` directory.
+
+The application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.
+
+If you want to build an _über-jar_, execute the following command:
+
+```shell script
+./mvnw package -Dquarkus.package.jar.type=uber-jar
+```
+
+The application, packaged as an _über-jar_, is now runnable using `java -jar target/*-runner.jar`.
+
+## Creating a native executable
+
+You can create a native executable using:
+
+```shell script
+./mvnw package -Dnative
+```
+
+Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
+
+```shell script
+./mvnw package -Dnative -Dquarkus.native.container-build=true
+```
+
+You can then execute your native executable with: `./target/order-quarkus-1.0.0-SNAPSHOT-runner`
+
+If you want to learn more about building native executables, please consult .
+
+## Provided Code
+
+### REST
+
+Easily start your REST Web Services
+
+[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
diff --git a/benchmark/persistence/order/quarkus/mvnw b/benchmark/persistence/order/quarkus/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/order/quarkus/mvnw.cmd b/benchmark/persistence/order/quarkus/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/order/quarkus/pom.xml b/benchmark/persistence/order/quarkus/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..77fc8e9d975edf4cf0e341220a9bcc5e23575708
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/pom.xml
@@ -0,0 +1,154 @@
+
+
+ 4.0.0
+ quarkus.tutorial
+ order-quarkus
+ 1.0.0-SNAPSHOT
+
+
+ 3.14.0
+ 17
+ UTF-8
+ UTF-8
+ quarkus-bom
+ io.quarkus.platform
+ 3.30.5
+ true
+ 3.5.3
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ ${quarkus.platform.artifact-id}
+ ${quarkus.platform.version}
+ pom
+ import
+
+
+
+
+
+
+ io.quarkus
+ quarkus-arc
+
+
+ io.quarkus
+ quarkus-rest
+
+
+ io.quarkus
+ quarkus-junit5
+ test
+
+
+ io.rest-assured
+ rest-assured
+ test
+
+
+ io.quarkus
+ quarkus-hibernate-orm
+
+
+ io.quarkus
+ quarkus-hibernate-orm-panache
+
+
+ io.quarkus
+ quarkus-jdbc-h2
+
+
+ io.quarkus
+ quarkus-hibernate-validator
+
+
+ io.quarkus
+ quarkus-qute
+
+
+ io.quarkus
+ quarkus-rest-qute
+
+
+ io.quarkus
+ quarkus-undertow
+
+
+
+
+
+
+
+
+ ${quarkus.platform.group-id}
+ quarkus-maven-plugin
+ ${quarkus.platform.version}
+ true
+
+
+
+ build
+ generate-code
+ generate-code-tests
+ native-image-agent
+
+
+
+
+
+ maven-compiler-plugin
+ ${compiler-plugin.version}
+
+ true
+
+
+
+ maven-surefire-plugin
+ ${surefire-plugin.version}
+
+
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+ maven-failsafe-plugin
+ ${surefire-plugin.version}
+
+
+
+ integration-test
+ verify
+
+
+
+
+
+ ${project.build.directory}/${project.build.finalName}-runner
+ org.jboss.logmanager.LogManager
+ ${maven.home}
+
+
+
+
+
+
+
+
+ native
+
+
+ native
+
+
+
+ false
+ true
+
+
+
+
diff --git a/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.jvm b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.jvm
new file mode 100644
index 0000000000000000000000000000000000000000..e167834d9d8609321b5916a2f087fb78ec0eca52
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.jvm
@@ -0,0 +1,98 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/order-quarkus-jvm .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus-jvm
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus-jvm
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+# We make four distinct layers so if there are application changes the library layers can be re-used
+COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
+COPY --chown=185 target/quarkus-app/*.jar /deployments/
+COPY --chown=185 target/quarkus-app/app/ /deployments/app/
+COPY --chown=185 target/quarkus-app/quarkus/ /deployments/quarkus/
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
+
diff --git a/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.legacy-jar b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.legacy-jar
new file mode 100644
index 0000000000000000000000000000000000000000..41fe617ede89c1287747127a344a71d5ef7f6a3e
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.legacy-jar
@@ -0,0 +1,94 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dquarkus.package.jar.type=legacy-jar
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.legacy-jar -t quarkus/order-quarkus-legacy-jar .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus-legacy-jar
+#
+# If you want to include the debug port into your docker image
+# you will have to expose the debug port (default 5005 being the default) like this : EXPOSE 8080 5005.
+# Additionally you will have to set -e JAVA_DEBUG=true and -e JAVA_DEBUG_PORT=*:5005
+# when running the container
+#
+# Then run the container using :
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus-legacy-jar
+#
+# This image uses the `run-java.sh` script to run the application.
+# This scripts computes the command line to execute your Java application, and
+# includes memory/GC tuning.
+# You can configure the behavior using the following environment properties:
+# - JAVA_OPTS: JVM options passed to the `java` command (example: "-verbose:class") - Be aware that this will override
+# the default JVM options, use `JAVA_OPTS_APPEND` to append options
+# - JAVA_OPTS_APPEND: User specified Java options to be appended to generated options
+# in JAVA_OPTS (example: "-Dsome.property=foo")
+# - JAVA_MAX_MEM_RATIO: Is used when no `-Xmx` option is given in JAVA_OPTS. This is
+# used to calculate a default maximal heap memory based on a containers restriction.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xmx` is set to a ratio
+# of the container available memory as set here. The default is `50` which means 50%
+# of the available memory is used as an upper boundary. You can skip this mechanism by
+# setting this value to `0` in which case no `-Xmx` option is added.
+# - JAVA_INITIAL_MEM_RATIO: Is used when no `-Xms` option is given in JAVA_OPTS. This
+# is used to calculate a default initial heap memory based on the maximum heap memory.
+# If used in a container without any memory constraints for the container then this
+# option has no effect. If there is a memory constraint then `-Xms` is set to a ratio
+# of the `-Xmx` memory as set here. The default is `25` which means 25% of the `-Xmx`
+# is used as the initial heap size. You can skip this mechanism by setting this value
+# to `0` in which case no `-Xms` option is added (example: "25")
+# - JAVA_MAX_INITIAL_MEM: Is used when no `-Xms` option is given in JAVA_OPTS.
+# This is used to calculate the maximum value of the initial heap memory. If used in
+# a container without any memory constraints for the container then this option has
+# no effect. If there is a memory constraint then `-Xms` is limited to the value set
+# here. The default is 4096MB which means the calculated value of `-Xms` never will
+# be greater than 4096MB. The value of this variable is expressed in MB (example: "4096")
+# - JAVA_DIAGNOSTICS: Set this to get some diagnostics information to standard output
+# when things are happening. This option, if set to true, will set
+# `-XX:+UnlockDiagnosticVMOptions`. Disabled by default (example: "true").
+# - JAVA_DEBUG: If set remote debugging will be switched on. Disabled by default (example:
+# true").
+# - JAVA_DEBUG_PORT: Port used for remote debugging. Defaults to 5005 (example: "8787").
+# - CONTAINER_CORE_LIMIT: A calculated core limit as described in
+# https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt. (example: "2")
+# - CONTAINER_MAX_MEMORY: Memory limit given to the container (example: "1024").
+# - GC_MIN_HEAP_FREE_RATIO: Minimum percentage of heap free after GC to avoid expansion.
+# (example: "20")
+# - GC_MAX_HEAP_FREE_RATIO: Maximum percentage of heap free after GC to avoid shrinking.
+# (example: "40")
+# - GC_TIME_RATIO: Specifies the ratio of the time spent outside the garbage collection.
+# (example: "4")
+# - GC_ADAPTIVE_SIZE_POLICY_WEIGHT: The weighting given to the current GC time versus
+# previous GC times. (example: "90")
+# - GC_METASPACE_SIZE: The initial metaspace size. (example: "20")
+# - GC_MAX_METASPACE_SIZE: The maximum metaspace size. (example: "100")
+# - GC_CONTAINER_OPTIONS: Specify Java GC to use. The value of this variable should
+# contain the necessary JRE command-line options to specify the required GC, which
+# will override the default of `-XX:+UseParallelGC` (example: -XX:+UseG1GC).
+# - HTTPS_PROXY: The location of the https proxy. (example: "myuser@127.0.0.1:8080")
+# - HTTP_PROXY: The location of the http proxy. (example: "myuser@127.0.0.1:8080")
+# - NO_PROXY: A comma separated lists of hosts, IP addresses or domains that can be
+# accessed directly. (example: "foo.example.com,bar.example.com")
+#
+###
+FROM registry.access.redhat.com/ubi9/openjdk-21:1.23
+
+ENV LANGUAGE='en_US:en'
+
+
+COPY target/lib/* /deployments/lib/
+COPY target/*-runner.jar /deployments/quarkus-run.jar
+
+EXPOSE 8080
+USER 185
+ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
+ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
+
+ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]
diff --git a/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native
new file mode 100644
index 0000000000000000000000000000000000000000..7d37838570dc81ebdd94279b057aa28cb09a66f2
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native
@@ -0,0 +1,29 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native -t quarkus/order-quarkus .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus
+#
+# The ` registry.access.redhat.com/ubi9/ubi-minimal:9.6` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/ubi8/ubi-minimal:8.10`.
+###
+FROM registry.access.redhat.com/ubi9/ubi-minimal:9.6
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native-micro b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native-micro
new file mode 100644
index 0000000000000000000000000000000000000000..839706b7aa91c298054c9e6907656347ee7ffa70
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/docker/Dockerfile.native-micro
@@ -0,0 +1,32 @@
+####
+# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
+# It uses a micro base image, tuned for Quarkus native executables.
+# It reduces the size of the resulting container image.
+# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
+#
+# Before building the container image run:
+#
+# ./mvnw package -Dnative
+#
+# Then, build the image with:
+#
+# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/order-quarkus .
+#
+# Then run the container using:
+#
+# docker run -i --rm -p 8080:8080 quarkus/order-quarkus
+#
+# The `quay.io/quarkus/ubi9-quarkus-micro-image:2.0` base image is based on UBI 9.
+# To use UBI 8, switch to `quay.io/quarkus/quarkus-micro-image:2.0`.
+###
+FROM quay.io/quarkus/ubi9-quarkus-micro-image:2.0
+WORKDIR /work/
+RUN chown 1001 /work \
+ && chmod "g+rwX" /work \
+ && chown 1001:root /work
+COPY --chown=1001:root --chmod=0755 target/*-runner /work/application
+
+EXPOSE 8080
+USER 1001
+
+ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/CustomerOrder.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/CustomerOrder.java
new file mode 100644
index 0000000000000000000000000000000000000000..7bed383fcf65a66543a06c49e4ec5d1c19b64261
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/CustomerOrder.java
@@ -0,0 +1,130 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Date;
+
+
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
+import jakarta.persistence.Temporal;
+import jakarta.persistence.TemporalType;
+import jakarta.persistence.Transient;
+
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_CUSTOMERORDER")
+@NamedQuery(
+ name="findAllOrders",
+ query="SELECT co FROM CustomerOrder co " +
+ "ORDER BY co.orderId"
+)
+public class CustomerOrder implements java.io.Serializable {
+ private static final long serialVersionUID = 6582105865012174694L;
+ private Integer orderId;
+ private char status;
+ private Date lastUpdate;
+ private int discount;
+ private String shipmentInfo;
+ private Collection lineItems = new ArrayList<>();
+
+ public CustomerOrder() {
+ this.lastUpdate = new Date();
+ this.lineItems = new ArrayList<>();
+ }
+
+ public CustomerOrder(Integer orderId, char status, int discount,
+ String shipmentInfo) {
+ this.orderId = orderId;
+ this.status = status;
+ this.discount = discount;
+ this.shipmentInfo = shipmentInfo;
+ this.lastUpdate = new Date();
+ this.lineItems = new ArrayList<>();
+ }
+
+ @Id
+ public Integer getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(Integer orderId) {
+ this.orderId = orderId;
+ }
+
+ public char getStatus() {
+ return status;
+ }
+
+ public void setStatus(char status) {
+ this.status = status;
+ }
+
+ @Temporal(TemporalType.TIMESTAMP)
+ public Date getLastUpdate() {
+ return lastUpdate;
+ }
+
+ public void setLastUpdate(Date lastUpdate) {
+ this.lastUpdate = lastUpdate;
+ }
+
+ public int getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(int discount) {
+ this.discount = discount;
+ }
+
+ public String getShipmentInfo() {
+ return shipmentInfo;
+ }
+
+ public void setShipmentInfo(String shipmentInfo) {
+ this.shipmentInfo = shipmentInfo;
+ }
+
+ @OneToMany(cascade=CascadeType.ALL, mappedBy="customerOrder")
+ public Collection getLineItems() {
+ return lineItems;
+ }
+
+ public void setLineItems(Collection lineItems) {
+ this.lineItems = lineItems;
+ }
+
+ public double calculateAmmount() {
+ double ammount = 0;
+ Collection items = getLineItems();
+ for (LineItem item : items) {
+ VendorPart part = item.getVendorPart();
+ ammount += part.getPrice() * item.getQuantity();
+ }
+ return (ammount * (100 - getDiscount()))/100;
+ }
+
+ public void addLineItem(LineItem lineItem) {
+ this.getLineItems().add(lineItem);
+ }
+
+ @Transient
+ public int getNextId() {
+ return this.lineItems.size() + 1;
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItem.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItem.java
new file mode 100644
index 0000000000000000000000000000000000000000..22c41fb09541fcf8177b65b5e7a4114f72d43b66
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItem.java
@@ -0,0 +1,96 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.io.Serializable;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.IdClass;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.Table;
+
+@IdClass(LineItemKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_LINEITEM")
+@NamedQueries({
+ @NamedQuery(
+ name="findAllLineItems",
+ query="SELECT l " +
+ "FROM LineItem l"),
+ @NamedQuery(
+ name="findLineItemsByOrderId",
+ query="SELECT l FROM LineItem l " +
+ "WHERE l.customerOrder.orderId = :orderId " +
+ "ORDER BY l.itemId"),
+ @NamedQuery(
+ name="findLineItemById",
+ query="SELECT DISTINCT l FROM LineItem l " +
+ "WHERE l.itemId = :itemId AND l.customerOrder.orderId = :orderId")
+})
+public class LineItem implements Serializable {
+ private static final long serialVersionUID = 3229188813505619743L;
+ private int itemId;
+ private int quantity;
+ private VendorPart vendorPart;
+ private CustomerOrder customerOrder;
+
+ public LineItem() {}
+
+ public LineItem(CustomerOrder order, int quantity, VendorPart vendorPart) {
+ this.customerOrder = order;
+ this.itemId = order.getNextId();
+ this.quantity = quantity;
+ this.vendorPart = vendorPart;
+ }
+
+ @Id
+ public int getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(int itemId) {
+ this.itemId = itemId;
+ }
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+
+ @JoinColumn(name="VENDORPARTNUMBER")
+ @ManyToOne
+ public VendorPart getVendorPart() {
+ return vendorPart;
+ }
+
+ public void setVendorPart(VendorPart vendorPart) {
+ this.vendorPart = vendorPart;
+ }
+
+ @Id
+ @ManyToOne
+ @JoinColumn(name="ORDERID")
+ public CustomerOrder getCustomerOrder() {
+ return customerOrder;
+ }
+
+ public void setCustomerOrder(CustomerOrder customerOrder) {
+ this.customerOrder = customerOrder;
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItemKey.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItemKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..5182d7c1349f799dcc1d578f7ddc7d4c7a33aced
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/LineItemKey.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.io.Serializable;
+
+public final class LineItemKey implements Serializable {
+
+ private static final long serialVersionUID = 1562260205094677677L;
+ private Integer customerOrder;
+ private int itemId;
+
+ public LineItemKey() {
+ }
+
+ public LineItemKey(Integer order, int itemId) {
+ this.setCustomerOrder(order);
+ this.setItemId(itemId);
+ }
+
+ @Override
+ public int hashCode() {
+ return ((this.getCustomerOrder() == null
+ ? 0 : this.getCustomerOrder().hashCode())
+ ^ ((int) this.getItemId()));
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof LineItemKey)) {
+ return false;
+ }
+ LineItemKey other = (LineItemKey) otherOb;
+ return ((this.getCustomerOrder() == null
+ ? other.getCustomerOrder() == null : this.getCustomerOrder()
+ .equals(other.getCustomerOrder()))
+ && (this.getItemId() == other.getItemId()));
+ }
+
+ @Override
+ public String toString() {
+ return "" + getCustomerOrder() + "-" + getItemId();
+ }
+
+ public Integer getCustomerOrder() {
+ return customerOrder;
+ }
+
+ public void setCustomerOrder(Integer order) {
+ this.customerOrder = order;
+ }
+
+ public int getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(int itemId) {
+ this.itemId = itemId;
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Part.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Part.java
new file mode 100644
index 0000000000000000000000000000000000000000..42baa9e41576170f71fbe81a478579c1e6d98080
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Part.java
@@ -0,0 +1,161 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.IdClass;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.JoinColumns;
+import jakarta.persistence.Lob;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.PrimaryKeyJoinColumn;
+import jakarta.persistence.SecondaryTable;
+import jakarta.persistence.Table;
+
+@IdClass(PartKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_PART")
+@SecondaryTable(name="PERSISTENCE_ORDER_PART_DETAIL", pkJoinColumns={
+ @PrimaryKeyJoinColumn(name="PARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @PrimaryKeyJoinColumn(name="REVISION", referencedColumnName="REVISION")
+})
+@NamedQuery(
+ name="findAllParts",
+ query="SELECT p FROM Part p " +
+ "ORDER BY p.partNumber"
+)
+public class Part implements Serializable {
+ private static final long serialVersionUID = -3082087016342644227L;
+ private String partNumber;
+ private int revision;
+ private String description;
+ private Date revisionDate;
+ private Serializable drawing;
+ private String specification;
+ private Part bomPart;
+ private List parts;
+ private VendorPart vendorPart;
+
+ public Part() {}
+
+ public Part(String partNumber,
+ int revision,
+ String description,
+ Date revisionDate,
+ String specification,
+ Serializable drawing) {
+ this.partNumber = partNumber;
+ this.revision = revision;
+ this.description = description;
+ this.revisionDate = revisionDate;
+ this.specification = specification;
+ this.drawing = drawing;
+ this.parts = new ArrayList<>();
+ }
+
+ @Id
+ @Column(nullable=false)
+ public String getPartNumber() {
+ return partNumber;
+ }
+
+ public void setPartNumber(String partNumber) {
+ this.partNumber = partNumber;
+ }
+
+ @Id
+ @Column(nullable=false)
+ public int getRevision() {
+ return revision;
+ }
+
+ public void setRevision(int revision) {
+ this.revision = revision;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date getRevisionDate() {
+ return revisionDate;
+ }
+
+ public void setRevisionDate(Date revisionDate) {
+ this.revisionDate = revisionDate;
+ }
+
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ @Lob
+ public Serializable getDrawing() {
+ return drawing;
+ }
+
+ public void setDrawing(Serializable drawing) {
+ this.drawing = drawing;
+ }
+
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ @Lob
+ public String getSpecification() {
+ return specification;
+ }
+
+ public void setSpecification(String specification) {
+ this.specification = specification;
+ }
+
+ @ManyToOne
+ @JoinColumns({
+ @JoinColumn(name="BOMPARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @JoinColumn(name="BOMREVISION", referencedColumnName="REVISION")
+ })
+ public Part getBomPart() {
+ return bomPart;
+ }
+
+ public void setBomPart(Part bomPart) {
+ this.bomPart = bomPart;
+ }
+
+ @OneToMany(mappedBy="bomPart")
+ public List getParts() {
+ return parts;
+ }
+
+ public void setParts(List parts) {
+ this.parts = parts;
+ }
+
+ @OneToOne(mappedBy="part")
+ public VendorPart getVendorPart() {
+ return vendorPart;
+ }
+
+ public void setVendorPart(VendorPart vendorPart) {
+ this.vendorPart = vendorPart;
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/PartKey.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/PartKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..24094fb60b1e32566609cf51fbccd724c5aa90a9
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/PartKey.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.io.Serializable;
+
+/**
+ *
+ * @author ian
+ */
+public class PartKey implements Serializable {
+ private static final long serialVersionUID = -3162267592969127613L;
+ private String partNumber;
+ private int revision;
+
+ @Override
+ public int hashCode() {
+ return (
+ (this.getPartNumber()==null?0:this.getPartNumber().hashCode())
+ ^
+ ((int) this.getRevision())
+ );
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof PartKey)) {
+ return false;
+ }
+ PartKey other = (PartKey) otherOb;
+ return (
+ (this.getPartNumber()==null?other.getPartNumber()==null:this.getPartNumber().equals(other.getPartNumber()))
+ &&
+ (getRevision() == other.getRevision())
+ );
+ }
+
+ @Override
+ public String toString() {
+ return getPartNumber() + " rev" + this.getRevision();
+ }
+
+ public String getPartNumber() {
+ return partNumber;
+ }
+
+ public void setPartNumber(String partNumber) {
+ this.partNumber = partNumber;
+ }
+
+ public int getRevision() {
+ return revision;
+ }
+
+ public void setRevision(int revision) {
+ this.revision = revision;
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Vendor.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Vendor.java
new file mode 100644
index 0000000000000000000000000000000000000000..4abcdfafe4d14ea3ad70fa7663d77d160dc10a6c
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/Vendor.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import java.util.Collection;
+
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
+import java.util.ArrayList;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_VENDOR")
+@NamedQueries({
+ @NamedQuery(
+ name="findVendorsByPartialName",
+ query="SELECT v " +
+ "FROM Vendor v " +
+ "WHERE LOCATE(:name, v.name) > 0"
+ ),
+ @NamedQuery(
+ name="findVendorByCustomerOrder",
+ query="SELECT DISTINCT l.vendorPart.vendor " +
+ "FROM CustomerOrder co, IN(co.lineItems) l " +
+ "WHERE co.orderId = :id " +
+ "ORDER BY l.vendorPart.vendor.name"
+ )
+})
+public class Vendor implements java.io.Serializable {
+ private static final long serialVersionUID = 2538635007598426330L;
+ private int vendorId;
+ private String name;
+ private String address;
+ private String contact;
+ private String phone;
+ private Collection vendorParts = new ArrayList<>();
+
+ public Vendor() {}
+
+ public Vendor(int vendorId,
+ String name,
+ String address,
+ String contact,
+ String phone) {
+ this.vendorId = vendorId;
+ this.name = name;
+ this.address = address;
+ this.contact = contact;
+ this.phone = phone;
+ }
+
+ @Id
+ public int getVendorId() {
+ return vendorId;
+ }
+
+ public void setVendorId(int vendorId) {
+ this.vendorId = vendorId;
+ }
+
+ @Column(name="VENDORNAME")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getContact() {
+ return contact;
+ }
+
+ public void setContact(String contact) {
+ this.contact = contact;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone;
+ }
+
+ @OneToMany(cascade=CascadeType.ALL, mappedBy="vendor")
+ public Collection getVendorParts() {
+ return vendorParts;
+ }
+
+ public void setVendorParts(Collection vendorParts) {
+ this.vendorParts = vendorParts;
+ }
+
+ public void addVendorPart(VendorPart vendorPart) {
+ this.getVendorParts().add(vendorPart);
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/VendorPart.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/VendorPart.java
new file mode 100644
index 0000000000000000000000000000000000000000..87aec93f86702e202dbe6632efd4aabba4e0616f
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/entity/VendorPart.java
@@ -0,0 +1,124 @@
+/*
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+package quarkus.tutorial.order.entity;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.JoinColumns;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.NamedQueries;
+import jakarta.persistence.NamedQuery;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
+import jakarta.persistence.TableGenerator;
+import jakarta.persistence.UniqueConstraint;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_VENDOR_PART",
+ uniqueConstraints=
+ @UniqueConstraint(columnNames={"PARTNUMBER", "PARTREVISION"})
+)
+@NamedQueries({
+ @NamedQuery(
+ name="findAverageVendorPartPrice",
+ query="SELECT AVG(vp.price) " +
+ "FROM VendorPart vp"
+ ),
+ @NamedQuery(
+ name="findTotalVendorPartPricePerVendor",
+ query="SELECT SUM(vp.price) " +
+ "FROM VendorPart vp " +
+ "WHERE vp.vendor.vendorId = :id"
+ ),
+ @NamedQuery(
+ name="findAllVendorParts",
+ query="SELECT vp FROM VendorPart vp ORDER BY vp.vendorPartNumber"
+ )
+})
+public class VendorPart implements java.io.Serializable {
+ private static final long serialVersionUID = 4685631589912848921L;
+ private Long vendorPartNumber;
+ private String description;
+ private double price;
+ private Part part;
+ private Vendor vendor;
+
+ public VendorPart() {}
+
+ public VendorPart(String description, double price, Part part) {
+ this.description = description;
+ this.price = price;
+ this.part = part;
+ part.setVendorPart(this);
+ }
+
+
+ @TableGenerator(
+ name="vendorPartGen",
+ table="PERSISTENCE_ORDER_SEQUENCE_GENERATOR",
+ pkColumnName="GEN_KEY",
+ valueColumnName="GEN_VALUE",
+ pkColumnValue="VENDOR_PART_ID",
+ allocationSize=10)
+ @Id
+ @GeneratedValue(strategy=GenerationType.TABLE, generator="vendorPartGen")
+ public Long getVendorPartNumber() {
+ return vendorPartNumber;
+ }
+
+ public void setVendorPartNumber(Long vendorPartNumber) {
+ this.vendorPartNumber = vendorPartNumber;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+
+ @OneToOne
+ @JoinColumns({
+ @JoinColumn(name="PARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @JoinColumn(name="PARTREVISION", referencedColumnName="REVISION")
+ })
+ public Part getPart() {
+ return part;
+ }
+
+ public void setPart(Part part) {
+ this.part = part;
+ }
+
+ @JoinColumn(name="VENDORID")
+ @ManyToOne
+ public Vendor getVendor() {
+ return vendor;
+ }
+
+ public void setVendor(Vendor vendor) {
+ this.vendor = vendor;
+ }
+
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/CustomerOrderRepository.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/CustomerOrderRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..86e2e5b444bd8ef0ffba55410ea24508c75637ee
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/CustomerOrderRepository.java
@@ -0,0 +1,81 @@
+package quarkus.tutorial.order.repository;
+
+import quarkus.tutorial.order.entity.CustomerOrder;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import java.util.List;
+import java.util.logging.Logger;
+import jakarta.transaction.Transactional;
+
+@ApplicationScoped
+public class CustomerOrderRepository {
+ private static final Logger logger = Logger.getLogger(CustomerOrderRepository.class.getName());
+
+ @PersistenceContext
+ private EntityManager em;
+
+ @Transactional
+ public void createOrder(Integer orderId, char status, int discount, String shipmentInfo) {
+ try {
+ CustomerOrder order = new CustomerOrder(orderId, status, discount, shipmentInfo);
+ em.persist(order);
+ logger.info("Created order ID " + orderId);
+ } catch (Exception e) {
+ logger.severe("Failed to create order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public List getOrders() {
+ try {
+ return em.createNamedQuery("findAllOrders", CustomerOrder.class).getResultList();
+ } catch (Exception e) {
+ logger.severe("Failed to get orders: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ @Transactional
+ public void removeOrder(Integer orderId) {
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ if (order != null) {
+ em.remove(order);
+ logger.info("Removed order ID " + orderId);
+ }
+ } catch (Exception e) {
+ logger.severe("Failed to remove order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public double getOrderPrice(Integer orderId) {
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ if (order == null) {
+ throw new RuntimeException("Order ID " + orderId + " not found");
+ }
+ return order.calculateAmmount();
+ } catch (Exception e) {
+ logger.severe("Failed to get price for order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ @Transactional
+ public void adjustOrderDiscount(int adjustment) {
+ try {
+ List orders = em.createNamedQuery("findAllOrders", CustomerOrder.class).getResultList();
+ for (CustomerOrder order : orders) {
+ int newDiscount = order.getDiscount() + adjustment;
+ order.setDiscount(Math.max(newDiscount, 0));
+ em.merge(order);
+ }
+ logger.info("Adjusted discount by " + adjustment);
+ } catch (Exception e) {
+ logger.severe("Failed to adjust discounts: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/LineItemRepository.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/LineItemRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..7609baa17e767c923e3a92ef301bdcd12851fd7f
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/LineItemRepository.java
@@ -0,0 +1,68 @@
+package quarkus.tutorial.order.repository;
+
+import quarkus.tutorial.order.entity.CustomerOrder;
+import quarkus.tutorial.order.entity.LineItem;
+import quarkus.tutorial.order.entity.Part;
+import quarkus.tutorial.order.entity.PartKey;
+import quarkus.tutorial.order.entity.VendorPart;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import java.util.List;
+import java.util.logging.Logger;
+import jakarta.transaction.Transactional;
+
+@ApplicationScoped
+public class LineItemRepository {
+ private static final Logger logger = Logger.getLogger(LineItemRepository.class.getName());
+
+ @PersistenceContext
+ private EntityManager em;
+
+ @Transactional
+ public void addLineItem(Integer orderId, String partNumber, int revision, int quantity) {
+ try {
+ CustomerOrder order = em.find(CustomerOrder.class, orderId);
+ if (order == null) {
+ throw new RuntimeException("Order ID " + orderId + " not found");
+ }
+ PartKey pkey = new PartKey();
+ pkey.setPartNumber(partNumber);
+ pkey.setRevision(revision);
+ Part part = em.find(Part.class, pkey);
+ if (part == null) {
+ throw new RuntimeException("Part " + partNumber + "-" + revision + " not found");
+ }
+ VendorPart vendorPart = part.getVendorPart();
+ LineItem lineItem = new LineItem(order, quantity, vendorPart);
+ order.addLineItem(lineItem);
+ em.persist(lineItem);
+ logger.info("Added line item for order ID " + orderId + ", part " + partNumber);
+ } catch (Exception e) {
+ logger.severe("Failed to add line item for order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public List getLineItems(int orderId) {
+ try {
+ return em.createNamedQuery("findLineItemsByOrderId", LineItem.class)
+ .setParameter("orderId", orderId)
+ .getResultList();
+ } catch (Exception e) {
+ logger.severe("Failed to get line items for order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public int countAllItems() {
+ try {
+ return em.createNamedQuery("findAllLineItems", LineItem.class)
+ .getResultList()
+ .size();
+ } catch (Exception e) {
+ logger.severe("Failed to count line items: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/PartRepository.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/PartRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..3b3ec5d9949ce9306c18a1794981b11a9ea1b686
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/PartRepository.java
@@ -0,0 +1,91 @@
+package quarkus.tutorial.order.repository;
+
+import quarkus.tutorial.order.entity.Part;
+import quarkus.tutorial.order.entity.PartKey;
+import quarkus.tutorial.order.entity.VendorPart;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+import java.util.logging.Logger;
+import jakarta.transaction.Transactional;
+
+@ApplicationScoped
+public class PartRepository {
+ private static final Logger logger = Logger.getLogger(PartRepository.class.getName());
+
+ @PersistenceContext
+ private EntityManager em;
+
+ @Transactional
+ public void createPart(String partNumber, int revision, String description,
+ Date revisionDate, String specification, Serializable drawing) {
+ try {
+ Part part = new Part(partNumber, revision, description, revisionDate, specification, drawing);
+ em.persist(part);
+ logger.info("Created part " + partNumber + "-" + revision);
+ } catch (Exception e) {
+ logger.severe("Failed to create part " + partNumber + "-" + revision + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public List getAllParts() {
+ try {
+ return em.createNamedQuery("findAllParts", Part.class).getResultList();
+ } catch (Exception e) {
+ logger.severe("Failed to get all parts: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ @Transactional
+ public void addPartToBillOfMaterial(String bomPartNumber, int bomRevision, String partNumber, int revision) {
+ try {
+ PartKey bomKey = new PartKey();
+ bomKey.setPartNumber(bomPartNumber);
+ bomKey.setRevision(bomRevision);
+ Part bom = em.find(Part.class, bomKey);
+ if (bom == null) {
+ throw new RuntimeException("BOM part " + bomPartNumber + "-" + bomRevision + " not found");
+ }
+ PartKey partKey = new PartKey();
+ partKey.setPartNumber(partNumber);
+ partKey.setRevision(revision);
+ Part part = em.find(Part.class, partKey);
+ if (part == null) {
+ throw new RuntimeException("Part " + partNumber + "-" + revision + " not found");
+ }
+ bom.getParts().add(part);
+ part.setBomPart(bom);
+ em.merge(bom);
+ logger.info("Added part " + partNumber + " to BOM " + bomPartNumber);
+ } catch (Exception e) {
+ logger.severe("Failed to add part to BOM: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public double getBillOfMaterialPrice(String bomPartNumber, int bomRevision) {
+ try {
+ PartKey bomKey = new PartKey();
+ bomKey.setPartNumber(bomPartNumber);
+ bomKey.setRevision(bomRevision);
+ Part bom = em.find(Part.class, bomKey);
+ if (bom == null) {
+ throw new RuntimeException("BOM part " + bomPartNumber + "-" + bomRevision + " not found");
+ }
+ double price = 0.0;
+ for (Part part : bom.getParts()) {
+ VendorPart vendorPart = part.getVendorPart();
+ price += vendorPart.getPrice();
+ }
+ return price;
+ } catch (Exception e) {
+ logger.severe("Failed to get BOM price: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorPartRepository.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorPartRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..d233b972d576c67c3f405379bf68f10d2fc356a8
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorPartRepository.java
@@ -0,0 +1,74 @@
+package quarkus.tutorial.order.repository;
+
+import quarkus.tutorial.order.entity.Part;
+import quarkus.tutorial.order.entity.PartKey;
+import quarkus.tutorial.order.entity.Vendor;
+import quarkus.tutorial.order.entity.VendorPart;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import java.util.List;
+import java.util.logging.Logger;
+import jakarta.transaction.Transactional;
+
+@ApplicationScoped
+public class VendorPartRepository {
+ private static final Logger logger = Logger.getLogger(VendorPartRepository.class.getName());
+
+ @PersistenceContext
+ private EntityManager em;
+
+ @Transactional
+ public void createVendorPart(String partNumber, int revision, String description, double price, int vendorId) {
+ try {
+ PartKey pkey = new PartKey();
+ pkey.setPartNumber(partNumber);
+ pkey.setRevision(revision);
+ Part part = em.find(Part.class, pkey);
+ if (part == null) {
+ throw new RuntimeException("Part " + partNumber + "-" + revision + " not found");
+ }
+ Vendor vendor = em.find(Vendor.class, vendorId);
+ if (vendor == null) {
+ throw new RuntimeException("Vendor ID " + vendorId + " not found");
+ }
+ VendorPart vendorPart = new VendorPart(description, price, part);
+ vendorPart.setVendor(vendor);
+ vendor.addVendorPart(vendorPart);
+ em.persist(vendorPart);
+ logger.info("Created vendor part for part " + partNumber + "-" + revision);
+ } catch (Exception e) {
+ logger.severe("Failed to create vendor part: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public Double getAvgPrice() {
+ try {
+ return em.createNamedQuery("findAverageVendorPartPrice", Double.class).getSingleResult();
+ } catch (Exception e) {
+ logger.severe("Failed to get average vendor part price: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public Double getTotalPricePerVendor(int vendorId) {
+ try {
+ return em.createNamedQuery("findTotalVendorPartPricePerVendor", Double.class)
+ .setParameter("id", vendorId)
+ .getSingleResult();
+ } catch (Exception e) {
+ logger.severe("Failed to get total price for vendor ID " + vendorId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public List findAllVendorParts() {
+ try {
+ return em.createNamedQuery("findAllVendorParts", VendorPart.class).getResultList();
+ } catch (Exception e) {
+ logger.severe("Failed to get all vendor parts: " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorRepository.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..3bc31b92a1431ace492f1864a4a038c396c12430
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/repository/VendorRepository.java
@@ -0,0 +1,64 @@
+package quarkus.tutorial.order.repository;
+
+import quarkus.tutorial.order.entity.Vendor;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.PersistenceContext;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.logging.Logger;
+import jakarta.transaction.Transactional;
+
+@ApplicationScoped
+public class VendorRepository {
+ private static final Logger logger = Logger.getLogger(VendorRepository.class.getName());
+
+ @PersistenceContext
+ private EntityManager em;
+
+ @Transactional
+ public void createVendor(int vendorId, String name, String address, String contact, String phone) {
+ try {
+ Vendor vendor = new Vendor(vendorId, name, address, contact, phone);
+ em.persist(vendor);
+ logger.info("Created vendor ID " + vendorId);
+ } catch (Exception e) {
+ logger.severe("Failed to create vendor ID " + vendorId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public List locateVendorsByPartialName(String name) {
+ try {
+ List vendors = em.createNamedQuery("findVendorsByPartialName", Vendor.class)
+ .setParameter("name", name)
+ .getResultList();
+ List names = new ArrayList<>();
+ for (Vendor vendor : vendors) {
+ names.add(vendor.getName());
+ }
+ return names;
+ } catch (Exception e) {
+ logger.severe("Failed to locate vendors by name " + name + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+
+ public String reportVendorsByOrder(Integer orderId) {
+ try {
+ List vendors = em.createNamedQuery("findVendorByCustomerOrder", Vendor.class)
+ .setParameter("id", orderId)
+ .getResultList();
+ StringBuilder report = new StringBuilder();
+ for (Vendor vendor : vendors) {
+ report.append(vendor.getVendorId()).append(' ')
+ .append(vendor.getName()).append(' ')
+ .append(vendor.getContact()).append('\n');
+ }
+ return report.toString();
+ } catch (Exception e) {
+ logger.severe("Failed to report vendors for order ID " + orderId + ": " + e.getMessage());
+ throw new RuntimeException(e.getMessage(), e);
+ }
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/service/OrderConfigService.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/service/OrderConfigService.java
new file mode 100644
index 0000000000000000000000000000000000000000..290dd71c022fc9f0f54d741342990212cc3ae2e3
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/service/OrderConfigService.java
@@ -0,0 +1,71 @@
+package quarkus.tutorial.order.service;
+
+import quarkus.tutorial.order.repository.CustomerOrderRepository;
+import quarkus.tutorial.order.repository.LineItemRepository;
+import quarkus.tutorial.order.repository.PartRepository;
+import quarkus.tutorial.order.repository.VendorPartRepository;
+import quarkus.tutorial.order.repository.VendorRepository;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.inject.Inject;
+import jakarta.transaction.Transactional;
+import java.util.logging.Logger;
+
+@ApplicationScoped
+public class OrderConfigService {
+ private static final Logger logger = Logger.getLogger(OrderConfigService.class.getName());
+
+ @Inject
+ private PartRepository partRepository;
+ @Inject
+ private VendorRepository vendorRepository;
+ @Inject
+ private VendorPartRepository vendorPartRepository;
+ @Inject
+ private CustomerOrderRepository customerOrderRepository;
+ @Inject
+ private LineItemRepository lineItemRepository;
+
+ @Transactional
+ public void createData() {
+ logger.info("Starting dataset initialization");
+
+ // Create Parts
+ partRepository.createPart("1234-5678-01", 1, "ABC PART", new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ partRepository.createPart("9876-4321-02", 2, "DEF PART", new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ partRepository.createPart("5456-6789-03", 3, "GHI PART", new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ partRepository.createPart("ABCD-XYZW-FF", 5, "XYZ PART", new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ partRepository.createPart("SDFG-ERTY-BN", 7, "BOM PART", new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+
+ // Add Parts to BOM
+ partRepository.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "1234-5678-01", 1);
+ partRepository.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "9876-4321-02", 2);
+ partRepository.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "5456-6789-03", 3);
+ partRepository.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "ABCD-XYZW-FF", 5);
+
+ // Create Vendors
+ vendorRepository.createVendor(100, "WidgetCorp", "111 Main St., Anytown, KY 99999", "Mr. Jones", "888-777-9999");
+ vendorRepository.createVendor(200, "Gadget, Inc.", "123 State St., Sometown, MI 88888", "Mrs. Smith", "866-345-6789");
+
+ // Create VendorParts
+ vendorPartRepository.createVendorPart("1234-5678-01", 1, "PART1", 100.00, 100);
+ vendorPartRepository.createVendorPart("9876-4321-02", 2, "PART2", 10.44, 200);
+ vendorPartRepository.createVendorPart("5456-6789-03", 3, "PART3", 76.23, 200);
+ vendorPartRepository.createVendorPart("ABCD-XYZW-FF", 5, "PART4", 55.19, 100);
+ vendorPartRepository.createVendorPart("SDFG-ERTY-BN", 7, "PART5", 345.87, 100);
+
+ // Create Orders and LineItems
+ Integer orderId = 1111;
+ customerOrderRepository.createOrder(orderId, 'N', 10, "333 New Court, New City, CA 90000");
+ lineItemRepository.addLineItem(orderId, "1234-5678-01", 1, 3);
+ lineItemRepository.addLineItem(orderId, "9876-4321-02", 2, 5);
+ lineItemRepository.addLineItem(orderId, "ABCD-XYZW-FF", 5, 7);
+
+ orderId = 4312;
+ customerOrderRepository.createOrder(orderId, 'N', 0, "333 New Court, New City, CA 90000");
+ lineItemRepository.addLineItem(orderId, "SDFG-ERTY-BN", 7, 1);
+ lineItemRepository.addLineItem(orderId, "ABCD-XYZW-FF", 5, 3);
+ lineItemRepository.addLineItem(orderId, "1234-5678-01", 1, 15);
+
+ logger.info("Order data initialization completed successfully");
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderController.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderController.java
new file mode 100644
index 0000000000000000000000000000000000000000..c9162c17a27504816c8c95ffba2061a228f45605
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderController.java
@@ -0,0 +1,97 @@
+package quarkus.tutorial.order.web;
+
+import quarkus.tutorial.order.entity.CustomerOrder;
+import quarkus.tutorial.order.entity.LineItem;
+import quarkus.tutorial.order.entity.Part;
+import quarkus.tutorial.order.repository.CustomerOrderRepository;
+import quarkus.tutorial.order.repository.LineItemRepository;
+import quarkus.tutorial.order.repository.PartRepository;
+import quarkus.tutorial.order.repository.VendorRepository;
+import jakarta.enterprise.context.RequestScoped;
+import jakarta.inject.Inject;
+import jakarta.inject.Named;
+import java.io.Serializable;
+import java.util.List;
+import java.util.logging.Logger;
+
+@RequestScoped
+@Named
+public class OrderController implements Serializable {
+ private static final long serialVersionUID = 2142383151318489373L;
+ private static final Logger logger = Logger.getLogger(OrderController.class.getName());
+
+ @Inject
+ private CustomerOrderRepository customerOrderRepository;
+ @Inject
+ private LineItemRepository lineItemRepository;
+ @Inject
+ private PartRepository partRepository;
+ @Inject
+ private VendorRepository vendorRepository;
+
+ public List getOrders() {
+ try {
+ return customerOrderRepository.getOrders();
+ } catch (Exception e) {
+ logger.warning("Couldn't get orders: " + e.getMessage());
+ return null;
+ }
+ }
+
+ public List getLineItems(Integer currentOrder) {
+ try {
+ return lineItemRepository.getLineItems(currentOrder);
+ } catch (Exception e) {
+ logger.warning("Couldn't get line items for order ID " + currentOrder + ": " + e.getMessage());
+ return null;
+ }
+ }
+
+ public String removeOrder(Integer orderId) {
+ try {
+ customerOrderRepository.removeOrder(orderId);
+ logger.info("Removed order " + orderId);
+ return "/orders";
+ } catch (Exception e) {
+ logger.warning("Problem removing order ID " + orderId + ": " + e.getMessage());
+ return null;
+ }
+ }
+
+ public List findVendor(String vendorName) {
+ try {
+ List vendorSearchResults = vendorRepository.locateVendorsByPartialName(vendorName);
+ logger.info("Found " + vendorSearchResults.size() + " vendor(s) using search string " + vendorName);
+ return vendorSearchResults;
+ } catch (Exception e) {
+ logger.warning("Problem finding vendors: " + e.getMessage());
+ return null;
+ }
+ }
+
+ public String submitOrder(Integer newOrderId, char newOrderStatus, int newOrderDiscount, String newOrderShippingInfo) {
+ try {
+ customerOrderRepository.createOrder(newOrderId, newOrderStatus, newOrderDiscount, newOrderShippingInfo);
+ logger.info("Created new order with ID " + newOrderId);
+ return "/orders";
+ } catch (Exception e) {
+ logger.warning("Problem creating order: " + e.getMessage());
+ return null;
+ }
+ }
+
+ public String addLineItem(Integer currentOrder, String selectedPartNumber, int selectedPartRevision) {
+ try {
+ lineItemRepository.addLineItem(currentOrder, selectedPartNumber, selectedPartRevision, 1);
+ logger.info("Added line item to order ID " + currentOrder);
+ return "/lineItems?orderId=" + currentOrder;
+ } catch (Exception e) {
+ logger.warning("Problem adding line item to order ID " + currentOrder + ": " + e.getMessage());
+ return null;
+ }
+ }
+
+ public List getNewOrderParts() {
+ return partRepository.getAllParts();
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderWebController.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderWebController.java
new file mode 100644
index 0000000000000000000000000000000000000000..9eee4f522df01b62c44edf0149200704a8f867a3
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/OrderWebController.java
@@ -0,0 +1,89 @@
+package quarkus.tutorial.order.web;
+
+import io.quarkus.qute.Template;
+import io.quarkus.qute.TemplateInstance;
+import jakarta.inject.Inject;
+import jakarta.ws.rs.*;
+import jakarta.ws.rs.core.MediaType;
+import java.util.List;
+
+@Path("/")
+public class OrderWebController {
+
+ @Inject
+ OrderController orderController;
+
+ @Inject
+ Template orders;
+
+ @Inject
+ Template lineItems;
+
+ @GET
+ @Path("/orders")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance getOrders(@QueryParam("vendorName") String vendorName, @QueryParam("vendorSearchResults") List vendorSearchResults) {
+ return orders.data("orders", orderController.getOrders())
+ .data("vendorName", vendorName)
+ .data("vendorSearchResults", vendorSearchResults)
+ .data("findVendorTableDisabled", vendorSearchResults != null);
+ }
+
+ @POST
+ @Path("/submitOrder")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance submitOrder(
+ @FormParam("newOrderId") Integer newOrderId,
+ @FormParam("newOrderStatus") String newOrderStatus,
+ @FormParam("newOrderDiscount") int newOrderDiscount,
+ @FormParam("newOrderShippingInfo") String newOrderShippingInfo) {
+ orderController.submitOrder(newOrderId, newOrderStatus.charAt(0), newOrderDiscount, newOrderShippingInfo);
+ return orders.data("orders", orderController.getOrders())
+ .data("vendorName", null)
+ .data("vendorSearchResults", null)
+ .data("findVendorTableDisabled", false);
+ }
+
+ @POST
+ @Path("/removeOrder")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance removeOrder(@FormParam("orderId") Integer orderId) {
+ orderController.removeOrder(orderId);
+ return orders.data("orders", orderController.getOrders())
+ .data("vendorName", null)
+ .data("vendorSearchResults", null)
+ .data("findVendorTableDisabled", false);
+ }
+
+ @GET
+ @Path("/lineItems")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance getLineItems(@QueryParam("orderId") Integer orderId) {
+ return lineItems.data("currentOrder", orderId)
+ .data("lineItems", orderController.getLineItems(orderId))
+ .data("newOrderParts", orderController.getNewOrderParts());
+ }
+
+ @POST
+ @Path("/addLineItem")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance addLineItem(
+ @FormParam("currentOrder") Integer currentOrder,
+ @FormParam("selectedPartNumber") String selectedPartNumber,
+ @FormParam("selectedPartRevision") int selectedPartRevision) {
+ orderController.addLineItem(currentOrder, selectedPartNumber, selectedPartRevision);
+ return lineItems.data("currentOrder", currentOrder)
+ .data("lineItems", orderController.getLineItems(currentOrder))
+ .data("newOrderParts", orderController.getNewOrderParts());
+ }
+
+ @POST
+ @Path("/findVendor")
+ @Produces(MediaType.TEXT_HTML)
+ public TemplateInstance findVendor(@FormParam("vendorName") String vendorName) {
+ return orders.data("orders", orderController.getOrders())
+ .data("vendorName", vendorName)
+ .data("vendorSearchResults", orderController.findVendor(vendorName))
+ .data("findVendorTableDisabled", true);
+ }
+}
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/StartupInitializer.java b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/StartupInitializer.java
new file mode 100644
index 0000000000000000000000000000000000000000..c5186fbf8c49a88dfdb13b31ee14091f8d7a70b2
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/java/quarkus/tutorial/order/web/StartupInitializer.java
@@ -0,0 +1,23 @@
+
+package quarkus.tutorial.order.web;
+
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.enterprise.event.Observes;
+import jakarta.inject.Inject;
+import io.quarkus.runtime.StartupEvent;
+import java.util.logging.Logger;
+import quarkus.tutorial.order.service.OrderConfigService;
+
+@ApplicationScoped
+public class StartupInitializer {
+ private static final Logger logger = Logger.getLogger(StartupInitializer.class.getName());
+
+ @Inject
+ OrderConfigService orderConfigService;
+
+ void onStart(@Observes StartupEvent ev) {
+ logger.info("Manually triggering dataset initialization");
+ orderConfigService.createData();
+ logger.info("Manual dataset initialization completed");
+ }
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/application.properties b/benchmark/persistence/order/quarkus/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..0ad1f4468ebf5fd497be1cd3142bc34260c260ae
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/application.properties
@@ -0,0 +1,10 @@
+quarkus.http.port=8082
+quarkus.datasource.db-kind=h2
+quarkus.datasource.jdbc.url=jdbc:h2:mem:order;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
+quarkus.datasource.username=sa
+quarkus.datasource.password=
+quarkus.hibernate-orm.database.generation=update
+quarkus.hibernate-orm.log.sql=true
+quarkus.qute.suffixes=html
+quarkus.datasource.jdbc.transactions=xa
+quarkus.hibernate-orm.jdbc.transactions.enabled=trueq
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/css/default.css b/benchmark/persistence/order/quarkus/src/main/resources/css/default.css
new file mode 100644
index 0000000000000000000000000000000000000000..cf1f0b31d150939811f62238b663f7995cc7b727
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/css/default.css
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c), Eclipse Foundation, Inc. and its licensors.
+ *
+ * All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Distribution License v1.0, which is available at
+ * https://www.eclipse.org/org/documents/edl-v10.php
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+body {
+ background-color: #ffffff;
+ font-size: 12px;
+ font-family: Verdana, "Verdana CE", Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ color: #000000;
+ margin: 10px;
+}
+
+h1 {
+ font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
+ border-bottom: 1px solid #AFAFAF;
+ font-size: 16px;
+ font-weight: bold;
+ margin: 0px;
+ padding: 0px;
+ color: #D20005;
+}
+
+a:link, a:visited {
+ color: #045491;
+ font-weight : bold;
+ text-decoration: none;
+}
+
+a:link:hover, a:visited:hover {
+ color: #045491;
+ font-weight : bold;
+ text-decoration : underline;
+}
+
+th {
+ font-weight: bold;
+ text-align: center;
+}
+
+td {
+ text-align: center;
+}
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItemTemplate.html b/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItemTemplate.html
new file mode 100644
index 0000000000000000000000000000000000000000..9983c874871cfd474c9a1c0e415ba45cd7125250
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItemTemplate.html
@@ -0,0 +1,12 @@
+
+
+
+ {#insert title}Default Title{/insert}
+
+
+
+ {#insert title}Default Title{/insert}
+
+ {#insert body}Default Body{/insert}
+
+
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItems.html b/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItems.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb0764a4b3d9b642ae85e530b2e0d3da6c33b333
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/templates/lineItems.html
@@ -0,0 +1,55 @@
+
+
+
+ Line Items for Order {currentOrder}
+
+
+ {#include lineItemTemplate}
+ {#title}Line Items for Order {currentOrder}{/title}
+ {#body}
+
+ {/body}
+ {/include}
+
+
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/templates/orderTemplate.html b/benchmark/persistence/order/quarkus/src/main/resources/templates/orderTemplate.html
new file mode 100644
index 0000000000000000000000000000000000000000..38422e2c5233540464a71bd87bd3f84c72ee2227
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/templates/orderTemplate.html
@@ -0,0 +1,23 @@
+
+
+
+ {#insert title}Default Title{/insert}
+
+
+
+ {#insert title}Default Title{/insert}
+
+ {#insert body}Default Body{/insert}
+
+ View All Orders
+ {#insert ordersTable}Default ordersTable{/insert}
+
+ Create New Order
+ {#insert newOrderForm}Default new orders form{/insert}
+
+ Find Vendors
+ {#insert findVendorForm}Default find vendors form{/insert}
+
+ {#insert findVendorTable}Default find vendor table{/insert}
+
+
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/src/main/resources/templates/orders.html b/benchmark/persistence/order/quarkus/src/main/resources/templates/orders.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9ee1059a8e3848d7fd9858e412069c65c228af2
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/src/main/resources/templates/orders.html
@@ -0,0 +1,83 @@
+
+
+
+ Order Java Persistence Example
+
+
+ {#include orderTemplate}
+ {#title}Order Java Persistence Example{/title}
+ {#ordersTable}
+
+
+ Order ID
+ Shipment Info
+ Status
+ Last Updated
+ Discount
+ Actions
+
+ {#for order in orders}
+
+
+ {order.orderId}
+
+ {order.shipmentInfo}
+ {order.status}
+ {order.lastUpdate}
+ {order.discount}%
+
+
+
+ Delete
+
+
+
+ {/for}
+
+ {/ordersTable}
+ {#newOrderForm}
+
+ Order ID:
+
+ Shipment Info:
+
+ Status:
+
+ Discount:
+
+ Submit
+
+ {/newOrderForm}
+ {#findVendorForm}
+
+ Search for Vendors:
+
+ Find Vendor
+
+ {/findVendorForm}
+ {#findVendorTable}
+ {#if findVendorTableDisabled}
+
+ Vendor
+ {#for vendor in vendorSearchResults}
+ {vendor}
+ {/for}
+
+ {/if}
+ {/findVendorTable}
+ {/include}
+
+
\ No newline at end of file
diff --git a/benchmark/persistence/order/quarkus/test.sh b/benchmark/persistence/order/quarkus/test.sh
new file mode 100644
index 0000000000000000000000000000000000000000..6f5388b3a69b90f8fd435067c7959ff27e990d76
--- /dev/null
+++ b/benchmark/persistence/order/quarkus/test.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+BASE_URL="${BASE_URL:-http://localhost:8082}"
+
+echo "Health check: ${BASE_URL}/"
+HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}/")
+
+if [ "$HTTP_STATUS" -eq 200 ]; then
+ echo "PASS - got HTTP ${HTTP_STATUS}"
+ exit 0
+else
+ echo "FAIL - got HTTP ${HTTP_STATUS}"
+ exit 1
+fi
diff --git a/benchmark/persistence/order/spring/.dockerignore b/benchmark/persistence/order/spring/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..c634c57d9244b4e60b8fa936f09dbe4e75706e74
--- /dev/null
+++ b/benchmark/persistence/order/spring/.dockerignore
@@ -0,0 +1,41 @@
+# VCS
+.git/
+
+# Maven
+.mvn/
+**/.mvn/
+mvnw
+mvnw.cmd
+**/mvnw
+**/mvnw.cmd
+target/
+**/target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+
+# IDE / Editor
+.vscode/
+**/.vscode/
+.zed/
+**/.zed/
+.idea/
+**/.idea/
+*.iml
+*.ipr
+*.iws
+
+# OS
+.DS_Store
+**/.DS_Store
+Thumbs.db
+ehthumbs.db
+
+# Logs / temp
+*.log
+*.tmp
+*.temp
diff --git a/benchmark/persistence/order/spring/.mvn/wrapper/maven-wrapper.properties b/benchmark/persistence/order/spring/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..c0bcafe984fe33005eacbcfabe8b188e0f75afcd
--- /dev/null
+++ b/benchmark/persistence/order/spring/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,3 @@
+wrapperVersion=3.3.4
+distributionType=only-script
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
diff --git a/benchmark/persistence/order/spring/Dockerfile b/benchmark/persistence/order/spring/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..57e175bfb6aea19c77e95e82697b83253c1d3191
--- /dev/null
+++ b/benchmark/persistence/order/spring/Dockerfile
@@ -0,0 +1,31 @@
+FROM maven:3.9.12-ibm-semeru-21-noble
+
+USER root
+# install uv
+RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh
+
+ENV PATH="/root/.local/bin:$PATH"
+
+# Shared browsers path so Chromium is cached once
+ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
+RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright
+
+# create venv and install
+RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest
+
+ENV PATH="/opt/venv/bin:$PATH"
+RUN playwright install --with-deps chromium
+
+# Set working directory
+WORKDIR /app
+
+# Copy all the assets
+COPY . .
+
+COPY test.sh .
+RUN chmod +x test.sh
+
+# Build application at image build time
+RUN mvn clean install -DskipTests
+
+CMD ["mvn", "spring-boot:run"]
diff --git a/benchmark/persistence/order/spring/README.md b/benchmark/persistence/order/spring/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b8984036cd17c2fa1107f9de2ee80387f2efb669
--- /dev/null
+++ b/benchmark/persistence/order/spring/README.md
@@ -0,0 +1,110 @@
+# Order Management Application - Spring Boot Version
+
+This is a Spring Boot conversion of the Jakarta EE Order Management application, maintaining the original JSF frontend while using Spring Boot for the backend services.
+
+## Features
+
+- **Order Management**: Create, view, and delete customer orders
+- **Line Item Management**: Add parts to orders as line items
+- **Part Management**: Manage parts with bill of materials (BOM) relationships
+- **Vendor Management**: Search and manage vendor information
+- **Vendor Part Management**: Associate parts with vendors and pricing
+
+## Technology Stack
+
+- **Spring Boot 3.2.0** - Main framework
+- **Spring Data JPA** - Data access layer
+- **JSF 4.0** - Web framework (maintaining original frontend)
+- **H2 Database** - In-memory database for development
+- **Maven** - Build tool
+
+## Project Structure
+
+```
+src/main/java/com/example/orderspring/
+├── entity/ # JPA entities (Part, CustomerOrder, LineItem, etc.)
+├── repository/ # Spring Data JPA repositories
+├── service/ # Business logic services
+├── web/ # JSF managed beans
+├── config/ # Spring configuration classes
+└── OrderApplication.java # Main Spring Boot application
+
+src/main/webapp/
+├── *.xhtml # JSF pages (copied from Jakarta version)
+├── resources/css/ # CSS stylesheets
+└── WEB-INF/ # Web configuration files
+```
+
+## Key Changes from Jakarta EE Version
+
+1. **Dependency Injection**: Replaced `@EJB` with `@Autowired` and Spring's dependency injection
+2. **Persistence**: Replaced JTA with Spring's `@Transactional` annotations
+3. **Managed Beans**: Converted JSF managed beans to Spring `@Component` beans
+4. **Configuration**: Replaced `persistence.xml` with Spring Boot's `application.properties`
+5. **Database**: Added H2 database for development (replaces Payara's default datasource)
+
+## Running the Application
+
+1. **Prerequisites**:
+ - Java 17 or higher
+ - Maven 3.6 or higher
+
+2. **Build and Run**:
+ ```bash
+ cd persistence/spring/order
+ mvn clean install
+ mvn spring-boot:run
+ ```
+
+3. **Access the Application**:
+ - Main application: http://localhost:8080/order.xhtml
+ - H2 Database Console: http://localhost:8080/h2-console
+ - JDBC URL: `jdbc:h2:mem:testdb`
+ - Username: `sa`
+ - Password: (empty)
+
+## Application Features
+
+### Order Management
+- View all orders in a table format
+- Create new orders with status, discount, and shipping information
+- Delete existing orders
+- Navigate to line items for each order
+
+### Line Item Management
+- View line items for a specific order
+- Add parts to orders as line items
+- Each line item includes quantity and vendor part information
+
+### Part Management
+- View all available parts
+- Parts can have bill of materials (BOM) relationships
+- Each part can be associated with a vendor part
+
+### Vendor Management
+- Search vendors by partial name
+- View vendor information and contact details
+
+## Database Schema
+
+The application uses the same database schema as the original Jakarta EE version:
+- `PERSISTENCE_ORDER_PART` - Parts table
+- `PERSISTENCE_ORDER_CUSTOMERORDER` - Orders table
+- `PERSISTENCE_ORDER_LINEITEM` - Line items table
+- `PERSISTENCE_ORDER_VENDOR` - Vendors table
+- `PERSISTENCE_ORDER_VENDOR_PART` - Vendor parts table
+
+## Configuration
+
+The application is configured through `application.properties`:
+- Database connection settings
+- JPA/Hibernate configuration
+- JSF configuration
+- Logging levels
+
+## Development Notes
+
+- The application automatically creates sample data on startup
+- All original JSF pages and functionality are preserved
+- The UI remains exactly the same as the Jakarta EE version
+- Spring Boot provides embedded server, so no external application server is needed
diff --git a/benchmark/persistence/order/spring/mvnw b/benchmark/persistence/order/spring/mvnw
new file mode 100644
index 0000000000000000000000000000000000000000..bd8896bf2217b46faa0291585e01ac1a3441a958
--- /dev/null
+++ b/benchmark/persistence/order/spring/mvnw
@@ -0,0 +1,295 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Apache Maven Wrapper startup batch script, version 3.3.4
+#
+# Optional ENV vars
+# -----------------
+# JAVA_HOME - location of a JDK home dir, required when download maven via java source
+# MVNW_REPOURL - repo url base for downloading maven distribution
+# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
+# ----------------------------------------------------------------------------
+
+set -euf
+[ "${MVNW_VERBOSE-}" != debug ] || set -x
+
+# OS specific support.
+native_path() { printf %s\\n "$1"; }
+case "$(uname)" in
+CYGWIN* | MINGW*)
+ [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
+ native_path() { cygpath --path --windows "$1"; }
+ ;;
+esac
+
+# set JAVACMD and JAVACCMD
+set_java_home() {
+ # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
+ if [ -n "${JAVA_HOME-}" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ JAVACCMD="$JAVA_HOME/jre/sh/javac"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ JAVACCMD="$JAVA_HOME/bin/javac"
+
+ if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
+ echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
+ echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
+ return 1
+ fi
+ fi
+ else
+ JAVACMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v java
+ )" || :
+ JAVACCMD="$(
+ 'set' +e
+ 'unset' -f command 2>/dev/null
+ 'command' -v javac
+ )" || :
+
+ if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
+ echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
+ return 1
+ fi
+ fi
+}
+
+# hash string like Java String::hashCode
+hash_string() {
+ str="${1:-}" h=0
+ while [ -n "$str" ]; do
+ char="${str%"${str#?}"}"
+ h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
+ str="${str#?}"
+ done
+ printf %x\\n $h
+}
+
+verbose() { :; }
+[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
+
+die() {
+ printf %s\\n "$1" >&2
+ exit 1
+}
+
+trim() {
+ # MWRAPPER-139:
+ # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
+ # Needed for removing poorly interpreted newline sequences when running in more
+ # exotic environments such as mingw bash on Windows.
+ printf "%s" "${1}" | tr -d '[:space:]'
+}
+
+scriptDir="$(dirname "$0")"
+scriptName="$(basename "$0")"
+
+# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
+while IFS="=" read -r key value; do
+ case "${key-}" in
+ distributionUrl) distributionUrl=$(trim "${value-}") ;;
+ distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
+ esac
+done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
+[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+
+case "${distributionUrl##*/}" in
+maven-mvnd-*bin.*)
+ MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
+ case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
+ *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
+ :Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
+ :Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
+ :Linux*x86_64*) distributionPlatform=linux-amd64 ;;
+ *)
+ echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
+ distributionPlatform=linux-amd64
+ ;;
+ esac
+ distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
+ ;;
+maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+esac
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
+distributionUrlName="${distributionUrl##*/}"
+distributionUrlNameMain="${distributionUrlName%.*}"
+distributionUrlNameMain="${distributionUrlNameMain%-bin}"
+MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
+MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
+
+exec_maven() {
+ unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
+ exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
+}
+
+if [ -d "$MAVEN_HOME" ]; then
+ verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ exec_maven "$@"
+fi
+
+case "${distributionUrl-}" in
+*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
+*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
+esac
+
+# prepare tmp dir
+if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
+ clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
+ trap clean HUP INT TERM EXIT
+else
+ die "cannot create temp dir"
+fi
+
+mkdir -p -- "${MAVEN_HOME%/*}"
+
+# Download and Install Apache Maven
+verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+verbose "Downloading from: $distributionUrl"
+verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+# select .zip or .tar.gz
+if ! command -v unzip >/dev/null; then
+ distributionUrl="${distributionUrl%.zip}.tar.gz"
+ distributionUrlName="${distributionUrl##*/}"
+fi
+
+# verbose opt
+__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
+[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
+
+# normalize http auth
+case "${MVNW_PASSWORD:+has-password}" in
+'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
+esac
+
+if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
+ verbose "Found wget ... using wget"
+ wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
+elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
+ verbose "Found curl ... using curl"
+ curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
+elif set_java_home; then
+ verbose "Falling back to use Java to download"
+ javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
+ targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
+ cat >"$javaSource" <<-END
+ public class Downloader extends java.net.Authenticator
+ {
+ protected java.net.PasswordAuthentication getPasswordAuthentication()
+ {
+ return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
+ }
+ public static void main( String[] args ) throws Exception
+ {
+ setDefault( new Downloader() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ }
+ }
+ END
+ # For Cygwin/MinGW, switch paths to Windows format before running javac and java
+ verbose " - Compiling Downloader.java ..."
+ "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
+ verbose " - Running Downloader.java ..."
+ "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
+fi
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+if [ -n "${distributionSha256Sum-}" ]; then
+ distributionSha256Result=false
+ if [ "$MVN_CMD" = mvnd.sh ]; then
+ echo "Checksum validation is not supported for maven-mvnd." >&2
+ echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ elif command -v sha256sum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ elif command -v shasum >/dev/null; then
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
+ distributionSha256Result=true
+ fi
+ else
+ echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
+ echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
+ exit 1
+ fi
+ if [ $distributionSha256Result = false ]; then
+ echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
+ echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
+ exit 1
+ fi
+fi
+
+# unzip and move
+if command -v unzip >/dev/null; then
+ unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
+else
+ tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
+fi
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+actualDistributionDir=""
+
+# First try the expected directory name (for regular distributions)
+if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
+ if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$distributionUrlNameMain"
+ fi
+fi
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if [ -z "$actualDistributionDir" ]; then
+ # enable globbing to iterate over items
+ set +f
+ for dir in "$TMP_DOWNLOAD_DIR"/*; do
+ if [ -d "$dir" ]; then
+ if [ -f "$dir/bin/$MVN_CMD" ]; then
+ actualDistributionDir="$(basename "$dir")"
+ break
+ fi
+ fi
+ done
+ set -f
+fi
+
+if [ -z "$actualDistributionDir" ]; then
+ verbose "Contents of $TMP_DOWNLOAD_DIR:"
+ verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
+ die "Could not find Maven distribution directory in extracted archive"
+fi
+
+verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
+mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+clean || :
+exec_maven "$@"
diff --git a/benchmark/persistence/order/spring/mvnw.cmd b/benchmark/persistence/order/spring/mvnw.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..5761d948924c19571d27b465c519b2e2f9e30351
--- /dev/null
+++ b/benchmark/persistence/order/spring/mvnw.cmd
@@ -0,0 +1,189 @@
+<# : batch portion
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.3.4
+@REM
+@REM Optional ENV vars
+@REM MVNW_REPOURL - repo url base for downloading maven distribution
+@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
+@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
+@REM ----------------------------------------------------------------------------
+
+@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
+@SET __MVNW_CMD__=
+@SET __MVNW_ERROR__=
+@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
+@SET PSModulePath=
+@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
+ IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
+)
+@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
+@SET __MVNW_PSMODULEP_SAVE=
+@SET __MVNW_ARG0_NAME__=
+@SET MVNW_USERNAME=
+@SET MVNW_PASSWORD=
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
+@echo Cannot start maven from wrapper >&2 && exit /b 1
+@GOTO :EOF
+: end batch / begin powershell #>
+
+$ErrorActionPreference = "Stop"
+if ($env:MVNW_VERBOSE -eq "true") {
+ $VerbosePreference = "Continue"
+}
+
+# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
+$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
+if (!$distributionUrl) {
+ Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
+}
+
+switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
+ "maven-mvnd-*" {
+ $USE_MVND = $true
+ $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
+ $MVN_CMD = "mvnd.cmd"
+ break
+ }
+ default {
+ $USE_MVND = $false
+ $MVN_CMD = $script -replace '^mvnw','mvn'
+ break
+ }
+}
+
+# apply MVNW_REPOURL and calculate MAVEN_HOME
+# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/
+if ($env:MVNW_REPOURL) {
+ $MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
+ $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
+}
+$distributionUrlName = $distributionUrl -replace '^.*/',''
+$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
+
+$MAVEN_M2_PATH = "$HOME/.m2"
+if ($env:MAVEN_USER_HOME) {
+ $MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
+}
+
+if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
+ New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
+}
+
+$MAVEN_WRAPPER_DISTS = $null
+if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
+ $MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
+} else {
+ $MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
+}
+
+$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
+$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
+
+if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
+ Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
+ Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+ exit $?
+}
+
+if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
+ Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
+}
+
+# prepare tmp dir
+$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
+$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
+$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
+trap {
+ if ($TMP_DOWNLOAD_DIR.Exists) {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+ }
+}
+
+New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
+
+# Download and Install Apache Maven
+Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
+Write-Verbose "Downloading from: $distributionUrl"
+Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
+
+$webclient = New-Object System.Net.WebClient
+if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
+ $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
+}
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
+
+# If specified, validate the SHA-256 sum of the Maven distribution zip file
+$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
+if ($distributionSha256Sum) {
+ if ($USE_MVND) {
+ Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
+ }
+ Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
+ if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
+ Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
+ }
+}
+
+# unzip and move
+Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
+
+# Find the actual extracted directory name (handles snapshots where filename != directory name)
+$actualDistributionDir = ""
+
+# First try the expected directory name (for regular distributions)
+$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
+$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
+if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
+ $actualDistributionDir = $distributionUrlNameMain
+}
+
+# If not found, search for any directory with the Maven executable (for snapshots)
+if (!$actualDistributionDir) {
+ Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
+ $testPath = Join-Path $_.FullName "bin/$MVN_CMD"
+ if (Test-Path -Path $testPath -PathType Leaf) {
+ $actualDistributionDir = $_.Name
+ }
+ }
+}
+
+if (!$actualDistributionDir) {
+ Write-Error "Could not find Maven distribution directory in extracted archive"
+}
+
+Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
+Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
+try {
+ Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
+} catch {
+ if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
+ Write-Error "fail to move MAVEN_HOME"
+ }
+} finally {
+ try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
+ catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
+}
+
+Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
diff --git a/benchmark/persistence/order/spring/pom.xml b/benchmark/persistence/order/spring/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6907094544b0f7d55d41ee68073e44ac153522c2
--- /dev/null
+++ b/benchmark/persistence/order/spring/pom.xml
@@ -0,0 +1,67 @@
+
+ 4.0.0
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.3.7
+
+
+
+ example
+ order-boot
+ 1.0.0-SNAPSHOT
+ order-boot
+ jar
+
+
+ 17
+ 5.5.6
+ 17
+ 17
+ UTF-8
+
+
+
+
+
+ org.joinfaces
+ joinfaces-bom
+ ${joinfaces.version}
+ pom
+ import
+
+
+
+
+
+
+ org.joinfaces
+ primefaces-spring-boot-starter
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+ com.h2database
+ h2
+ 2.2.224
+ runtime
+
+
+ jakarta.inject
+ jakarta.inject-api
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/OrderApplication.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/OrderApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..fe5e4f8a4087def3ee584c94d323dba66755a5ab
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/OrderApplication.java
@@ -0,0 +1,12 @@
+package com.example.orderspring;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class OrderApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(OrderApplication.class, args);
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/CustomerOrder.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/CustomerOrder.java
new file mode 100644
index 0000000000000000000000000000000000000000..999a79d369f3d06c305845cb6fcd5d0c92de5e13
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/CustomerOrder.java
@@ -0,0 +1,119 @@
+package com.example.orderspring.entity;
+
+import jakarta.persistence.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Date;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_CUSTOMERORDER")
+@NamedQuery(
+ name="findAllOrders",
+ query="SELECT co FROM CustomerOrder co " +
+ "ORDER BY co.orderId"
+)
+public class CustomerOrder implements Serializable {
+ private static final long serialVersionUID = 6582105865012174694L;
+
+ private Integer orderId;
+ private char status;
+ private Date lastUpdate;
+ private int discount;
+ private String shipmentInfo;
+ private Collection lineItems = new ArrayList<>();
+
+ public CustomerOrder() {
+ this.lastUpdate = new Date();
+ }
+
+ public CustomerOrder(Integer orderId, char status, int discount,
+ String shipmentInfo) {
+ this.orderId = orderId;
+ this.status = status;
+ this.discount = discount;
+ this.shipmentInfo = shipmentInfo;
+ this.lastUpdate = new Date();
+ }
+
+ @Id
+ public Integer getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(Integer orderId) {
+ this.orderId = orderId;
+ }
+
+ public char getStatus() {
+ return status;
+ }
+
+ public void setStatus(char status) {
+ this.status = status;
+ }
+
+ @Temporal(TemporalType.TIMESTAMP)
+ public Date getLastUpdate() {
+ return lastUpdate;
+ }
+
+ public void setLastUpdate(Date lastUpdate) {
+ this.lastUpdate = lastUpdate;
+ }
+
+ public int getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(int discount) {
+ this.discount = discount;
+ }
+
+ public String getShipmentInfo() {
+ return shipmentInfo;
+ }
+
+ public void setShipmentInfo(String shipmentInfo) {
+ this.shipmentInfo = shipmentInfo;
+ }
+
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "customerOrder", orphanRemoval = true)
+ public Collection getLineItems() {
+ return lineItems;
+ }
+
+ public void setLineItems(Collection lineItems) {
+ this.lineItems = lineItems;
+ }
+
+ public double calculateAmmount() {
+ double amount = 0;
+ for (LineItem item : getLineItems()) {
+ if (item.getVendorPart() != null) {
+ amount += item.getVendorPart().getPrice() * item.getQuantity();
+ }
+ }
+ return (amount * (100 - getDiscount())) / 100.0;
+ }
+
+ public double calculateAmount() {
+ return calculateAmmount();
+ }
+
+ public void addLineItem(LineItem lineItem) {
+ lineItem.setCustomerOrder(this);
+ this.getLineItems().add(lineItem);
+ }
+
+ @Transient
+ public int getNextId() {
+ return this.lineItems.size() + 1;
+ }
+
+ @PrePersist
+ @PreUpdate
+ private void touchLastUpdate() {
+ this.lastUpdate = new Date();
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItem.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItem.java
new file mode 100644
index 0000000000000000000000000000000000000000..38af10f96aeeb31571c3ca8bf235a1866bd4a4f3
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItem.java
@@ -0,0 +1,50 @@
+package com.example.orderspring.entity;
+
+import jakarta.persistence.*;
+import java.io.Serializable;
+
+@IdClass(LineItemKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_LINEITEM")
+@NamedQueries({
+ @NamedQuery(name="findAllLineItems", query="SELECT l FROM LineItem l"),
+ @NamedQuery(name="findLineItemsByOrderId",
+ query="SELECT l FROM LineItem l WHERE l.customerOrder.orderId = :orderId ORDER BY l.itemId"),
+ @NamedQuery(name="findLineItemById",
+ query="SELECT DISTINCT l FROM LineItem l WHERE l.itemId = :itemId AND l.customerOrder.orderId = :orderId")
+})
+public class LineItem implements Serializable {
+ private static final long serialVersionUID = 3229188813505619743L;
+
+ private int itemId;
+ private int quantity;
+ private VendorPart vendorPart;
+ private CustomerOrder customerOrder;
+
+ public LineItem() { }
+
+ public LineItem(CustomerOrder order, int quantity, VendorPart vendorPart) {
+ this.customerOrder = order;
+ this.itemId = order.getNextId();
+ this.quantity = quantity;
+ this.vendorPart = vendorPart;
+ }
+
+ @Id
+ public int getItemId() { return itemId; }
+ public void setItemId(int itemId) { this.itemId = itemId; }
+
+ public int getQuantity() { return quantity; }
+ public void setQuantity(int quantity) { this.quantity = quantity; }
+
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumn(name="VENDORPARTNUMBER")
+ public VendorPart getVendorPart() { return vendorPart; }
+ public void setVendorPart(VendorPart vendorPart) { this.vendorPart = vendorPart; }
+
+ @Id
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumn(name="ORDERID")
+ public CustomerOrder getCustomerOrder() { return customerOrder; }
+ public void setCustomerOrder(CustomerOrder customerOrder) { this.customerOrder = customerOrder; }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItemKey.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItemKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..91fea39c1a60eeffef924cf3ba4a933fff8ee783
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/LineItemKey.java
@@ -0,0 +1,60 @@
+package com.example.orderspring.entity;
+
+import java.io.Serializable;
+
+public final class LineItemKey implements Serializable {
+ private static final long serialVersionUID = 1562260205094677677L;
+ private Integer customerOrder;
+ private int itemId;
+
+ public LineItemKey() {
+ }
+
+ public LineItemKey(Integer order, int itemId) {
+ this.setCustomerOrder(order);
+ this.setItemId(itemId);
+ }
+
+ @Override
+ public int hashCode() {
+ return ((this.getCustomerOrder() == null
+ ? 0 : this.getCustomerOrder().hashCode())
+ ^ ((int) this.getItemId()));
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof LineItemKey)) {
+ return false;
+ }
+ LineItemKey other = (LineItemKey) otherOb;
+ return ((this.getCustomerOrder() == null
+ ? other.getCustomerOrder() == null : this.getCustomerOrder()
+ .equals(other.getCustomerOrder()))
+ && (this.getItemId() == other.getItemId()));
+ }
+
+ @Override
+ public String toString() {
+ return "" + getCustomerOrder() + "-" + getItemId();
+ }
+
+ public Integer getCustomerOrder() {
+ return customerOrder;
+ }
+
+ public void setCustomerOrder(Integer order) {
+ this.customerOrder = order;
+ }
+
+ public int getItemId() {
+ return itemId;
+ }
+
+ public void setItemId(int itemId) {
+ this.itemId = itemId;
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Part.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Part.java
new file mode 100644
index 0000000000000000000000000000000000000000..32d14a1bcb8762c90428b8dcc51d59cb579edc48
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Part.java
@@ -0,0 +1,83 @@
+package com.example.orderspring.entity;
+
+import jakarta.persistence.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+@IdClass(PartKey.class)
+@Entity
+@Table(name="PERSISTENCE_ORDER_PART")
+@SecondaryTable(name="PERSISTENCE_ORDER_PART_DETAIL", pkJoinColumns={
+ @PrimaryKeyJoinColumn(name="PARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @PrimaryKeyJoinColumn(name="REVISION", referencedColumnName="REVISION")
+})
+@NamedQuery(name="findAllParts",
+ query="SELECT p FROM Part p ORDER BY p.partNumber")
+public class Part implements Serializable {
+ private static final long serialVersionUID = -3082087016342644227L;
+
+ private String partNumber;
+ private int revision;
+ private String description;
+ private Date revisionDate;
+ private Serializable drawing;
+ private String specification;
+ private Part bomPart;
+ private List parts = new ArrayList<>();
+ private VendorPart vendorPart;
+
+ public Part() {}
+
+ public Part(String partNumber, int revision, String description,
+ Date revisionDate, String specification, Serializable drawing) {
+ this.partNumber = partNumber;
+ this.revision = revision;
+ this.description = description;
+ this.revisionDate = revisionDate;
+ this.specification = specification;
+ this.drawing = drawing;
+ }
+
+ @Id @Column(nullable=false)
+ public String getPartNumber() { return partNumber; }
+ public void setPartNumber(String partNumber) { this.partNumber = partNumber; }
+
+ @Id @Column(nullable=false)
+ public int getRevision() { return revision; }
+ public void setRevision(int revision) { this.revision = revision; }
+
+ public String getDescription() { return description; }
+ public void setDescription(String description) { this.description = description; }
+
+ @Temporal(TemporalType.DATE)
+ public Date getRevisionDate() { return revisionDate; }
+ public void setRevisionDate(Date revisionDate) { this.revisionDate = revisionDate; }
+
+ @Lob @Basic(fetch = FetchType.LAZY)
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ public Serializable getDrawing() { return drawing; }
+ public void setDrawing(Serializable drawing) { this.drawing = drawing; }
+
+ @Lob @Basic(fetch = FetchType.LAZY)
+ @Column(table="PERSISTENCE_ORDER_PART_DETAIL")
+ public String getSpecification() { return specification; }
+ public void setSpecification(String specification) { this.specification = specification; }
+
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumns({
+ @JoinColumn(name="BOMPARTNUMBER", referencedColumnName="PARTNUMBER"),
+ @JoinColumn(name="BOMREVISION", referencedColumnName="REVISION")
+ })
+ public Part getBomPart() { return bomPart; }
+ public void setBomPart(Part bomPart) { this.bomPart = bomPart; }
+
+ @OneToMany(mappedBy="bomPart")
+ public List getParts() { return parts; }
+ public void setParts(List parts) { this.parts = parts; }
+
+ @OneToOne(mappedBy="part", fetch = FetchType.LAZY)
+ public VendorPart getVendorPart() { return vendorPart; }
+ public void setVendorPart(VendorPart vendorPart) { this.vendorPart = vendorPart; }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/PartKey.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/PartKey.java
new file mode 100644
index 0000000000000000000000000000000000000000..0e388c635fcb65a11e931e543efa1eb91d6a4f75
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/PartKey.java
@@ -0,0 +1,56 @@
+package com.example.orderspring.entity;
+
+import java.io.Serializable;
+
+public class PartKey implements Serializable {
+ private static final long serialVersionUID = -3162267592969127613L;
+ private String partNumber;
+ private int revision;
+
+ public PartKey() {}
+
+ public PartKey(String partNumber, int revision) {
+ this.partNumber = partNumber;
+ this.revision = revision;
+ }
+
+ @Override
+ public int hashCode() {
+ return ((this.getPartNumber() == null ? 0 : this.getPartNumber().hashCode())
+ ^ ((int) this.getRevision()));
+ }
+
+ @Override
+ public boolean equals(Object otherOb) {
+ if (this == otherOb) {
+ return true;
+ }
+ if (!(otherOb instanceof PartKey)) {
+ return false;
+ }
+ PartKey other = (PartKey) otherOb;
+ return ((this.getPartNumber() == null ? other.getPartNumber() == null : this.getPartNumber().equals(other.getPartNumber()))
+ && (getRevision() == other.getRevision()));
+ }
+
+ @Override
+ public String toString() {
+ return getPartNumber() + " rev" + this.getRevision();
+ }
+
+ public String getPartNumber() {
+ return partNumber;
+ }
+
+ public void setPartNumber(String partNumber) {
+ this.partNumber = partNumber;
+ }
+
+ public int getRevision() {
+ return revision;
+ }
+
+ public void setRevision(int revision) {
+ this.revision = revision;
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Vendor.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Vendor.java
new file mode 100644
index 0000000000000000000000000000000000000000..5f2be163abd5647a1a1f6535102d0b18f5b3f8e6
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/Vendor.java
@@ -0,0 +1,57 @@
+package com.example.orderspring.entity;
+
+import jakarta.persistence.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collection;
+
+@Entity
+@Table(name="PERSISTENCE_ORDER_VENDOR")
+@NamedQueries({
+ @NamedQuery(name="findVendorsByPartialName",
+ query="SELECT v FROM Vendor v WHERE LOCATE(:name, v.name) > 0"),
+ @NamedQuery(name="findVendorByCustomerOrder",
+ query="SELECT DISTINCT l.vendorPart.vendor FROM CustomerOrder co, IN(co.lineItems) l WHERE co.orderId = :id ORDER BY l.vendorPart.vendor.name")
+})
+public class Vendor implements Serializable {
+ private static final long serialVersionUID = 2538635007598426330L;
+
+ private int vendorId;
+ private String name;
+ private String address;
+ private String contact;
+ private String phone;
+ private Collection vendorParts = new ArrayList<>();
+
+ public Vendor() {}
+ public Vendor(int vendorId, String name, String address, String contact, String phone) {
+ this.vendorId = vendorId; this.name = name; this.address = address;
+ this.contact = contact; this.phone = phone;
+ }
+
+ @Id
+ public int getVendorId() { return vendorId; }
+ public void setVendorId(int vendorId) { this.vendorId = vendorId; }
+
+ @Column(name="VENDORNAME")
+ public String getName() { return name; }
+ public void setName(String name) { this.name = name; }
+
+ public String getAddress() { return address; }
+ public void setAddress(String address) { this.address = address; }
+
+ public String getContact() { return contact; }
+ public void setContact(String contact) { this.contact = contact; }
+
+ public String getPhone() { return phone; }
+ public void setPhone(String phone) { this.phone = phone; }
+
+ @OneToMany(cascade=CascadeType.ALL, mappedBy="vendor", orphanRemoval = true)
+ public Collection getVendorParts() { return vendorParts; }
+ public void setVendorParts(Collection vendorParts) { this.vendorParts = vendorParts; }
+
+ public void addVendorPart(VendorPart vendorPart) {
+ vendorPart.setVendor(this); // keep both sides in sync
+ getVendorParts().add(vendorPart);
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/VendorPart.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/VendorPart.java
new file mode 100644
index 0000000000000000000000000000000000000000..b2b3eceacafc03a5cd38780ee8f39940b630cf8e
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/entity/VendorPart.java
@@ -0,0 +1,72 @@
+package com.example.orderspring.entity;
+
+import jakarta.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(
+ name = "PERSISTENCE_ORDER_VENDOR_PART",
+ uniqueConstraints = @UniqueConstraint(columnNames = {"PARTNUMBER", "PARTREVISION"})
+)
+@NamedQueries({
+ @NamedQuery(name = "findAverageVendorPartPrice",
+ query = "SELECT AVG(vp.price) FROM VendorPart vp"),
+ @NamedQuery(name = "findTotalVendorPartPricePerVendor",
+ query = "SELECT SUM(vp.price) FROM VendorPart vp WHERE vp.vendor.vendorId = :id"),
+ @NamedQuery(name = "findAllVendorParts",
+ query = "SELECT vp FROM VendorPart vp ORDER BY vp.vendorPartNumber")
+})
+public class VendorPart implements Serializable {
+ private static final long serialVersionUID = 4685631589912848921L;
+
+ private Long vendorPartNumber;
+ private String description;
+ private double price;
+ private Part part;
+ private Vendor vendor;
+
+ public VendorPart() {}
+
+ public VendorPart(String description, double price, Part part) {
+ this.description = description;
+ this.price = price;
+ setPart(part);
+ }
+
+ @TableGenerator(
+ name = "vendorPartGen",
+ table = "PERSISTENCE_ORDER_SEQUENCE_GENERATOR",
+ pkColumnName = "GEN_KEY",
+ valueColumnName = "GEN_VALUE",
+ pkColumnValue = "VENDOR_PART_ID",
+ allocationSize = 10
+ )
+ @Id
+ @GeneratedValue(strategy = GenerationType.TABLE, generator = "vendorPartGen")
+ public Long getVendorPartNumber() { return vendorPartNumber; }
+ public void setVendorPartNumber(Long vendorPartNumber) { this.vendorPartNumber = vendorPartNumber; }
+
+ public String getDescription() { return description; }
+ public void setDescription(String description) { this.description = description; }
+
+ public double getPrice() { return price; }
+ public void setPrice(double price) { this.price = price; }
+
+ @OneToOne(fetch = FetchType.LAZY)
+ @JoinColumns({
+ @JoinColumn(name = "PARTNUMBER", referencedColumnName = "PARTNUMBER"),
+ @JoinColumn(name = "PARTREVISION", referencedColumnName = "REVISION")
+ })
+ public Part getPart() { return part; }
+ public void setPart(Part part) {
+ this.part = part;
+ if (part != null && part.getVendorPart() != this) {
+ part.setVendorPart(this);
+ }
+ }
+
+ @ManyToOne(fetch = FetchType.LAZY)
+ @JoinColumn(name = "VENDORID")
+ public Vendor getVendor() { return vendor; }
+ public void setVendor(Vendor vendor) { this.vendor = vendor; }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/CustomerOrderRepository.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/CustomerOrderRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..4be13eaba3b94592df0ac929436e5b7d506ae737
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/CustomerOrderRepository.java
@@ -0,0 +1,15 @@
+package com.example.orderspring.repository;
+
+import com.example.orderspring.entity.CustomerOrder;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface CustomerOrderRepository extends JpaRepository {
+
+ @Query("SELECT co FROM CustomerOrder co ORDER BY co.orderId")
+ List findAllOrders();
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/LineItemRepository.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/LineItemRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..00db63afc81865275aa696b9bb32f10d8184025b
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/LineItemRepository.java
@@ -0,0 +1,29 @@
+package com.example.orderspring.repository;
+
+import com.example.orderspring.entity.LineItem;
+import com.example.orderspring.entity.LineItemKey;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.jpa.repository.Modifying;
+import org.springframework.data.repository.query.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface LineItemRepository extends JpaRepository {
+
+ @Query("SELECT l FROM LineItem l")
+ List findAllLineItems();
+
+ @Query("SELECT l FROM LineItem l WHERE l.customerOrder.orderId = :orderId ORDER BY l.itemId")
+ List findLineItemsByOrderId(@Param("orderId") Integer orderId);
+
+ @Query("SELECT DISTINCT l FROM LineItem l WHERE l.itemId = :itemId AND l.customerOrder.orderId = :orderId")
+ LineItem findLineItemById(@Param("itemId") int itemId, @Param("orderId") Integer orderId);
+
+ @Modifying(clearAutomatically = true, flushAutomatically = true)
+ @Query("DELETE FROM LineItem l WHERE l.customerOrder.orderId = :orderId")
+ void deleteAllByOrderId(@Param("orderId") Integer orderId);
+
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/PartRepository.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/PartRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..bced8c54643e4b6d5528627c9185b503934f040c
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/PartRepository.java
@@ -0,0 +1,19 @@
+package com.example.orderspring.repository;
+
+import com.example.orderspring.entity.Part;
+import com.example.orderspring.entity.PartKey;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Optional;
+
+@Repository
+public interface PartRepository extends JpaRepository {
+
+ @Query("SELECT p FROM Part p ORDER BY p.partNumber")
+ List findAllParts();
+
+ Optional findByPartNumberAndRevision(String partNumber, int revision);
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorPartRepository.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorPartRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..b4fdbd73a2e632dc38204b0bed989c218a402bd2
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorPartRepository.java
@@ -0,0 +1,22 @@
+package com.example.orderspring.repository;
+
+import com.example.orderspring.entity.VendorPart;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.repository.query.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface VendorPartRepository extends JpaRepository {
+
+ @Query("SELECT AVG(vp.price) FROM VendorPart vp")
+ Double findAverageVendorPartPrice();
+
+ @Query("SELECT SUM(vp.price) FROM VendorPart vp WHERE vp.vendor.vendorId = :id")
+ Double findTotalVendorPartPricePerVendor(@Param("id") int vendorId);
+
+ @Query("SELECT vp FROM VendorPart vp ORDER BY vp.vendorPartNumber")
+ List findAllVendorParts();
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorRepository.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorRepository.java
new file mode 100644
index 0000000000000000000000000000000000000000..b42552c70501b324554439b72c9cf1f55b297179
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/repository/VendorRepository.java
@@ -0,0 +1,19 @@
+package com.example.orderspring.repository;
+
+import com.example.orderspring.entity.Vendor;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.repository.query.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface VendorRepository extends JpaRepository {
+
+ @Query("SELECT v FROM Vendor v WHERE LOCATE(:name, v.name) > 0")
+ List findVendorsByPartialName(@Param("name") String name);
+
+ @Query("SELECT DISTINCT l.vendorPart.vendor FROM CustomerOrder co, IN(co.lineItems) l WHERE co.orderId = :id ORDER BY l.vendorPart.vendor.name")
+ List findVendorByCustomerOrder(@Param("id") Integer orderId);
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/DataInitializationService.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/DataInitializationService.java
new file mode 100644
index 0000000000000000000000000000000000000000..0910c5cbc61c5018e1d3b7507e0059946cf18b01
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/DataInitializationService.java
@@ -0,0 +1,69 @@
+package com.example.orderspring.service;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.context.event.ApplicationReadyEvent;
+import org.springframework.context.event.EventListener;
+import org.springframework.stereotype.Component;
+import java.io.Serializable;
+import org.springframework.transaction.annotation.Transactional;
+
+@Component
+public class DataInitializationService {
+
+ @Autowired
+ private OrderService orderService;
+
+ @EventListener(ApplicationReadyEvent.class)
+ @Transactional
+ public void onApplicationReady() {
+ createInitialData();
+ }
+
+ private void createInitialData() {
+ // Create parts
+ orderService.createPart("1234-5678-01", 1, "ABC PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ orderService.createPart("9876-4321-02", 2, "DEF PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ orderService.createPart("5456-6789-03", 3, "GHI PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ orderService.createPart("ABCD-XYZW-FF", 5, "XYZ PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+ orderService.createPart("SDFG-ERTY-BN", 7, "BOM PART",
+ new java.util.Date(), "PARTQWERTYUIOPASXDCFVGBHNJMKL", null);
+
+ // Add parts to bill of materials
+ orderService.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "1234-5678-01", 1);
+ orderService.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "9876-4321-02", 2);
+ orderService.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "5456-6789-03", 3);
+ orderService.addPartToBillOfMaterial("SDFG-ERTY-BN", 7, "ABCD-XYZW-FF", 5);
+
+ // Create vendors
+ orderService.createVendor(100, "WidgetCorp",
+ "111 Main St., Anytown, KY 99999", "Mr. Jones",
+ "888-777-9999");
+ orderService.createVendor(200, "Gadget, Inc.",
+ "123 State St., Sometown, MI 88888", "Mrs. Smith",
+ "866-345-6789");
+
+ // Create vendor parts
+ orderService.createVendorPart("1234-5678-01", 1, "PART1", 100.00, 100);
+ orderService.createVendorPart("9876-4321-02", 2, "PART2", 10.44, 200);
+ orderService.createVendorPart("5456-6789-03", 3, "PART3", 76.23, 200);
+ orderService.createVendorPart("ABCD-XYZW-FF", 5, "PART4", 55.19, 100);
+ orderService.createVendorPart("SDFG-ERTY-BN", 7, "PART5", 345.87, 100);
+
+ // Create orders
+ Integer orderId = 1111;
+ orderService.createOrder(orderId, 'N', 10, "333 New Court, New City, CA 90000");
+ orderService.addLineItem(orderId, "1234-5678-01", 1, 3);
+ orderService.addLineItem(orderId, "9876-4321-02", 2, 5);
+ orderService.addLineItem(orderId, "ABCD-XYZW-FF", 5, 7);
+
+ orderId = 4312;
+ orderService.createOrder(orderId, 'N', 0, "333 New Court, New City, CA 90000");
+ orderService.addLineItem(orderId, "SDFG-ERTY-BN", 7, 1);
+ orderService.addLineItem(orderId, "ABCD-XYZW-FF", 5, 3);
+ orderService.addLineItem(orderId, "1234-5678-01", 1, 15);
+ }
+}
diff --git a/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/OrderService.java b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/OrderService.java
new file mode 100644
index 0000000000000000000000000000000000000000..4d441c315b6084cdb37c85378cdea8c2d6613aa5
--- /dev/null
+++ b/benchmark/persistence/order/spring/src/main/java/com/example/orderspring/service/OrderService.java
@@ -0,0 +1,294 @@
+package com.example.orderspring.service;
+
+import com.example.orderspring.entity.*;
+import com.example.orderspring.repository.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+@Service
+@Transactional
+public class OrderService {
+
+ @Autowired
+ private PartRepository partRepository;
+
+ @Autowired
+ private CustomerOrderRepository customerOrderRepository;
+
+ @Autowired
+ private VendorRepository vendorRepository;
+
+ @Autowired
+ private VendorPartRepository vendorPartRepository;
+
+ @Autowired
+ private LineItemRepository lineItemRepository;
+
+ private static final Logger logger = Logger.getLogger("order.service.OrderService");
+
+ public void createPart(String partNumber, int revision, String description,
+ java.util.Date revisionDate, String specification, Serializable drawing) {
+ try {
+ Part part = new Part(partNumber, revision, description, revisionDate, specification, drawing);
+ logger.log(Level.INFO, "Created part {0}-{1}", new Object[]{partNumber, revision});
+ partRepository.save(part);
+ logger.log(Level.INFO, "Persisted part {0}-{1}", new Object[]{partNumber, revision});
+ } catch (Exception ex) {
+ logger.log(Level.SEVERE, "Error creating part", ex);
+ throw new RuntimeException(ex.getMessage());
+ }
+ }
+
+ public List getAllParts() {
+ return partRepository.findAllParts();
+ }
+
+ public void addPartToBillOfMaterial(String bomPartNumber, int bomRevision,
+ String partNumber, int revision) {
+ logger.log(Level.INFO, "BOM part number: {0}", bomPartNumber);
+ logger.log(Level.INFO, "BOM revision: {0}", bomRevision);
+ logger.log(Level.INFO, "Part number: {0}", partNumber);
+ logger.log(Level.INFO, "Part revision: {0}", revision);
+ try {
+ PartKey bomKey = new PartKey();
+ bomKey.setPartNumber(bomPartNumber);
+ bomKey.setRevision(bomRevision);
+
+ Part bom = partRepository.findByPartNumberAndRevision(bomPartNumber, bomRevision).orElse(null);
+ if (bom != null) {
+ logger.log(Level.INFO, "BOM Part found: {0}", bom.getPartNumber());
+
+ Part part = partRepository.findByPartNumberAndRevision(partNumber, revision).orElse(null);
+ if (part != null) {
+ logger.log(Level.INFO, "Part found: {0}", part.getPartNumber());
+ bom.getParts().add(part);
+ part.setBomPart(bom);
+ partRepository.save(bom);
+ partRepository.save(part);
+ }
+ }
+ } catch (Exception e) {
+ logger.log(Level.SEVERE, "Error adding part to BOM", e);
+ }
+ }
+
+ public void createVendor(int vendorId, String name, String address, String contact, String phone) {
+ try {
+ Vendor vendor = new Vendor(vendorId, name, address, contact, phone);
+ vendorRepository.save(vendor);
+ } catch (Exception e) {
+ logger.log(Level.SEVERE, "Error creating vendor", e);
+ throw new RuntimeException(e);
+ }
+ }
+
+ public void createVendorPart(String partNumber, int revision, String description,
+ double price, int vendorId) {
+ try {
+ Part part = partRepository.findByPartNumberAndRevision(partNumber, revision).orElse(null);
+ if (part != null) {
+ VendorPart vendorPart = new VendorPart(description, price, part);
+ vendorPartRepository.save(vendorPart);
+
+ Vendor vendor = vendorRepository.findById(vendorId).orElse(null);
+ if (vendor != null) {
+ vendor.addVendorPart(vendorPart);
+ vendorPart.setVendor(vendor);
+ vendorRepository.save(vendor);
+ vendorPartRepository.save(vendorPart);
+ }
+ }
+ } catch (Exception e) {
+ logger.log(Level.SEVERE, "Error creating vendor part", e);
+ throw new RuntimeException(e.getMessage());
+ }
+ }
+
+ @Transactional
+ public void createOrder(Integer orderId, char status, int discount, String shipmentInfo) {
+ if (orderId == null) throw new IllegalArgumentException("Order ID is required");
+ if (customerOrderRepository.existsById(orderId)) {
+ throw new IllegalStateException("Order ID " + orderId + " already exists");
+ }
+ customerOrderRepository.save(new CustomerOrder(orderId, status, discount, shipmentInfo));
+ }
+
+ public List getOrders() {
+ try {
+ return customerOrderRepository.findAllOrders();
+ } catch (Exception e) {
+ logger.log(Level.SEVERE, "Error getting orders", e);
+ throw new RuntimeException(e.getMessage());
+ }
+ }
+
+ public void addLineItem(Integer orderId, String partNumber, int revision, int quantity) {
+ try {
+ CustomerOrder order = customerOrderRepository.findById(orderId).orElse(null);
+ if (order != null) {
+ logger.log(Level.INFO, "Found order ID {0}", orderId);
+
+ Part part = partRepository.findByPartNumberAndRevision(partNumber, revision).orElse(null);
+ if (part != null && part.getVendorPart() != null) {
+ LineItem lineItem = new LineItem(order, quantity, part.getVendorPart());
+ order.addLineItem(lineItem);
+ lineItemRepository.save(lineItem);
+ customerOrderRepository.save(order);
+ }
+ }
+ } catch (Exception e) {
+ logger.log(Level.WARNING, "Couldn't add {0} to order ID {1}.", new Object[]{partNumber, orderId});
+ throw new RuntimeException(e.getMessage());
+ }
+ }
+
+ public double getBillOfMaterialPrice(String bomPartNumber, int bomRevision,
+ String partNumber, int revision) {
+ double price = 0.0;
+ try {
+ Part bom = partRepository.findByPartNumberAndRevision(bomPartNumber, bomRevision).orElse(null);
+ if (bom != null) {
+ Collection