GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codehaus-plexus/plexus-xml at agent/xml-cleanup

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,088 Commits
1,088 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
LICENSE.txt
LICENSE.txt
 
 
NOTICE.txt
NOTICE.txt
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Plexus XML

Maven Central 4.x Maven Central 3.x GitHub CI Reproducible Builds

Plexus XML contains the XML classes that plexus-utils shipped up to its 3.x line, in the packages org.codehaus.plexus.util.xml and org.codehaus.plexus.util.xml.pull. plexus-utils 4 no longer contains them.

The library provides the following classes:

  • Xpp3Dom, Xpp3DomBuilder, Xpp3DomWriter and Xpp3DomUtils, a small XML document model with its parser, writer and merge helpers.
  • XmlPullParser and its implementation MXParser, and XmlSerializer and its implementation MXSerializer.
  • XmlStreamReader and XmlStreamWriter, which detect the encoding of an XML stream.
  • XMLWriter, PrettyPrintXMLWriter and CompactXMLWriter, plus the helpers XmlUtil and XmlWriterUtil.

Status

Maintained. Two lines are released from this repository, and they are not interchangeable:

Line Branch Requires Use when
3.x 3.x Java 8 Your code runs in Maven 3, or in both Maven 3 and Maven 4
4.x master Java 17, since 4.1.0 Your code targets Maven 4

3.x keeps the implementation that plexus-utils 3 had and has no dependencies: plexus-utils 3 = plexus-utils 4 + plexus-xml 3.

4.x rebuilds Xpp3Dom on top of XmlNode from Maven 4's maven-api-xml, and depends on maven-api-xml (compile scope) and maven-xml (runtime scope, which provides the XmlService implementation). Don't use it in a plugin or extension that must run in Maven 3: Maven 3 exports its own Xpp3Dom class to plugins, and that class lacks the XmlNode constructor that Xpp3DomBuilder 4.x calls.

If upgrading plexus-utils from 3 to 4 gave you a NoClassDefFoundError on Xpp3Dom and you don't target Maven 4, add 3.x.

Using it

<dependency>
  <groupId>org.codehaus.plexus</groupId>
  <artifactId>plexus-xml</artifactId>
</dependency>

Add a <version> element with the current version of the line that you chose in Status. The badges at the top of this page show the current version of each line.

Requirements

Java 17 for 4.x. Java 8 for 3.x. Both lines set the automatic module name org.codehaus.plexus.util.xml.

Documentation

The following pages document the library:

  • Project site
  • Javadoc
  • Release notes

Building

Building master requires JDK 17 or later and Maven 3.9.0 or later. To build and run the tests:

mvn verify

A local build formats the sources with Spotless. On CI the build only checks the format and fails on unformatted code, so commit the formatted files. To format without building:

mvn spotless:apply

Contributing

Conventions for contributors and agents are in AGENTS.md; see also CONTRIBUTING.md, and report bugs in the issue tracker. Changes for Maven 3 users go to the 3.x branch.

Report security vulnerabilities privately, as described in SECURITY.md, not in a public issue.

License

Plexus XML is licensed under the Apache License, Version 2.0.

About

Plexus Xml

codehaus-plexus.github.io/plexus-xml/

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.