java.lang.Object
org.basepom.mojo.duplicatefinder.XMLWriterUtils

public final class XMLWriterUtils extends Object
  • Method Details

    • addElement

      public static org.codehaus.staxmate.out.SMOutputElement addElement(org.codehaus.staxmate.out.SMOutputElement document, String name, Object value) throws XMLStreamException
      Throws:
      XMLStreamException
    • addAttribute

      public static void addAttribute(org.codehaus.staxmate.out.SMOutputElement document, String name, Object value) throws XMLStreamException
      Throws:
      XMLStreamException
    • addProjectInformation

      public static void addProjectInformation(org.codehaus.staxmate.out.SMOutputElement rootElement, org.apache.maven.project.MavenProject project) throws XMLStreamException
      Throws:
      XMLStreamException
    • addConflictingDependency

      public static void addConflictingDependency(org.codehaus.staxmate.out.SMOutputElement conflictingDependenciesElement, String name, ConflictingDependency conflictingDependency) throws XMLStreamException
      Throws:
      XMLStreamException
    • addMavenCoordinate

      public static void addMavenCoordinate(org.codehaus.staxmate.out.SMOutputElement dependenciesElement, String name, MavenCoordinates dependency) throws XMLStreamException
      Throws:
      XMLStreamException
    • addArtifact

      public static void addArtifact(org.codehaus.staxmate.out.SMOutputElement artifactElement, String name, org.apache.maven.artifact.Artifact artifact) throws XMLStreamException, org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Throws:
      XMLStreamException
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
    • addResultCollector

      public static void addResultCollector(org.codehaus.staxmate.out.SMOutputElement resultElement, ResultCollector resultCollector) throws XMLStreamException, org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Throws:
      XMLStreamException
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
    • addClasspathDescriptor

      public static void addClasspathDescriptor(org.codehaus.staxmate.out.SMOutputElement resultElement, int resultFileMinClasspathCount, ClasspathDescriptor classpathDescriptor) throws XMLStreamException
      Throws:
      XMLStreamException