diff --git a/labs/unicorn-location-api/UnicornLocationFunction/pom.xml b/labs/unicorn-location-api/UnicornLocationFunction/pom.xml
index 4fc239e63..42e40f925 100644
--- a/labs/unicorn-location-api/UnicornLocationFunction/pom.xml
+++ b/labs/unicorn-location-api/UnicornLocationFunction/pom.xml
@@ -27,7 +27,7 @@
org.junit.jupiter
junit-jupiter
- 5.13.1
+ 6.1.2
test
diff --git a/labs/unicorn-location-api/final/unicorn-location-api-final/Dockerfile b/labs/unicorn-location-api/final/unicorn-location-api-final/Dockerfile
index 99835307b..d7f82284a 100644
--- a/labs/unicorn-location-api/final/unicorn-location-api-final/Dockerfile
+++ b/labs/unicorn-location-api/final/unicorn-location-api-final/Dockerfile
@@ -8,13 +8,13 @@ RUN yum -y update \
&& rm -rf /var/cache/yum
# Graal VM
-ENV GRAAL_VERSION 21.0.2
+ENV GRAAL_VERSION 25.0.2
ENV GRAAL_FILENAME graalvm-community-jdk-${GRAAL_VERSION}_linux-x64_bin.tar.gz
RUN curl -4 -L https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${GRAAL_VERSION}/${GRAAL_FILENAME} | tar -xvz
RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
# Maven
-ENV MVN_VERSION 3.9.11
+ENV MVN_VERSION 3.9.14
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz
diff --git a/labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction/pom.xml b/labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction/pom.xml
index 5a1c3aed4..9e5d1f19f 100644
--- a/labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction/pom.xml
+++ b/labs/unicorn-location-api/final/unicorn-location-api-final/UnicornLocationFunction/pom.xml
@@ -17,7 +17,7 @@
software.amazon.awssdk
dynamodb
- 2.31.50
+ 2.47.5
software.amazon.awssdk
@@ -32,12 +32,12 @@
software.amazon.awssdk
aws-crt-client
- 2.31.50
+ 2.47.5
com.amazonaws
aws-lambda-java-runtime-interface-client
- 2.8.6
+ 2.10.1
com.amazonaws
@@ -47,19 +47,19 @@
org.slf4j
slf4j-api
- 2.0.17
+ 2.0.18
com.fasterxml.jackson.jr
jackson-jr-objects
- 2.19.1
+ 2.22.1
org.slf4j
slf4j-simple
- 2.0.17
+ 2.0.18
@@ -70,7 +70,7 @@
org.junit.jupiter
junit-jupiter
- 5.13.1
+ 6.1.2
test
@@ -83,7 +83,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.6.0
+ 3.6.2
package
@@ -104,7 +104,7 @@
org.graalvm.buildtools
native-maven-plugin
- 0.11.2
+ 1.1.4
true
diff --git a/labs/unicorn-location-api/graal/Dockerfile b/labs/unicorn-location-api/graal/Dockerfile
index 9cf1b043b..9f1b6eadc 100644
--- a/labs/unicorn-location-api/graal/Dockerfile
+++ b/labs/unicorn-location-api/graal/Dockerfile
@@ -8,13 +8,13 @@ RUN yum -y update \
&& rm -rf /var/cache/yum
# Graal VM
-ENV GRAAL_VERSION 21.0.2
+ENV GRAAL_VERSION 25.0.2
ENV GRAAL_FILENAME graalvm-community-jdk-${GRAAL_VERSION}_linux-x64_bin.tar.gz
RUN curl -4 -L https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${GRAAL_VERSION}/${GRAAL_FILENAME} | tar -xvz
RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
# Maven
-ENV MVN_VERSION 3.9.11
+ENV MVN_VERSION 3.9.14
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz
diff --git a/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/jni-config.json b/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/jni-config.json
index 83de2b51b..67ad512e3 100644
--- a/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/jni-config.json
+++ b/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/jni-config.json
@@ -5,7 +5,7 @@
},
{
"name":"com.amazonaws.services.lambda.runtime.api.client.runtimeapi.dto.InvocationRequest",
- "fields":[{"name":"id"}, {"name":"invokedFunctionArn"}, {"name":"deadlineTimeInMs"}, {"name":"xrayTraceId"}, {"name":"clientContext"}, {"name":"cognitoIdentity"}, {"name":"content"}],
+ "fields":[{"name":"id"}, {"name":"invokedFunctionArn"}, {"name":"deadlineTimeInMs"}, {"name":"xrayTraceId"}, {"name":"clientContext"}, {"name":"cognitoIdentity"}, {"name":"content"}, {"name":"tenantId"}],
"allPublicMethods":true
},
{
diff --git a/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/reflect-config.json b/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/reflect-config.json
index defdb8bd1..e2345c465 100644
--- a/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/reflect-config.json
+++ b/labs/unicorn-location-api/graal/resources/META-INF/native-image/com.amazonaws/aws-lambda-java-runtime-interface-client/reflect-config.json
@@ -28,7 +28,8 @@
},
{
"name":"com.amazonaws.services.lambda.runtime.api.client.runtimeapi.dto.InvocationRequest",
- "fields":[{"name":"id"}, {"name":"invokedFunctionArn"}, {"name":"deadlineTimeInMs"}, {"name":"xrayTraceId"}, {"name":"clientContext"}, {"name":"cognitoIdentity"}, {"name":"content"}],
- "allPublicMethods":true
+ "fields":[{"name":"id"}, {"name":"invokedFunctionArn"}, {"name":"deadlineTimeInMs"}, {"name":"xrayTraceId"}, {"name":"clientContext"}, {"name":"cognitoIdentity"}, {"name":"content"}, {"name":"tenantId"}],
+ "allPublicMethods":true,
+ "unsafeAllocated":true
}
]
\ No newline at end of file
diff --git a/labs/unicorn-stock-broker/pom.xml b/labs/unicorn-stock-broker/pom.xml
index dc45985e0..ec4431ee6 100644
--- a/labs/unicorn-stock-broker/pom.xml
+++ b/labs/unicorn-stock-broker/pom.xml
@@ -4,7 +4,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.0
+ 4.1.0
com.unicorn
UnicornStockBroker
@@ -16,8 +16,8 @@
25
UTF-8
UTF-8
- 2025.0.0
- 2.31.50
+ 2025.1.2
+ 2.47.5
@@ -40,7 +40,7 @@
com.amazonaws.serverless
aws-serverless-java-container-spring
- 2.1.5
+ 3.0.2
@@ -83,7 +83,7 @@
org.crac
crac
- 1.4.0
+ 1.5.0
com.amazonaws
@@ -93,17 +93,17 @@
org.slf4j
slf4j-api
- 2.0.17
+ 2.0.18
org.slf4j
slf4j-simple
- 2.0.17
+ 2.0.18
org.junit.jupiter
junit-jupiter
- 5.13.1
+ 6.1.2
test
diff --git a/labs/unicorn-store/.mvn/wrapper/maven-wrapper.properties b/labs/unicorn-store/.mvn/wrapper/maven-wrapper.properties
index d58dfb70b..216df0589 100644
--- a/labs/unicorn-store/.mvn/wrapper/maven-wrapper.properties
+++ b/labs/unicorn-store/.mvn/wrapper/maven-wrapper.properties
@@ -1,19 +1,3 @@
-# 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.
-wrapperVersion=3.3.2
+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
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
diff --git a/labs/unicorn-store/infrastructure/cdk/pom.xml b/labs/unicorn-store/infrastructure/cdk/pom.xml
index 12be06762..e0158ff83 100644
--- a/labs/unicorn-store/infrastructure/cdk/pom.xml
+++ b/labs/unicorn-store/infrastructure/cdk/pom.xml
@@ -10,8 +10,8 @@
UTF-8
UTF-8
- 2.225.0
- 5.13.1
+ 2.261.0
+ 6.1.2
@@ -19,17 +19,17 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.14.0
+ 3.15.0
- 17
- 17
+ 25
+ 25
org.codehaus.mojo
exec-maven-plugin
- 3.6.2
+ 3.6.3
com.unicorn.UnicornStoreApp
@@ -48,7 +48,7 @@
io.github.cdklabs
cdknag
- 2.37.55
+ 3.0.2
diff --git a/labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java b/labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java
index e7d3fe7e7..ac99980b4 100644
--- a/labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java
+++ b/labs/unicorn-store/infrastructure/cdk/src/main/java/com/unicorn/UnicornStoreApp.java
@@ -1,6 +1,6 @@
package com.unicorn;
-import java.util.List;
+import java.util.HashMap;
import com.unicorn.alternatives.UnicornAuditService;
import com.unicorn.alternatives.UnicornStoreMicronaut;
@@ -9,11 +9,8 @@
import com.unicorn.core.InfrastructureStack;
import io.github.cdklabs.cdknag.AwsSolutionsChecks;
-import io.github.cdklabs.cdknag.NagPackSuppression;
-import io.github.cdklabs.cdknag.NagSuppressions;
-import software.amazon.awscdk.App;
-import software.amazon.awscdk.Aspects;
-import software.amazon.awscdk.StackProps;
+import io.github.cdklabs.cdknag.NagPackProps;
+import software.amazon.awscdk.*;
public class UnicornStoreApp {
@@ -23,50 +20,54 @@ public static void main(final String[] args) {
var infrastructureStack = new InfrastructureStack(app, "UnicornStoreInfrastructure", StackProps.builder()
.build());
- var unicornStoreSpring = new UnicornStoreStack(app, "UnicornStoreSpringApp", StackProps.builder()
+ new UnicornStoreStack(app, "UnicornStoreSpringApp", StackProps.builder()
.build(), infrastructureStack);
- var unicornStoreMicronaut = new UnicornStoreMicronaut(app, "UnicornStoreMicronautApp", StackProps.builder()
+ new UnicornStoreMicronaut(app, "UnicornStoreMicronautApp", StackProps.builder()
.build(), infrastructureStack);
- var unicornStoreSpringGraalVM = new UnicornStoreSpringGraalVM(app, "UnicornStoreSpringGraalVMApp", StackProps.builder()
+ new UnicornStoreSpringGraalVM(app, "UnicornStoreSpringGraalVMApp", StackProps.builder()
.build(), infrastructureStack);
- var unicornStoreQuarkus = new UnicornStoreQuarkus(app, "UnicornStoreQuarkusApp", StackProps.builder()
+ new UnicornStoreQuarkus(app, "UnicornStoreQuarkusApp", StackProps.builder()
.build(), infrastructureStack);
- var unicornAuditService = new UnicornAuditService(app, "UnicornAuditServiceApp", StackProps.builder()
+ new UnicornAuditService(app, "UnicornAuditServiceApp", StackProps.builder()
.build(), infrastructureStack);
-
//Add CDK-NAG checks: https://github.com/cdklabs/cdk-nag
+ Validations.of(app).addPlugins(new AwsSolutionsChecks(app,
+ NagPackProps.builder().writeSuppressionsToCloudFormation(true).build()));
+
//Add suppression to exclude certain findings that are not needed for Workshop environment
- Aspects.of(app).add(new AwsSolutionsChecks());
- var suppression = List.of(
- new NagPackSuppression.Builder().id("AwsSolutions-APIG4").reason("The workshop environment does not require API-Gateway authorization").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-COG4").reason("The workshop environment does not require Cognito User Pool authorization").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-RDS3").reason("Workshop environment does not need a Multi-AZ setup to reduce cost").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-IAM4").reason("AWS Managed policies are acceptable for the workshop").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-IAM5").reason("A wildcard is acceptable for this workshop to allow parallel creation of resources").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-RDS10").reason("Workshop environment is ephemeral and the database should be deleted by the end of the workshop").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-RDS11").reason("Database is in a private subnet and can use the default port").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-APIG2").reason("API Gateway request validation is not needed for workshop").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-APIG1").reason("API Gateway access logging not needed for workshop setup").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-APIG6").reason("API Gateway access logging not needed for workshop setup").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-VPC7").reason("Workshop environment does not need VPC flow logs").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-SMG4").reason("Ephemeral workshop environment does not need to rotate secrets").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-RDS2").reason("Workshop non-sensitive test database does not need encryption at rest").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-APIG3").reason("Workshop API Gateways do not need AWS WAF assigned").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-EC23").reason("Not needed").build(),
- new NagPackSuppression.Builder().id("AwsSolutions-RDS13").reason("Workshop Database does not need backups").build()
+ Validations.of(app).acknowledge(
+ new Acknowledgment.Builder().id("AwsSolutions-APIG4").reason("The workshop environment does not require API-Gateway authorization").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-COG4").reason("The workshop environment does not require Cognito User Pool authorization").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-RDS3").reason("Workshop environment does not need a Multi-AZ setup to reduce cost").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-RDS10").reason("Workshop environment is ephemeral and the database should be deleted by the end of the workshop").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-RDS11").reason("Database is in a private subnet and can use the default port").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-APIG2").reason("API Gateway request validation is not needed for workshop").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-APIG1").reason("API Gateway access logging not needed for workshop setup").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-APIG6").reason("API Gateway access logging not needed for workshop setup").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-VPC7").reason("Workshop environment does not need VPC flow logs").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-SMG4").reason("Ephemeral workshop environment does not need to rotate secrets").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-RDS2").reason("Workshop non-sensitive test database does not need encryption at rest").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-APIG3").reason("Workshop API Gateways do not need AWS WAF assigned").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-EC23").reason("Not needed").build(),
+ new Acknowledgment.Builder().id("AwsSolutions-RDS13").reason("Workshop Database does not need backups").build(),
+ new Acknowledgment.Builder().id("CdkNagValidationFailure").reason("Suppress warnings see: https://github.com/cdklabs/cdk-nag/issues/817").build()
);
- NagSuppressions.addStackSuppressions(infrastructureStack, suppression);
- NagSuppressions.addStackSuppressions(unicornStoreSpring, suppression);
- NagSuppressions.addStackSuppressions(unicornStoreMicronaut, suppression);
- NagSuppressions.addStackSuppressions(unicornStoreSpringGraalVM, suppression);
- NagSuppressions.addStackSuppressions(unicornStoreQuarkus, suppression);
- NagSuppressions.addStackSuppressions(unicornAuditService, suppression);
+ // Suppress parameterized IAM findings directly via metadata
+ // (Validations.acknowledge() rejects IDs containing '::' due to CDK delimiter validation bug)
+ var iamSuppressions = new HashMap();
+ iamSuppressions.put("AwsSolutions-IAM4", "AWS Managed policies are acceptable for the workshop");
+ iamSuppressions.put("AwsSolutions-IAM5", "A wildcard is acceptable for this workshop to allow parallel creation of resources");
+ iamSuppressions.put("AwsSolutions-IAM4[Policy::arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole]", "AWS Managed policies are acceptable for the workshop");
+ iamSuppressions.put("AwsSolutions-IAM4[Policy::arn::iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole]", "AWS Managed policies are acceptable for the workshop");
+ iamSuppressions.put("AwsSolutions-IAM4[Policy::arn::iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs]", "AWS Managed policies are acceptable for the workshop");
+ iamSuppressions.put("AwsSolutions-IAM5[Resource::arn:aws:secretsmanager:*:*:secret:unicornstore-db-secret-*]", "A wildcard is acceptable for this workshop");
+ app.getNode().addMetadata(Validations.ACKNOWLEDGED_RULES_METADATA_KEY, iamSuppressions);
app.synth();
}
diff --git a/labs/unicorn-store/infrastructure/db-setup/pom.xml b/labs/unicorn-store/infrastructure/db-setup/pom.xml
index ea748de18..cab6ded04 100644
--- a/labs/unicorn-store/infrastructure/db-setup/pom.xml
+++ b/labs/unicorn-store/infrastructure/db-setup/pom.xml
@@ -8,7 +8,7 @@
AWS Lambda function to setup the Amazon RDS Instance
- 2.31.50
+ 2.47.5
@@ -45,7 +45,7 @@
org.postgresql
postgresql
- 42.7.7
+ 42.7.13
com.amazonaws
@@ -60,17 +60,17 @@
org.slf4j
slf4j-api
- 2.0.17
+ 2.0.18
org.slf4j
slf4j-simple
- 2.0.17
+ 2.0.18
com.fasterxml.jackson.jr
jackson-jr-objects
- 2.19.1
+ 2.22.1
@@ -79,7 +79,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.6.0
+ 3.6.2
db-setup
@@ -96,7 +96,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.14.0
+ 3.15.0
17
17
diff --git a/labs/unicorn-store/mvnw b/labs/unicorn-store/mvnw
index 19529ddf8..bd8896bf2 100755
--- a/labs/unicorn-store/mvnw
+++ b/labs/unicorn-store/mvnw
@@ -19,7 +19,7 @@
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
-# Apache Maven Wrapper startup batch script, version 3.3.2
+# Apache Maven Wrapper startup batch script, version 3.3.4
#
# Optional ENV vars
# -----------------
@@ -105,14 +105,17 @@ trim() {
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 <"${0%/*}/.mvn/wrapper/maven-wrapper.properties"
-[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties"
+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.*)
@@ -130,7 +133,7 @@ maven-mvnd-*bin.*)
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
;;
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
-*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
+*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
esac
# apply MVNW_REPOURL and calculate MAVEN_HOME
@@ -227,7 +230,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
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
+ if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
distributionSha256Result=true
fi
elif command -v shasum >/dev/null; then
@@ -252,8 +255,41 @@ if command -v unzip >/dev/null; then
else
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
fi
-printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url"
-mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
+
+# 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/labs/unicorn-store/mvnw.cmd b/labs/unicorn-store/mvnw.cmd
index 249bdf382..92450f932 100644
--- a/labs/unicorn-store/mvnw.cmd
+++ b/labs/unicorn-store/mvnw.cmd
@@ -19,7 +19,7 @@
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
-@REM Apache Maven Wrapper startup batch script, version 3.3.2
+@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
@@ -40,7 +40,7 @@
@SET __MVNW_ARG0_NAME__=
@SET MVNW_USERNAME=
@SET MVNW_PASSWORD=
-@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*)
+@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
@echo Cannot start maven from wrapper >&2 && exit /b 1
@GOTO :EOF
: end batch / begin powershell #>
@@ -73,16 +73,30 @@ switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
# 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) { "/org/apache/maven/" } else { "/maven/mvnd/" }
- $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')"
+ $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_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
+
+$MAVEN_M2_PATH = "$HOME/.m2"
if ($env:MAVEN_USER_HOME) {
- $MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain"
+ $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_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
+
+$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) {
@@ -134,7 +148,33 @@ if ($distributionSha256Sum) {
# unzip and move
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
-Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | 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 {
diff --git a/labs/unicorn-store/software/alternatives/unicorn-audit-service/pom.xml b/labs/unicorn-store/software/alternatives/unicorn-audit-service/pom.xml
index 93e2fce2f..783af6fa9 100644
--- a/labs/unicorn-store/software/alternatives/unicorn-audit-service/pom.xml
+++ b/labs/unicorn-store/software/alternatives/unicorn-audit-service/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.0
+ 4.1.0
com.unicorn
@@ -34,7 +34,7 @@
software.amazon.awssdk
dynamodb
- 2.31.50
+ 2.47.5
software.amazon.awssdk
@@ -49,7 +49,7 @@
software.amazon.awssdk
aws-crt-client
- 2.31.50
+ 2.47.5
com.amazonaws
@@ -63,7 +63,7 @@
org.springframework.cloud
spring-cloud-dependencies
- 2025.0.0
+ 2025.1.2
pom
import
diff --git a/labs/unicorn-store/software/alternatives/unicorn-store-micronaut/pom.xml b/labs/unicorn-store/software/alternatives/unicorn-store-micronaut/pom.xml
index 3bd382655..2872b7f1f 100644
--- a/labs/unicorn-store/software/alternatives/unicorn-store-micronaut/pom.xml
+++ b/labs/unicorn-store/software/alternatives/unicorn-store-micronaut/pom.xml
@@ -10,7 +10,7 @@
io.micronaut.platform
micronaut-parent
- 4.10.0
+ 5.0.4
jar
@@ -19,7 +19,7 @@
true
com.unicorn.store.aot.generated
lambda
- 3.11.0
+ 3.15.0
UTF-8
UTF-8
@@ -29,7 +29,7 @@
software.amazon.awssdk
bom
- 2.31.50
+ 2.47.5
pom
import
@@ -90,7 +90,7 @@
jakarta.persistence
jakarta.persistence-api
- 3.1.0
+ 3.2.0
org.postgresql
diff --git a/labs/unicorn-store/software/alternatives/unicorn-store-quarkus/pom.xml b/labs/unicorn-store/software/alternatives/unicorn-store-quarkus/pom.xml
index 3ada64c1e..be0095e94 100644
--- a/labs/unicorn-store/software/alternatives/unicorn-store-quarkus/pom.xml
+++ b/labs/unicorn-store/software/alternatives/unicorn-store-quarkus/pom.xml
@@ -7,13 +7,13 @@
1.0.0
- 3.14.0
+ 3.15.0
true
25
25
UTF-8
UTF-8
- 3.24.3
+ 3.37.2
@@ -21,7 +21,7 @@
software.amazon.awssdk
bom
- 2.31.50
+ 2.47.5
pom
import
@@ -72,7 +72,7 @@
org.crac
crac
- 1.4.0
+ 1.5.0
diff --git a/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/Dockerfile b/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/Dockerfile
index 6ace2c52c..159e94ac8 100644
--- a/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/Dockerfile
+++ b/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/Dockerfile
@@ -8,13 +8,13 @@ RUN yum -y update \
&& rm -rf /var/cache/yum
# Graal VM
-ENV GRAAL_VERSION 21.0.2
+ENV GRAAL_VERSION 25.0.2
ENV GRAAL_FILENAME graalvm-community-jdk-${GRAAL_VERSION}_linux-x64_bin.tar.gz
RUN curl -4 -L https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${GRAAL_VERSION}/${GRAAL_FILENAME} | tar -xvz
RUN mv graalvm-community-openjdk-${GRAAL_VERSION}* /usr/lib/graalvm
# Maven
-ENV MVN_VERSION 3.9.9
+ENV MVN_VERSION 3.9.14
ENV MVN_FOLDERNAME apache-maven-${MVN_VERSION}
ENV MVN_FILENAME apache-maven-${MVN_VERSION}-bin.tar.gz
RUN curl -4 -L https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/${MVN_FILENAME} | tar -xvz
diff --git a/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/pom.xml b/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/pom.xml
index 830f0a6fd..3014c140e 100644
--- a/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/pom.xml
+++ b/labs/unicorn-store/software/alternatives/unicorn-store-spring-graalvm/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.0
+ 4.1.0
com.unicorn
@@ -32,7 +32,7 @@
software.amazon.awssdk
eventbridge
- 2.31.50
+ 2.47.5
software.amazon.awssdk
@@ -47,7 +47,7 @@
software.amazon.awssdk
aws-crt-client
- 2.31.50
+ 2.47.5
@@ -59,7 +59,7 @@
org.postgresql
postgresql
- 42.7.7
+ 42.7.13
@@ -79,7 +79,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.6.0
+ 3.6.2
false
true
diff --git a/labs/unicorn-store/software/unicorn-store-spring/pom.xml b/labs/unicorn-store/software/unicorn-store-spring/pom.xml
index 9c7a6b13a..741e0ee15 100644
--- a/labs/unicorn-store/software/unicorn-store-spring/pom.xml
+++ b/labs/unicorn-store/software/unicorn-store-spring/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 3.5.0
+ 4.1.0
com.unicorn
@@ -28,10 +28,14 @@
org.springframework.boot
spring-boot-starter-web
+
+ org.springframework.boot
+ spring-boot-jackson2
+
software.amazon.awssdk
eventbridge
- 2.31.50
+ 2.47.5
software.amazon.awssdk
@@ -46,7 +50,7 @@
software.amazon.awssdk
aws-crt-client
- 2.31.50
+ 2.47.5
@@ -64,13 +68,13 @@
jakarta.persistence
jakarta.persistence-api
- 3.1.0
+ 3.2.0
org.postgresql
postgresql
- 42.7.7
+ 42.7.13
@@ -79,7 +83,7 @@
org.apache.maven.plugins
maven-shade-plugin
- 3.6.0
+ 3.6.2
false