<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.carrot2</groupId>
    <artifactId>carrot2</artifactId>
    <version>3.8.0</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <groupId>org.carrot2</groupId>
  <artifactId>carrot2-mini</artifactId>
  <version>3.8.0</version>

  <name>Carrot2 Core Mini (algorithms and selected sources)</name>

  <description>
    Carrot2 search results clustering framework. Minimal functional subset
    (core algorithms and infrastructure, no document sources).
  </description>

  <packaging>jar</packaging>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <inherited>true</inherited>

        <executions>
          <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <configuration>
              <target>
                <copy
                  file="${carrot2.master.basedir}/tmp/jar/carrot2-mini-${carrot2.version}.jar"
                  tofile="${project.build.directory}/${project.build.finalName}.jar"
                  overwrite="true" filtering="false" />
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>attach-extras</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <!-- Use full javadocs, not a mistake. -->
                  <file>${carrot2.master.basedir}/tmp/jar/carrot2-core-javadoc-${carrot2.version}.jar</file>
                  <type>jar</type>
                  <classifier>javadoc</classifier>
                </artifact>
                <artifact>
                  <file>${carrot2.master.basedir}/tmp/jar/carrot2-mini-sources-${carrot2.version}.jar</file>
                  <type>jar</type>
                  <classifier>sources</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
