Files
mavenprobe/build.sh
rattatwinko edd1fbccd9
All checks were successful
Maven Build / build (push) Successful in 10m14s
test
2025-05-22 10:32:02 +02:00

19 lines
496 B
Bash
Executable File

#!/bin/bash
# Universal build script for Maven and Gradle projects
echo "Current directory: $(pwd)"
# Check if Maven is installed
if ! command -v mvn &> /dev/null; then
echo "Maven not found, installing..."
sudo apt-get update
sudo apt-get install -y maven
fi
echo "Maven version: $(mvn --version)"
echo "Building Maven project: mavenprobe"
mvn clean package -f "./pom.xml"
echo "Build complete. Build artifacts should be in their respective target/ or build/libs/ directories."