Reputation: 4209
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
Upvotes: 2
Views: 873
Reputation: 570295
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).
Upvotes: 1
Reputation: 97359
I assume you would like to add that dependency to an existing POM, so the answer is no.
Upvotes: 1