]
George Gastaldi updated FORGE-2765:
-----------------------------------
Summary: Introduce a method in DependencyFacet to add a dependency to the
<dependencyManagement> and <dependencies> sections at once (was:
DependencyFacet.addDirectManagedDependency should add a dependency to the
<dependencyManagement> and <dependencies> sections at once)
Introduce a method in DependencyFacet to add a dependency to the
<dependencyManagement> and <dependencies> sections at once
---------------------------------------------------------------------------------------------------------------------------
Key: FORGE-2765
URL:
https://issues.jboss.org/browse/FORGE-2765
Project: Forge
Issue Type: Feature Request
Components: Build Tools - Maven, Dependencies, Facets
Affects Versions: 3.7.2.Final
Reporter: Charles Heidemann
Priority: Minor
{{DependencyFacet.addDirectManagedDependency}} adds the dependency to the
{{dependencyManagement}} section.
We should either:
a) Change this method to add to dependencyManagement AND dependency sections
b) Create a new method in {{DependencyFacet}} to do that
Charles said:
{quote}
DependencyFacet should be have a method like this
DependencyFacet.addDependency(POM_DEPENDENCY)
to add a Dependency based on a ManagedDependency
{quote}