<?xml version='1.0'?>
<!--
  ~ Copyright (C) 2005 - 2019 Schlichtherle IT Services.
  ~ All rights reserved. Use is subject to license terms.
  -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <prerequisites>
        <!-- Versions 3.3.1 and 3.3.3 would fail with a ClassNotFoundException when running the TrueLicense Maven
             Plugin.
             See https://jira.codehaus.org/browse/MNG-5787 and https://java.net/jira/browse/TRUELICENSE-87 .
             -->
        <maven>${maven.enforcer.requireMavenVersion}</maven>
    </prerequisites>

    <parent>
        <groupId>global.namespace.truelicense</groupId>
        <artifactId>truelicense</artifactId>
        <version>4.1.2</version>
    </parent>

    <artifactId>truelicense-maven-plugin</artifactId>
    <packaging>maven-plugin</packaging>

    <name>TrueLicense Maven Plugin</name>
    <description>
        The TrueLicense Maven Plugin generates source files from Apache
        Velocity template files or obfuscates constant string values in class
        files.
    </description>

    <properties>
        <automatic.module.name>global.namespace.truelicense.maven.plugin</automatic.module.name>
    </properties>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>truelicense-build-tasks</artifactId>
        </dependency>

        <!--
          ~ FileUtils from plexus-utils is used by GenerateSourcesMavenTask. Maven 3.9+ no longer exports
          ~ org.codehaus.plexus.util.* from the core realm, so declare it explicitly rather than relying on maven-core.
          -->
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-utils</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-tools</groupId>
            <artifactId>maven-plugin-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-plugin-plugin</artifactId>
                <configuration>
                    <helpPackageName>global.namespace.truelicense.maven.plugin.help</helpPackageName>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-plugin-plugin</artifactId>
            </plugin>
        </plugins>
    </reporting>
</project>
