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

@@ -109,8 +109,8 @@ function Fix-CacheIssues {
$hostIP = Get-HostIP
# Set proper environment variables
$env:ACTIONS_CACHE_URL = "http://${hostIP}:44029/"
$env:ACTIONS_RUNTIME_URL = "http://${hostIP}:44029/"
$env:ACTIONS_CACHE_URL = "http://${hostIP}:40047/"
$env:ACTIONS_RUNTIME_URL = "http://${hostIP}:40047/"
Write-Host "✅ Cache directory created and configured" -ForegroundColor Green
Write-Host "✅ Environment variables set with host IP: $hostIP" -ForegroundColor Green
@@ -163,7 +163,7 @@ function Test-CacheFunctionality {
# Try to test cache service (this will fail but we can check the error)
Write-Host " Testing cache service response..." -ForegroundColor Gray
try {
$response = Invoke-WebRequest -Uri "http://host.docker.internal:44029/cache/$testKey" -TimeoutSec 5 -ErrorAction SilentlyContinue
$response = Invoke-WebRequest -Uri "http://${hostIP}:40047/cache/$testKey" -TimeoutSec 5 -ErrorAction SilentlyContinue
Write-Host "✅ Cache service responding" -ForegroundColor Green
} catch {
Write-Host "❌ Cache service not responding: $($_.Exception.Message)" -ForegroundColor Yellow