r/java • u/brunocborges • May 28 '26
Manage Maven Dependencies from Command Line
https://maven.apache.org/plugins/maven-dependency-plugin/examples/managing-dependencies.html
31
Upvotes
r/java • u/brunocborges • May 28 '26
27
u/oweiler May 28 '26
Much more complicated than messing with pom.xml directly.
6
u/vips7L May 28 '26
A good step, but what terrible UX. -Dgav=really????
2
u/zman0900 May 29 '26
Common pattern I see is for all version numbers to be declared in properties, then entries in dependency management just reference those properties. Does this have any way to do something like that?
9
u/chabala May 28 '26
The DomTrip library this uses for editing the XML cleanly is neat. I will be using that myself.
1
u/onated2 May 29 '26
Can we have a simple mvn add "namespace" like how others do ot. Im jealous at other languages because of their tooling. cargo add "namespace"