<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>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-viewer</artifactId>
    <version>2.11.0</version>
    <packaging>jar</packaging>

    <name>GroupDocs Java Viewer</name>
    <url>http://maven.apache.org</url>

    <description>
        GroupDocs.Viewer is an online document viewer that lets you read documents in your browser, regardless of
        whether you have the software that they were created in. You can view many types to word processing documents
        (DOC, DOCX, TXT, RTF, ODT), presentations (PPT, PPTX), spreadsheets (XLS, XLSX), portable files (PDF), and image
        files (JPG, BMP, GIF, TIFF). For each file, you get a high-fidelity rendering, showing the document just as it
        would if you opened it in the software it was created in. Layout and formatting is retained and you see an exact
        copy of the original.

        GroupDocs.Viewer lets you really read the document. You can search text documents, copy text and even embed the
        document РІР‚ GroupDocs.Viewer and all - in a web page. You can print or download the file from
        GroupDocs.Viewer if you need to work with it offline.
    </description>

    <developers>
        <developer>
            <id>groupdocs</id>
            <name>Marketplace Team</name>
            <email>support@groupdocs.com</email>
        </developer>
    </developers>

    <licenses>
        <license>
            <name>GroupDocs License, Version 1.0</name>
            <url>http://www.aspose.com/corporate/purchase/end-user-license-agreement.aspx</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.bootstrap.classes>${java.home}/lib/rt.jar</java.bootstrap.classes>
        <java.cryptographic.extension.classes>${java.home}/lib/jce.jar</java.cryptographic.extension.classes>
        <java.secure.socket.extension.classes>${java.home}/lib/jsse.jar</java.secure.socket.extension.classes>
        <maven.compiler.source>1.6</maven.compiler.source>
        <maven.compiler.target>1.6</maven.compiler.target>
        <qa.skip.junit>false</qa.skip.junit>
        <!-- Start Aspose -->
        <aspose.cells.version>8.4.1</aspose.cells.version>
        <aspose.diagram.version>5.2.0</aspose.diagram.version>
        <aspose.email.version>5.2.0.0</aspose.email.version>
        <aspose.imaging.version>2.7.0</aspose.imaging.version>
        <aspose.pdf.version>10.3.0</aspose.pdf.version>
        <aspose.slides.version>15.4.0</aspose.slides.version>
        <aspose.tasks.version>8.3.0</aspose.tasks.version>
        <aspose.words.version>15.4.0</aspose.words.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.0.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.1.4</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
        <dependency>
            <groupId>org.xerial</groupId>
            <artifactId>sqlite-jdbc</artifactId>
            <version>3.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.7.2</version>
        </dependency>
        <!-- Stogare Services -->
        <dependency>
            <groupId>com.microsoft.azure</groupId>
            <artifactId>azure-storage</artifactId>
            <version>1.2.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk</artifactId>
            <version>1.8.3</version>
            <scope>provided</scope>
        </dependency>
        <!-- ASPOSE -->
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-cells</artifactId>
            <version>${aspose.cells.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-diagram</artifactId>
            <version>${aspose.diagram.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-email</artifactId>
            <version>${aspose.email.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-imaging</artifactId>
            <version>${aspose.imaging.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-pdf</artifactId>
            <version>${aspose.pdf.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-slides</artifactId>
            <version>${aspose.slides.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-tasks</artifactId>
            <version>${aspose.tasks.version}</version>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>${aspose.words.version}</version>
        </dependency>
        <dependency>
            <groupId>com.github.jai-imageio</groupId>
            <artifactId>jai-imageio-core</artifactId>
            <version>1.3.0</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.10.8</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-core</artifactId>
            <version>1.6.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <version>1.6.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
            <version>1.6.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.skyscreamer</groupId>
            <artifactId>jsonassert</artifactId>
            <version>1.2.3</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>2.3</version>
                    <configuration>
                        <filters>
                            <filter>
                                <artifact>*:*</artifact>
                                <excludes>
                                    <exclude>META-INF/*.SF</exclude>
                                    <exclude>META-INF/*.DSA</exclude>
                                    <exclude>META-INF/*.RSA</exclude>
                                </excludes>
                            </filter>
                        </filters>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>shade</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>2.5.1</version>
                    <executions>
                        <execution>
                            <id>install</id>
                            <phase>package</phase>
                            <goals>
                                <goal>install-file</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <file>${project.build.directory}/${project.build.finalName}.jar</file>
                        <artifactId>${project.artifactId}</artifactId>
                        <groupId>${project.groupId}</groupId>
                        <version>${project.version}</version>
                        <packaging>${project.packaging}</packaging>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.github.wvengen</groupId>
                    <artifactId>proguard-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>proguard</id>
                            <phase>package</phase>
                            <goals>
                                <goal>proguard</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <maxMemory>1024m</maxMemory>
                        <options>
                            <!--<option>-dontshrink</option>-->
                            <!--<option>-dontpreverify</option>-->
                            <option>-dontoptimize</option>
                            <option>-dontnote</option>
                            <!-- Global obfuscation keeping -->
                            <option>-keepparameternames</option>
                            <option>-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod</option>

                            <!--<option>-optimizationpasses 3</option>-->
                            <!--<option>-overloadaggressively</option>-->
                            <!--<option>-repackageclasses ''</option>-->
                            <option>-useuniqueclassmembernames</option>

                            <!-- Dont show warnings -->
                            <option>-dontwarn org.bouncycastle.**</option>
                            <option>-dontwarn org.ibex.classgen.**</option>
                            <option>-dontwarn org.apache.tools.zip.**</option>
                            <option>-dontwarn javax.media.jai.**</option>
                            <option>-dontwarn com.sun.media.imageio.plugins.tiff.**</option>
                            <option>-dontwarn org.apache.tools.zip.**</option>
                            <option>-dontwarn javax.servlet.**</option>
                            <option>-dontwarn com.microsoft.azure.storage.**</option>
                            <option>-dontwarn com.amazonaws.**</option>
                            <option>-dontwarn com.aspose.words.Xml**</option>
                            <option>-dontwarn com.aspose.email.system.collections.**</option>
                            <option>-dontwarn com.aspose.imaging.system.collections.Generic.List$**</option>
                            <option>-dontwarn com.aspose.slides.Collections.Generic.List$**</option>
                            <option>-dontwarn com.aspose.ms.System.msNumber$*</option>
                            <option>-dontwarn asposewobfuscated.**</option>
                            <option>-dontwarn com.aspose.pdf.internal.**</option>
                            <option>-dontwarn com.aspose.email.internal.**</option>
                            <option>-dontwarn com.aspose.imaging.internal.**</option>

                            <!-- GroupDocs Viewer obfuscation keeping -->
                            <option>-keep public class com.groupdocs.viewer.config.* { *; }</option>
                            <option>-keep public class com.groupdocs.viewer.domain.** { *; }</option>
                            <option>-keep public class com.groupdocs.viewer.handlers.* { *; }</option>
                            <option>-keep public class com.groupdocs.viewer.handlers.cache.* { *; }</option>
                            <option>-keep public class com.groupdocs.viewer.handlers.input.* { *; }</option>
                            <option>-keep public class com.groupdocs.viewer.resources.* { *; }</option>
                            <!--<option>-keep public class com.groupdocs.viewer.** { public void set*(***); public *** get*(); }</option>-->

                            <option>-keep class aspose.pdf.Bookmark.** { *; }</option>
                            <option>-keep class com.fasterxml.jackson.** { *; }</option>
                            <option>-keep class org.ibex.nestedvm.util.Platform$Jdk14 { *; }</option>
                            <option>-keep class org.ibex.nestedvm.UnixRuntime$ProcessTableFullExn { *; }</option>
                            <option>-keep class org.jsoup.nodes.Entities$EscapeMode { *; }</option>
                            <option>-keep class com.aspose.email.internal.ms.core.resources.ResourcesLoader { *; }</option>
                            <option>-keep class com.aspose.slides.LineFillFormat { *; }</option>
                            <option>-keep class com.aspose.slides.Presentation { *; }</option>
                            <option>-keep class com.aspose.imaging.** { *; }</option>
                            <option>-keep class com.aspose.diagram.resources.**</option>
                            <option>-keep class com.aspose.diagram.* { *; }</option>
                            <option>-keep class com.github.jaiimageio.** { *; }</option>
                            <!-- Should be updated during library updates -->
                            <option>-keep class com.aspose.slides.pa5e0ff62.pf4dd765c.pbdb106a0.pbdb106a0.pf4dd765c.** { *; }</option>
                            <option>-keepnames public class org.apache.commons.io.IOUtils { public static *; }</option>
                            <option>-keepnames public class com.aspose.imaging.exceptions.ImageLoadException { *; }</option>
                            <option>-keepnames public class com.aspose.pdf.Document { public static *; }</option>
                            <option>-keepnames public class com.aspose.pdf.devices.** { public static *; }</option>
                            <option>-keepnames public class com.aspose.ms.core.resources.ResourcesLoader { public static *; }</option>
                            <option>-keepnames public class com.aspose.cells.** { public static *; }</option>
                            <option>-keepnames public class com.aspose.slides.** { public static *; }</option>
                            <option>-keepnames public class com.aspose.tasks.** { public *; }</option>
                            <option>-keepnames public class com.groupdocs.viewer.utils.ByteArrayStreamUtils { public *; }</option>
                            <option>-keepnames public class com.groupdocs.viewer.utils.Utils { public static void closeStreams(java.lang.Object[]); }</option>
                        </options>
                        <libs>
                            <lib>${java.bootstrap.classes}</lib>
                            <lib>${java.cryptographic.extension.classes}</lib>
                            <lib>${java.secure.socket.extension.classes}</lib>
                        </libs>
                        <obfuscate>true</obfuscate>
                        <injar>${project.build.finalName}.jar</injar>
                        <outjar>${project.build.finalName}.jar</outjar>
                        <outputDirectory>${project.build.directory}</outputDirectory>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>net.sf.proguard</groupId>
                            <artifactId>proguard-base</artifactId>
                            <version>4.10</version>
                            <scope>runtime</scope>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.10.1</version>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <charset>UTF-8</charset>
                        <docencoding>UTF-8</docencoding>
                        <docfilessubdirs>true</docfilessubdirs>
                        <show>protected</show>
                        <source>1.6</source>
                        <sourceFileExcludes>
                            <exclude>com/groupdocs/viewer/access/**</exclude>
                            <exclude>com/groupdocs/viewer/config/http/certification/**</exclude>
                            <exclude>com/groupdocs/viewer/converter/**</exclude>
                            <exclude>com/groupdocs/viewer/db/**</exclude>
                            <exclude>com/groupdocs/viewer/exception/**</exclude>
                            <exclude>com/groupdocs/viewer/handlers/cache/local/**</exclude>
                            <exclude>com/groupdocs/viewer/handlers/etc/**</exclude>
                            <exclude>com/groupdocs/viewer/handlers/input/local/**</exclude>
                            <exclude>com/groupdocs/viewer/handlers/utils/**</exclude>
                            <exclude>com/groupdocs/viewer/helpers/**</exclude>
                            <exclude>com/groupdocs/viewer/license/**</exclude>
                            <exclude>com/groupdocs/viewer/locale/**</exclude>
                            <exclude>com/groupdocs/viewer/utils/**</exclude>
                        </sourceFileExcludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.2.1</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <excludes>
                            <!-- remove exclude tag for generate real sources -->
                            <exclude>**/com/groupdocs/viewer/**</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.18.1</version>
                    <configuration>
                        <argLine>-Xms512m -Xmx512m -XX:MaxPermSize=512m -XX:PermSize=256m -ea -XX:-UseSplitVerifier</argLine>
                        <skip>${qa.skip.junit}</skip>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <profiles>
        <profile>
            <id>development</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-shade-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>development-slim</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <configuration>
                            <finalName>${project.build.finalName}-dev-slim</finalName>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                        <configuration>
                            <file>${project.build.directory}/${project.build.finalName}-dev-slim.jar</file>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>fat</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-shade-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>com.github.wvengen</groupId>
                        <artifactId>proguard-maven-plugin</artifactId>
                        <configuration>
                            <outjar>${project.build.finalName}-fat-final.jar</outjar>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                        <configuration>
                            <file>${project.build.directory}/${project.build.finalName}-fat-final.jar</file>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>slim</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.wvengen</groupId>
                        <artifactId>proguard-maven-plugin</artifactId>
                        <configuration>
                            <outjar>${project.build.finalName}-slim-final.jar</outjar>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                        <configuration>
                            <file>${project.build.directory}/${project.build.finalName}-slim-final.jar</file>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.wvengen</groupId>
                        <artifactId>proguard-maven-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-release-plugin</artifactId>
                        <configuration>
                            <preparationGoals>clean install -Prelease</preparationGoals>
                            <!--<pushChanges>false</pushChanges>-->
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <configuration>
                            <passphrase>${gpg.passphrase}</passphrase>
                            <publicKeyring>${gpg.publicKeyring}</publicKeyring>
                        </configuration>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-install-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>javadoc</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <repositories>
        <repository>
            <id>com.springsource.repository.bundles.external</id>
            <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
            <url>http://repository.springsource.com/maven/bundles/external</url>
        </repository>
    </repositories>

    <scm>
        <url>https://bitbucket.org/groupdocs/groupdocs-java-viewer</url>
        <connection>scm:git:ssh://git@bitbucket.org/groupdocs/groupdocs-java-viewer</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/groupdocs/groupdocs-java-viewer</developerConnection>
    </scm>
</project>
