[New Goal Proposal]: add-mdep to add or update dependencies into the dependencyManagement
XML tag
#21
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
proposal
Idea proposal
question
Further information is requested
Milestone
What is the purpose of the new goal?
Today, the
add-dep
add or update dependencies into the default profile, which means, into theproject/dependencies
XML node.Many projects are managing their dependencies by using the
project/dependencyManagement/dependencies
XML nodes and then they're declaring the dependencies atproject/dependencies
XML nodes as needed.Let's create a new goal called
add-mdep
to add or update managed dependencies to theproject/dependencyManagement/dependencies
XML node.What is the expected behavior and output of the new goal?
Goal syntax:
New inputs:
groupId:artifactId:version
compile
. Must follow the default Maven Dependency Scopejar
This execution causes a side-effect into the target POM, then the backup process must keeping working.
Expected behavior and outcomes:
Scenario 01:
dependencyManagement/dependencies
XML node definedadd-mdep
goal is executed with a given dependency$ mvn pom-editor:add-mdep -Dgav='a:a:1.0'
add-mdep
goal should add or update the given dependency into theproject/dependencyManagement/dependencies
XML node from the target profile;Scenario 02:
dependencyManagement/dependencies
XML node defined alreadyadd-mdep
goal is executed with a given dependency$ mvn pom-editor:add-mdep -Dgav='a:a:1.3'
add-mdep
goal should add or update the given dependency into theproject/dependencyManagement/dependencies
XML node from the target profile;The text was updated successfully, but these errors were encountered: