Apache maven

Clone this repo:
  1. 9071181 Bump org.apache.maven.extensions:maven-extensions from 46 to 47 by dependabot[bot] · 3 weeks ago main
  2. 7dbb74b Bump org.apache.maven.extensions:maven-extensions from 45 to 46 by dependabot[bot] · 4 weeks ago
  3. 0e6d518 Bump org.apache.maven.plugins:maven-dependency-plugin by dependabot[bot] · 4 months ago
  4. e42feef Bump com.fasterxml.woodstox:woodstox-core from 7.1.0 to 7.1.1 by dependabot[bot] · 8 months ago
  5. 73893dd Bump org.apache.maven.plugins:maven-invoker-plugin from 3.9.0 to 3.9.1 by dependabot[bot] · 7 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>