test 5
Some checks failed
Maven Build / build (push) Failing after 10m31s

now with a building script
This commit is contained in:
rattatwinko
2025-05-10 15:43:08 +02:00
parent 39c516f5dd
commit bb558bab48
2 changed files with 56 additions and 0 deletions

10
build.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Direct build script for Maven project
echo "Current directory: $(pwd)"
echo "Building project with Maven..."
# Run Maven build using the exact pom.xml location
mvn clean package -f "$(pwd)/pom.xml"
echo "Build complete. JAR file should be in target/ directory."

46
debug_build.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
# Debug script for build issues
echo "=== Environment Information ==="
echo "Current directory: $(pwd)"
echo "Java version:"
java -version
echo ""
echo "Maven version:"
mvn --version
echo ""
echo "=== Project structure ==="
find . -type f -name "*.kt" | sort
find . -type f -name "pom.xml"
echo ""
echo "=== Debugging build for MOTD ==="
echo "Changing to directory: "
cd
echo "Current directory: $(pwd)"
echo "Checking for POM file:"
ls -la pom.xml
echo "Checking Kotlin source files:"
find . -type f -name "*.kt" | sort
echo "Compiling Kotlin sources:"
mvn compile
echo "Checking for MOTDGuiHandler class:"
find . -type f -name "MOTDGuiHandler.kt"
grep -r "MOTDGuiHandler" --include="*.kt" .
echo ""
echo "Checking package structure:"
find ./src -type d | sort
echo ""
echo "Checking import statements in MOTDCommand.kt:"
grep -r "import" --include="MOTDCommand.kt" .
echo ""
cd ..