moreiraeugenio / pom-editor-maven-plugin

It's a Maven Plugin to allowing POM editions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POM Editor Maven Plugin

badge

Maven Central

Introduction

Facilitate manipulation such as managing POM dependencies through CLI (command line interface)

How to use it

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

Goals

It covers the following goals:

  • Add/Change dependencies at POM.xml

  • Rollback/Commit changes at POM.xml

Code of Conduct

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.

Contributing

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.

Contact

Join the SouJava Discord server and say hello at #pom-editor-maven-plugin channel!

About

It's a Maven Plugin to allowing POM editions

License:Apache License 2.0


Languages

Language:Java 100.0%