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
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
I assume you would like to add that dependency to an existing POM, so the answer is no.
I'm not aware of any plugin doing this (apart from the m2eclipse wizard but that's not what you're asking for). This would be a nice addition to the dependency plugin (in the spirit of dependency:get
) though. You should suggest to add the feature: http://jira.codehaus.org/browse/MDEP (I did a quick search but couldn't find something close).