<plugin>
  <groupId>com.io7m.montarre</groupId>
  <artifactId>com.io7m.montarre.maven_plugin</artifactId>
  <version>...</version>
  <executions>
    <execution>
      <id>make-distribution</id>
      <goals>
        <goal>package</goal>
      </goals>
      <phase>package</phase>
      <configuration>
        <validationWarningsAreErrors>true</validationWarningsAreErrors>

        <applicationKind>CONSOLE</applicationKind>

        <categories>
          <category>Development</category>
          <category>Building</category>
        </categories>

        <copyright>Copyright © 2024 Mark Raynsford &lt;code@io7m.com> https://www.io7m.com</copyright>

        <humanName>Montarre</humanName>
        <packageName>com.io7m.montarre</packageName>
        <shortName>montarre</shortName>

        <description>Package Java applications</description>

        <version>
          <number>${project.version}</number>
          <date>2024-10-06</date>
        </version>

        <vendor>
          <id>com.io7m</id>
          <name>io7m</name>
        </vendor>

        <longDescriptions>
          <longDescription>${project.basedir}/src/main/meta/description-en.xml</longDescription>
        </longDescriptions>

        <mainModule>com.io7m.montarre.cmdline/com.io7m.montarre.cmdline.MMain</mainModule>

        <requiredJDKVersion>21</requiredJDKVersion>

        <flatpak>
          <runtimes>
            <runtime>
              <name>org.freedesktop.Sdk</name>
              <version>24.08</version>
              <role>SDK</role>
            </runtime>
            <runtime>
              <name>org.freedesktop.Platform</name>
              <version>24.08</version>
              <role>PLATFORM</role>
            </runtime>
          </runtimes>
          <permissions>
            <permission>--share=network</permission>
            <permission>--filesystem=home:rw</permission>
          </permissions>
        </flatpak>

        <libraries>
          <excludes>
            <exclude>com\.io7m\.montarre\.cmdline-.*-main\.jar</exclude>
            <exclude>com\.io7m\.montarre\.distribution-.*</exclude>
            <exclude>maven-.*</exclude>
            <exclude>com\.io7m\.montarre\.maven_plugin-.*</exclude>
          </excludes>
        </libraries>

        <resources>
          <resource>
            <role>BOM</role>
            <file>${project.build.directory}/bom.xml</file>
            <entryName>bom.xml</entryName>
          </resource>
          <resource>
            <role>ICON_16</role>
            <file>${project.basedir}/src/main/meta/icon16.png</file>
            <entryName>icon16.png</entryName>
          </resource>
          <resource>
            <role>ICON_24</role>
            <file>${project.basedir}/src/main/meta/icon24.png</file>
            <entryName>icon24.png</entryName>
          </resource>
          <resource>
            <role>ICON_32</role>
            <file>${project.basedir}/src/main/meta/icon32.png</file>
            <entryName>icon32.png</entryName>
          </resource>
          <resource>
            <role>ICON_48</role>
            <file>${project.basedir}/src/main/meta/icon48.png</file>
            <entryName>icon48.png</entryName>
          </resource>
          <resource>
            <role>ICON_64</role>
            <file>${project.basedir}/src/main/meta/icon64.png</file>
            <entryName>icon64.png</entryName>
          </resource>
          <resource>
            <role>ICON_128</role>
            <file>${project.basedir}/src/main/meta/icon128.png</file>
            <entryName>icon128.png</entryName>
          </resource>
          <resource>
            <role>SCREENSHOT</role>
            <file>${project.basedir}/src/main/meta/screenshot.png</file>
            <entryName>screenshot.png</entryName>
            <captions>
              <caption>
                <language>en</language>
                <text>The main command-line entry point.</text>
              </caption>
            </captions>
          </resource>
          <resource>
            <role>ICO_WINDOWS</role>
            <file>${project.basedir}/src/main/meta/icon.ico</file>
            <entryName>icon.ico</entryName>
          </resource>
          <resource>
            <role>LICENSE</role>
            <file>${project.basedir}/../README-LICENSE.txt</file>
            <entryName>license.txt</entryName>
          </resource>
        </resources>
      </configuration>
    </execution>
  </executions>
</plugin>