This commit is contained in:
18
build.sh
Executable file
18
build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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: security-camera-app"
|
||||
mvn clean package -f "./pom.xml"
|
||||
|
||||
echo "Build complete. Build artifacts should be in their respective target/ or build/libs/ directories."
|
||||
Reference in New Issue
Block a user