Add dependency to existing pom.xml via shell
08:30 29 Apr 2010

Is there a way to add dependencies to an existing pom.xml via shell script?

Something like:

mvn dependency:add -DgroupID=com.acme -DartifactId=project

[Update] Clarified that I want to add to an existing pom

java shell maven-2 dependencies command-line-interface