oschrenk
oschrenk

Reputation: 4209

Add dependency to existing pom.xml via shell

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

Answers (2)

Pascal Thivent
Pascal Thivent

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

khmarbaise
khmarbaise

Reputation: 97359

I assume you would like to add that dependency to an existing POM, so the answer is no.

Upvotes: 1

Related Questions