Class MavenJDOMWriter

java.lang.Object
org.apache.maven.plugins.shade.pom.MavenJDOMWriter

public class MavenJDOMWriter extends Object
Class MavenJDOMWriter.
  • Constructor Details

    • MavenJDOMWriter

      public MavenJDOMWriter()
    • MavenJDOMWriter

      public MavenJDOMWriter(String lineSeparator)
  • Method Details

    • findAndReplaceProperties

      protected org.jdom2.Element findAndReplaceProperties(Counter counter, org.jdom2.Element parent, String name, Map props)
      Method findAndReplaceProperties
      Parameters:
      counter - Counter
      parent - Element
      name - The name.
      props - Map
      Returns:
      Element
    • findAndReplaceSimpleElement

      protected org.jdom2.Element findAndReplaceSimpleElement(Counter counter, org.jdom2.Element parent, String name, String text, String defaultValue)
      Method findAndReplaceSimpleElement
      Parameters:
      counter - Counter
      parent - The parent.
      name - The name.
      text - The text.
      defaultValue - The default value.
      Returns:
      Element
    • findAndReplaceSimpleLists

      protected org.jdom2.Element findAndReplaceSimpleLists(Counter counter, org.jdom2.Element parent, Collection<String> list, String parentName, String childName)
      Method findAndReplaceSimpleLists
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentName - The parentName
      childName - The childName
      Returns:
      Element
    • findAndReplaceXpp3DOM

      protected org.jdom2.Element findAndReplaceXpp3DOM(Counter counter, org.jdom2.Element parent, String name, org.codehaus.plexus.util.xml.Xpp3Dom dom)
      Method findAndReplaceXpp3DOM
      Parameters:
      counter - Counter
      parent - The parent.
      name - The name.
      dom - Xpp3Dom
      Returns:
      Element
    • insertAtPreferredLocation

      protected void insertAtPreferredLocation(org.jdom2.Element parent, org.jdom2.Element child, Counter counter)
      Method insertAtPreferredLocation
      Parameters:
      parent - The parent.
      child - Element
      counter - Counter
    • iterateContributor

      protected void iterateContributor(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Contributor> list, String parentTag, String childTag)
      Method iterateContributor
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateDependency

      protected void iterateDependency(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Dependency> list, String parentTag, String childTag)
      Method iterateDependency
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateDeveloper

      protected void iterateDeveloper(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Developer> list, String parentTag, String childTag)
      Method iterateDeveloper
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateExclusion

      protected void iterateExclusion(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Exclusion> list, String parentTag, String childTag)
      Method iterateExclusion
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateExtension

      protected void iterateExtension(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Extension> list, String parentTag, String childTag)
      Method iterateExtension
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateLicense

      protected void iterateLicense(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.License> list, String parentTag, String childTag)
      Method iterateLicense
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateMailingList

      protected void iterateMailingList(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.MailingList> list, String parentTag, String childTag)
      Method iterateMailingList
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateNotifier

      protected void iterateNotifier(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Notifier> list, String parentTag, String childTag)
      Method iterateNotifier
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iteratePlugin

      protected void iteratePlugin(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Plugin> list, String parentTag, String childTag)
      Method iteratePlugin
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iteratePluginExecution

      protected void iteratePluginExecution(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.PluginExecution> list, String parentTag, String childTag)
      Method iteratePluginExecution
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateProfile

      protected void iterateProfile(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Profile> list, String parentTag, String childTag)
      Method iterateProfile
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateReportPlugin

      protected void iterateReportPlugin(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.ReportPlugin> list, String parentTag, String childTag)
      Method iterateReportPlugin
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateReportSet

      protected void iterateReportSet(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.ReportSet> list, String parentTag, String childTag)
      Method iterateReportSet
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateRepository

      protected void iterateRepository(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Repository> list, String parentTag, String childTag)
      Method iterateRepository
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • iterateResource

      protected void iterateResource(Counter counter, org.jdom2.Element parent, Collection<org.apache.maven.model.Resource> list, String parentTag, String childTag)
      Method iterateResource
      Parameters:
      counter - Counter
      parent - The parent.
      list - The list of elements.
      parentTag - The parentTag
      childTag - The childTag
    • replaceXpp3DOM

      protected void replaceXpp3DOM(org.jdom2.Element parent, org.codehaus.plexus.util.xml.Xpp3Dom parentDom, Counter counter)
      Method replaceXpp3DOM
      Parameters:
      parent - The parent.
      parentDom - Element
      counter - Counter
    • updateActivationFile

      protected void updateActivationFile(org.apache.maven.model.ActivationFile value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateActivationFile
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateActivationOS

      protected void updateActivationOS(org.apache.maven.model.ActivationOS value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateActivationOS
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateActivationProperty

      protected void updateActivationProperty(org.apache.maven.model.ActivationProperty value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateActivationProperty
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateBuild

      protected void updateBuild(org.apache.maven.model.Build value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateBuild
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateBuildBase

      protected void updateBuildBase(org.apache.maven.model.BuildBase value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateBuildBase
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateCiManagement

      protected void updateCiManagement(org.apache.maven.model.CiManagement value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateCiManagement
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateConfigurationContainer

      protected void updateConfigurationContainer(org.apache.maven.model.ConfigurationContainer value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateConfigurationContainer
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateContributor

      protected void updateContributor(org.apache.maven.model.Contributor value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateContributor
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateDependency

      protected void updateDependency(org.apache.maven.model.Dependency value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateDependency
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateDependencyManagement

      protected void updateDependencyManagement(org.apache.maven.model.DependencyManagement value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateDependencyManagement
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateDeploymentRepository

      protected void updateDeploymentRepository(org.apache.maven.model.DeploymentRepository value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateDeploymentRepository
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateDeveloper

      protected void updateDeveloper(org.apache.maven.model.Developer value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateDeveloper
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateDistributionManagement

      protected void updateDistributionManagement(org.apache.maven.model.DistributionManagement value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateDistributionManagement
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateElement

      protected org.jdom2.Element updateElement(Counter counter, org.jdom2.Element parent, String name, boolean shouldExist)
      Method updateElement
      Parameters:
      counter - Counter
      parent - The parent.
      name - The name.
      shouldExist - should exist.
      Returns:
      Element
    • updateExclusion

      protected void updateExclusion(org.apache.maven.model.Exclusion value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateExclusion
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateExtension

      protected void updateExtension(org.apache.maven.model.Extension value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateExtension
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateFileSet

      protected void updateFileSet(org.apache.maven.model.FileSet value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateFileSet
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateIssueManagement

      protected void updateIssueManagement(org.apache.maven.model.IssueManagement value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateIssueManagement
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateLicense

      protected void updateLicense(org.apache.maven.model.License value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateLicense
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateMailingList

      protected void updateMailingList(org.apache.maven.model.MailingList value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateMailingList
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateModel

      protected void updateModel(org.apache.maven.model.Model value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateModel
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateModelBase

      protected void updateModelBase(org.apache.maven.model.ModelBase value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateModelBase
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateNotifier

      protected void updateNotifier(org.apache.maven.model.Notifier value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateNotifier
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateOrganization

      protected void updateOrganization(org.apache.maven.model.Organization value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateOrganization
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateParent

      protected void updateParent(org.apache.maven.model.Parent value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateParent
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePatternSet

      protected void updatePatternSet(org.apache.maven.model.PatternSet value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePatternSet
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePlugin

      protected void updatePlugin(org.apache.maven.model.Plugin value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePlugin
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePluginConfiguration

      protected void updatePluginConfiguration(org.apache.maven.model.PluginConfiguration value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePluginConfiguration
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePluginContainer

      protected void updatePluginContainer(org.apache.maven.model.PluginContainer value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePluginContainer
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePluginExecution

      protected void updatePluginExecution(org.apache.maven.model.PluginExecution value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePluginExecution
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePluginManagement

      protected void updatePluginManagement(org.apache.maven.model.PluginManagement value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePluginManagement
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updatePrerequisites

      protected void updatePrerequisites(org.apache.maven.model.Prerequisites value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updatePrerequisites
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateProfile

      protected void updateProfile(org.apache.maven.model.Profile value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateProfile
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateRelocation

      protected void updateRelocation(org.apache.maven.model.Relocation value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateRelocation
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateReportPlugin

      protected void updateReportPlugin(org.apache.maven.model.ReportPlugin value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateReportPlugin
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateReportSet

      protected void updateReportSet(org.apache.maven.model.ReportSet value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateReportSet
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateReporting

      protected void updateReporting(org.apache.maven.model.Reporting value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateReporting
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateRepository

      protected void updateRepository(org.apache.maven.model.Repository value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateRepository
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateRepositoryBase

      protected void updateRepositoryBase(org.apache.maven.model.RepositoryBase value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateRepositoryBase
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateRepositoryPolicy

      protected void updateRepositoryPolicy(org.apache.maven.model.RepositoryPolicy value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateRepositoryPolicy
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateResource

      protected void updateResource(org.apache.maven.model.Resource value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateResource
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateScm

      protected void updateScm(org.apache.maven.model.Scm value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateScm
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • updateSite

      protected void updateSite(org.apache.maven.model.Site value, String xmlTag, Counter counter, org.jdom2.Element element)
      Method updateSite
      Parameters:
      value - The value.
      xmlTag - The XMLTag.
      counter - Counter
      element - Element
    • write

      public void write(org.apache.maven.model.Model project, org.jdom2.Document document, OutputStream stream) throws IOException
      Deprecated.
      Method write
      Parameters:
      project - Model
      document - Document
      stream - OutputStream
      Throws:
      IOException - in case of an error.
    • write

      public void write(org.apache.maven.model.Model project, org.jdom2.Document document, OutputStreamWriter writer) throws IOException
      Method write
      Parameters:
      project - Model
      document - Document
      writer - OutputStreamWriter
      Throws:
      IOException - in case of an error.
    • write

      public void write(org.apache.maven.model.Model project, org.jdom2.Document document, Writer writer, org.jdom2.output.Format jdomFormat) throws IOException
      Method write
      Parameters:
      project - Model
      document - Document
      writer - Writer
      jdomFormat - Format
      Throws:
      IOException - in case of an error.