Apache maven

Clone this repo:
  1. e42feef Bump com.fasterxml.woodstox:woodstox-core from 7.1.0 to 7.1.1 by dependabot[bot] · 8 weeks ago main
  2. 73893dd Bump org.apache.maven.plugins:maven-invoker-plugin from 3.9.0 to 3.9.1 by dependabot[bot] · 4 weeks ago
  3. 712a5af Bump org.apache.maven.extensions:maven-extensions from 44 to 45 by dependabot[bot] · 5 weeks ago
  4. 68aa87a Fix namespace handling when including document from default namespace (#21) by Elliotte Rusty Harold · 4 months ago
  5. 24da223 Add release drafter by Guillaume Nodet · 4 months ago

Apache Maven XInclude Extension

Apache License, Version 2.0, January 2004 Maven Central

This project provides an XInclude extension for Maven 4. It allows POMs to use xinclude support and XML entities to refer to xml snippets located inside the project. It does not support loading external documents.

License

This code is under the Apache License, Version 2.0, January 2004.

See the NOTICE file for required notices and attributions.

Usage

To use this extension, the following declaration needs to be done in your ${rootDirectory}/.mvn/extensions.xml:

<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.2.0">
    <extension>
        <groupId>org.apache.maven.extensions</groupId>
        <artifactId>maven-xinclude-extension</artifactId>
        <version>@project.version@</version>
    </extension>
</extensions>

This allows defining a POM with XInclude pointers and XML entities:

<!DOCTYPE foo SYSTEM "../foo.dtd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
                             http://www.w3.org/2001/XInclude https://www.w3.org/2001/XInclude/XInclude.xsd">


    <modelVersion>4.0.0</modelVersion>

    <xi:include href="../snippets.xml" xpointer="id-parent" />

    <groupId>&groupId;</groupId>
    <artifactId>child</artifactId>
    &version;
    <packaging>jar</packaging>

</project>