Search in sources :

Example 1 with OriginInfo

use of org.commonjava.maven.galley.maven.model.view.OriginInfo in project galley by Commonjava.

the class AbstractMavenPluginImplications method createPluginDependency.

protected PluginDependencyView createPluginDependency(final PluginView pv, final ProjectRef ref) throws GalleyMavenException {
    final Map<String, String> map = new LinkedHashMap<>();
    map.put(G, ref.getGroupId());
    map.put(A, ref.getArtifactId());
    map.put(V, pv.getVersion());
    final Element element = pv.getElement();
    return new PluginDependencyView(pv.getPomView(), pv, xml.createElement(element, "dependencies/dependency", map), new OriginInfo());
}
Also used : PluginDependencyView(org.commonjava.maven.galley.maven.model.view.PluginDependencyView) Element(org.w3c.dom.Element) OriginInfo(org.commonjava.maven.galley.maven.model.view.OriginInfo) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

LinkedHashMap (java.util.LinkedHashMap)1 OriginInfo (org.commonjava.maven.galley.maven.model.view.OriginInfo)1 PluginDependencyView (org.commonjava.maven.galley.maven.model.view.PluginDependencyView)1 Element (org.w3c.dom.Element)1