Search Posts

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *