Created
September 15, 2016 09:02
-
-
Save rwunsch/f0aabf61ff7333933c1a79af8f1916b6 to your computer and use it in GitHub Desktop.
AEM - compare / diff maven pom files
From: http://stackoverflow.com/questions/15709907/how-can-i-easily-diff-dependencies-between-two-maven-pom-files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# first grab all dependencies | |
mvn dependency:resolve >/dev/null | |
# then list them with -o to keep noise low, | |
# remove extra information and duplicates | |
mvn -o dependency:list \ | |
| grep ":.*:.*:.*" \ | |
| cut -d] -f2- \ | |
| sed 's/:[a-z]*$//g' \ | |
| sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment