I use this script to check all projects for outdated maven dependency

I use this script to check all projects for outdated maven dependency

2016/01/12 Programming 0

I use this script to check all projects for outdated maven dependency

/Users/peter/workspace>cat checkVersion.sh 
#!/bin/bash

find . -name "pom.xml" -maxdepth 2| while read a; do
	echo $a;
	#version=`cat $a | grep version|head -1|sed 's/<[^>]*>//' |sed 's/<\/[^>]*>//'`
	#groupId=`cat $a | grep groupId| head -1|sed 's/<[^>]*>//' |sed 's/<\/[^>]*>//'`
	cd `dirname $a`; mvn versions:display-dependency-updates;
	cd ..
done