I am currently using a sed script:
cd (root folder) first
find . -name pom.xml | xargs sed -i \"//,/\'<\\/dependencies>\'/s
By using XSLT technologies:
STYLESHEET:
$ more pomConvertor.xslt
INPUT:
$ more pom.xml
com.techstack.scheduler
scheduler-service
0.0.9-SNAPSHOT
scheduler-webapp
war
Scheduler Service Web Application
http://maven.apache.org
com.infor.techstack.scheduler
scheduler-service-core
0.0.9-SNAPSHOT
org.slf4j
slf4j-api
1.7.12-SNAPSHOT
provided
com.security.authentication
oauth10a-client
0.0.26-SNAPSHOT
compile
xerces
xerces
OUTPUT:
$ xsltproc pomConvertor.xslt pom.xml
com.techstack.scheduler
scheduler-service
0.0.9-SNAPSHOT
scheduler-webapp
war
Scheduler Service Web Application
http://maven.apache.org
com.infor.techstack.scheduler
scheduler-service-core
0.0.9-SNAPSHOT
org.slf4j
slf4j-api
1.7.12
provided
com.security.authentication
oauth10a-client
0.0.26
compile
xerces
xerces