Verify Maven build or other build system before committing

suggest change

.git/hooks/pre-commit

#!/bin/sh
if [ -s pom.xml ]; then
    echo "Running mvn verify"
    mvn clean verify
    if [ $? -ne 0 ]; then
        echo "Maven build failed"
        exit 1
    fi
fi

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents