Apache maven

Clone this repo:
  1. e0908a1 Simplify GH PR template boilerplate by Slawomir Jaranowski · 4 weeks ago main
  2. 9d79517 Build and verify with Maven 4.0.0-rc-6 by Sylwester Lachiewicz · 6 weeks ago
  3. 4cca1bb Verify with Maven 4 too by Sylwester Lachiewicz · 6 weeks ago
  4. 042d317 Bump apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml by dependabot[bot] · 4 months ago
  5. c55f600 Set up default protection ruleset for default and release branches by The Apache Software Foundation · 6 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>