Add dependency on existing pom.xml via wrapper

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

Sort of:

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

      

[Update] Clarified what I want to add to the existing pom

+2


a source to share


2 answers


I am assuming you would like to add this dependency to the existing POM, so there will be no answer.



+1


a source


I don't know which plugin does this (other than the m2eclipse wizard, but that's not what you are asking for). This would be a nice addition to a dependency plugin (in the spirit ). You should suggest adding this feature: http://jira.codehaus.org/browse/MDEP (I did a quick search but couldn't find anything close). dependency:get



+1


a source







All Articles