The following adds the correct SCM element to child POMs when they don't match the Maven SCM inheritence conventions:
| Code Block |
|---|
grep -L '<scm>' */pom.xml | while read t1; do module=`echo $t1 | sed 's/\/pom.xml//'`; cat $t1 | sed 's#</project># <scm> \
<connection>scm:svn:http://svn.codehaus.org/plexus/$module/trunk/</connection>\
<developerConnection>scm:svn:https://svn.codehaus.org/plexus/$module/trunk</developerConnection> \
<url>http://fisheye.codehaus.org/browse/plexus/$module/trunk/</url>\
</scm>\
</project>#' | sed "s/\$module/$module/g" >$t1.tmp; mv $t1.tmp $t1; done
|
Replace the URLs in each line with the appropriate URL to add.
