fix: Resolve mvn command not found error in CI workflow

- Replace 'mvn' commands with './mvnw' in CI workflow
- Add chmod +x ./mvnw step to make Maven wrapper executable
- Add cache: maven to Java setup step for better caching
- Update troubleshooting scripts to use correct port 40047
- Update documentation to reflect port change

This fixes the 'mvn: command not found' error by ensuring
all Maven commands use the Maven wrapper (mvnw) which is
included in the project and doesn't require Maven to be
pre-installed on the runner.
This commit is contained in:
GSRN
2025-09-15 17:16:13 +02:00
parent e787aa64a3
commit 8c9ffb50ce
4 changed files with 15 additions and 11 deletions

View File

@@ -104,8 +104,8 @@ fix_cache_issues() {
HOST_IP=$(detect_host_ip)
# Set proper environment variables
export ACTIONS_CACHE_URL="http://${HOST_IP}:44029/"
export ACTIONS_RUNTIME_URL="http://${HOST_IP}:44029/"
export ACTIONS_CACHE_URL="http://${HOST_IP}:40047/"
export ACTIONS_RUNTIME_URL="http://${HOST_IP}:40047/"
echo "✅ Cache directory created and configured"
echo "✅ Environment variables set with host IP: $HOST_IP"
@@ -154,7 +154,7 @@ test_cache() {
# Try to restore (this will fail but we can check the error)
echo " Testing cache restore..."
if curl -s "http://host.docker.internal:44029/cache/$TEST_KEY" > /dev/null 2>&1; then
if curl -s "http://${HOST_IP}:40047/cache/$TEST_KEY" > /dev/null 2>&1; then
echo "✅ Cache service responding"
else
echo "❌ Cache service not responding"