Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- { echo "<project><modelVersion>4.0.0</modelVersion><groupId>com.mycompany.app</groupId><artifactId>my-app</artifactId><version>1</version><dependencies>"; mvn dependency:list -DoutputFile=/dev/stdout| tr -d ' ' | grep "^[^\[][^:]*:[^:]" | awk -F "\"*:\"*" '{print "<dependency><groupId>"$1"</groupId>","<artifactId>"$2"</artifactId>","<version>"$4"</version></dependency>"}' -; echo "</dependencies></project>";} | mvn versions:display-dependency-updates -f /dev/stdin
Add Comment
Please, Sign In to add comment