Is there a Maven command or plugin that I can use to add a POM dependency from the command line?
For example, I want to print something like:
mvn lazy:add-dependency -DgroupId=com.mycompany -DartifactId=derp -Dversion=1.0
and change the POM dependency section in the current directory:
<dependencies> ... other dependencies ... <dependency> <groupId>com.mycompany</groupId> <artifactId>derp</artifactId> <version>1.0</version> </dependency> </dependencies>
An external command to add the above XML will also work, but I would prefer that I don't write me an XSL stylesheet.
matts source share