<?xml version="1.0" encoding="UTF-8"?>
<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>com.azure</groupId>
    <artifactId>azure-ai-vision-common-internal</artifactId>
    <version>0.15.1-beta.1</version>
    <packaging>jar</packaging>
    <name>Azure AI Vision SDK for Java - Common Internal Components</name>
    <description>
      Common internal components required by Azure AI Vision SDK 
      to provide access to native implementation (Java JRE and Java Android).
      See https://aka.ms/azaivision for more information on Azure AI Vision SDK.
    </description>
    <url>https://aka.ms/azaivision</url>
    <licenses>
        <license>
            <name>Microsoft Software License Terms for Azure AI Vision SDK</name>
            <url>https://aka.ms/azai/vision/license</url>
        </license>
    </licenses>
    <scm>
        <connection>scm:git@github.com/Azure-Samples/azure-ai-vision-sdk.git</connection>
        <url>https://github.com/Azure-Samples/azure-ai-vision-sdk</url>
    </scm>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <!-- Enables fail on deprecated API usage. -->
        <compiler.failondeprecatedstatus/>
    </properties>
    <developers>
        <developer>
            <id>microsoft</id>
            <name>Microsoft Corporation</name>
        </developer>
    </developers>
    <build>
        <plugins>
            <!-- Configure the compiler plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-compiler-plugin;external_dependency} -->
                <executions>
                    <execution>
                        <id>default-compile</id>
                    </execution>
                    <execution>
                        <id>java8-compile</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <!-- recompile everything with Java 8 except the module-info.java -->
                        <configuration>
                            <release>8</release>
                            <excludes>
                                <exclude>module-info.java</exclude>
                            </excludes>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <source>9</source>
                    <target>9</target>
                    <compilerArgs>
                      <arg>-h</arg>
                      <arg>./target/jni_headers</arg>
                      <arg>-d</arg>
                      <arg>${project.build.outputDirectory}</arg>
                    </compilerArgs>
                    <outputDirectory>./target/classes</outputDirectory>
                </configuration>
            </plugin>
            <!-- Configure the jar plugin -->
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.1.2</version>
                <configuration>
                    <includes>
                        <include>**/*.class</include>
                    </includes>
                    <outputDirectory>../target</outputDirectory>
                </configuration>
            </plugin>
            <!-- Configure the source plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-source-plugin;external_dependency} -->
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>../target</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- Configure the javadoc plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.3.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} -->
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>./target</outputDirectory>
                            <jarOutputDirectory>./target</jarOutputDirectory>
                            <source>8</source>
                            <doctitle>Azure AI Vision SDK for Java - Common Internal Components</doctitle>
                            <windowtitle>Azure AI Vision SDK for Java - Common Internal Components</windowtitle>
                            <failOnError>false</failOnError>
                            <linksource>false</linksource>
                            <groups>
                                <group>
                                    <title>Azure AI Vision SDK for Java - Common Internal Components</title>
                                    <packages>com.azure.ai.vision.common.internal.implementation</packages>
                                </group>
                            </groups>
                            <!-- 
                                SourceFileExcludes is currently failing with source paths that start with /com.
                            -->
                            <sourceFileExcludes>
                            </sourceFileExcludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>install-jar-to-local-repo</id>
                        <phase>install</phase>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <configuration>
                            <file>../target/${project.artifactId}-${project.version}.jar</file>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>${project.version}</version>
                            <packaging>jar</packaging>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
    </dependencies>
    <repositories>
        <repository>
            <id>maven-cognitiveservices-local-path</id>
            <name>Microsoft Cognitive Services Local Maven Repository</name>
            <url>file:///localplaceholder//maven//</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>central</id>
            <name>Default Repository</name>
            <layout>default</layout>
            <url>https://repo1.maven.org/maven2</url>
            <snapshots>
            <enabled>false</enabled>
            </snapshots>
        </repository>
     </repositories>
</project>