Like Yarn, but for Maven.
yarn global add @timdp/pomeranian
npm install --global @timdp/pomeranian
Run pomeranian
(or pom
) in a directory with a Maven pom.xml
. If pom.xml
doesn't exist, it will attempt to find one higher up.
Try pom --help
for quick instructions.
Add dependency by group ID, artifact ID and version:
pomeranian add org.apache.commons:commons-text:1.12.0
Or shorter:
pom a org.apache.commons:commons-text:1.12.0
Or by URL:
pom a https://central.sonatype.com/artifact/org.apache.commons/commons-text/1.12.0
Or use the latest version:
pom a org.apache.commons:commons-text
pom a https://central.sonatype.com/artifact/org.apache.commons/commons-text
Or search:
pom a commons-text
Need to change the scope? Use --scope
or -s
:
pom a org.junit.jupiter:junit-jupiter -s test
Remove dependency by group ID and artifact ID:
pomeranian remove org.apache.commons:commons-text
Or shorter:
pom r org.apache.commons:commons-text
Or by artifact ID only:
pom r commons-text
Or use wildcards:
pom r "*junit*"
Add --yes
or -y
to accept all confirmation prompts.
MIT