Skip to content

Instantly share code, notes, and snippets.

@bdelacretaz
Created September 14, 2015 12:12
Show Gist options
  • Save bdelacretaz/05fbaa34b45911560816 to your computer and use it in GitHub Desktop.
Save bdelacretaz/05fbaa34b45911560816 to your computer and use it in GitHub Desktop.
pompl script - generates a list of folders for mvn -pl
# Find all pom.xml files under specified path and generate a comma-separated
# list of their folder names, suitable for use with the mvn -pl option
find "$1" -name pom.xml | grep -v '/target/' | xargs -n1 dirname | awk '{ printf $1 "," }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment