<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>
  <groupId>de.uni-muenchen.phonetik</groupId>
  <artifactId>ips.ajs.alsa.native</artifactId>
  <version>0.2.1</version>
  <packaging>pom</packaging>
  <licenses>
		<license>
			<name>GNU Lesser General Public License version 3</name>
			<url>https://www.gnu.org/licenses/lgpl-3.0.en.html</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<distributionManagement>
		<repository>
			<id>IPS-WWW-files</id>
			<url>${ips.distributionManagementURL}</url>
		</repository>
	</distributionManagement>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>10</maven.compiler.source>
		<maven.compiler.target>10</maven.compiler.target>
	</properties>
	<organization>
		<name>Institute of Phonetics and Speech Processing</name>
		<url>https://www.phonetik.uni-muenchen.de</url>
	</organization>
	<repositories>
		<repository>
			<id>IPS-WWW</id>
			<name>IPS</name>
			<url>https://www.phonetik.uni-muenchen.de/Bas/software/repos/maven/</url>
		</repository>
	</repositories>
  <build>
  	<plugins>
  	<!--  Copy dll library to push it to versioning system (git) -->
  	<plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
                <execution>
                    <id>copy-resource-one</id>
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>copy-resources</goal>
                    </goals>

                    <configuration>
                        <outputDirectory>${project.basedir}/src/assembly/native/</outputDirectory>
                        <resources>
                            <resource>
                                <directory>${project.basedir}/Release/</directory>
                                <includes>
                                    <include>libips.ajs.alsa.native.so</include>
                                </includes>
                             	<targetPath>linux/amd64</targetPath>
                            </resource>
                          
                        </resources>
                    </configuration>
                </execution>
           </executions>
        </plugin>
     
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>3.1.1</version>
        <configuration>
          <descriptors>
            <descriptor>src/assembly/native.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id> <!-- this is used for inheritance merges -->
            <phase>package</phase> <!-- bind to the packaging phase -->
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        </plugin>
        </plugins>
  </build>
</project>