Facilitate manipulation such as managing POM dependencies through CLI (command line interface)
Let’s suppose that you need to add JUnit Jupiter version 5.9.2 into your POM in the test scope, you could perform the following command inside on the target maven project:
mvn br.org.soujava:pom-editor:add-dep -Dgav='org.junit.jupiter:junit-jupiter:5.9.2' -Dscope=test
It’s a Maven plugin then you may register the groupId into your settings.xml
pluginGroups node :
<settings >
<!-- snipped -->
<pluginGroups>
<pluginGroup>br.org.soujava</pluginGroup>
</pluginGroups>
<!-- snipped -->
</settings>
Then you’ll be able to perform the plugin by its prefix:
mvn pom-editor:add-dep -Dgav='org.junit.jupiter:junit-jupiter:5.9.2' -Dscope=test
It covers the following goals:
-
Add/Change dependencies at POM.xml
-
Rollback/Commit changes at POM.xml
Take a look at here for more information.
The Code of Conduct of this project is adapted from the Contributor Covenant, version 1.4, available at here.
We are very happy you are interested in helping us and there are plenty ways you can do so.
-
Open an Issue: Recommend improvements, changes and report bugs
-
Open a Pull Request: If you feel like you can even make changes to our source code and suggest them, just check out our contributing guide to learn about the development process, how to suggest bugfixes and improvements.
Join the SouJava Discord server and say hello at #pom-editor-maven-plugin
channel!