<?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>
   <parent>
      <groupId>org.infinispan</groupId>
      <artifactId>infinispan-parent</artifactId>
      <version>9.4.21.Final-redhat-00002</version>
      <relativePath>../../pom.xml</relativePath>
   </parent>
   <artifactId>infinispan-javadoc-remote</artifactId>
   <name>Infinispan JavaDoc Remote</name>
   <packaging>jar</packaging>

   <properties>
      <analytics.code>---&gt;
-&lt;!--
-&lt;script type='text/javascript'&gt;
-try {
-(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-ga('create', 'UA-8601422-4', 'auto');
-ga('send', 'pageview');
-} catch(err) {}&lt;/script&gt;</analytics.code>
   </properties>

   <dependencies>
      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-commons</artifactId>
      </dependency>

      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-client-hotrod</artifactId>
      </dependency>

      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-query-dsl</artifactId>
      </dependency>

      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-remote-query-client</artifactId>
      </dependency>

      <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-tasks-api</artifactId>
      </dependency>

      <dependency>
         <groupId>org.osgi</groupId>
         <artifactId>org.osgi.core</artifactId>
      </dependency>

      <dependency>
         <groupId>org.osgi</groupId>
         <artifactId>org.osgi.compendium</artifactId>
      </dependency>

      <dependency>
         <groupId>org.antlr</groupId>
         <artifactId>antlr-runtime</artifactId>
      </dependency>
   </dependencies>

   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
               <execution>
                  <id>javadoc</id>
                  <phase>package</phase>
                  <goals>
                     <goal>jar</goal>
                  </goals>
                  <configuration>
                     <doctitle>${infinispan.brand.name} ${infinispan.base.version} Remote API</doctitle>
                     <docfilessubdirs>true</docfilessubdirs>
                     <detectLinks>false</detectLinks>
                     <footer>${analytics.code}</footer>
                     <groups>
                        <group>
                           <title>Remote Client API</title>
                           <packages>org.infinispan.client*</packages>
                        </group>
                        <group>
                           <title>Base API</title>
                           <packages>org.infinispan*</packages>
                        </group>
                        <group>
                           <title>Commons API</title>
                           <packages>org.infinispan.commons*</packages>
                        </group>
                        <group>
                           <title>Tasks API</title>
                           <packages>org.infinispan.tasks*</packages>
                        </group>
                     </groups>
                     <includeDependencySources>true</includeDependencySources>
                     <includeTransitiveDependencySources>false</includeTransitiveDependencySources>
                     <dependencySourceIncludes>
                        <dependencySourceInclude>org.infinispan:*</dependencySourceInclude>
                     </dependencySourceIncludes>
                     <javadocDirectory>${basedir}/src/main/javadoc</javadocDirectory>
                     <excludePackageNames>org.infinispan.commons.jdkspecific*:*.impl.*</excludePackageNames>
                     <excludedocfilessubdir>org/infinispan/commons/jdkspecific</excludedocfilessubdir>
                     <doclint>none</doclint>
                     <useStandardDocletOptions>true</useStandardDocletOptions>
                     <additionalOptions>--allow-script-in-comments</additionalOptions>
                     <source>8</source>
                     <additionalDependencies>
                        <additionalDependency>
                           <groupId>org.infinispan.protostream</groupId>
                           <artifactId>protostream</artifactId>
                           <version>${version.protostream}</version>
                        </additionalDependency>
                     </additionalDependencies>
                  </configuration>
               </execution>
               <execution>
                  <id>jmx</id>
                  <phase>package</phase>
                  <goals>
                     <goal>jar</goal>
                  </goals>
                  <configuration>
                     <doctitle>${infinispan.brand.name} ${infinispan.base.version} Remote API</doctitle>
                     <doclet>org.infinispan.doclets.jmx.JmxDoclet</doclet>
                     <docletArtifact>
                        <groupId>org.infinispan.doclets</groupId>
                        <artifactId>infinispan-doclets</artifactId>
                        <version>${version.infinispan.doclets}</version>
                     </docletArtifact>
                     <docfilessubdirs>true</docfilessubdirs>
                     <detectLinks>false</detectLinks>
                     <includeDependencySources>true</includeDependencySources>
                     <includeTransitiveDependencySources>false</includeTransitiveDependencySources>
                     <dependencySourceIncludes>
                        <dependencySourceInclude>org.infinispan:*</dependencySourceInclude>
                     </dependencySourceIncludes>
                     <javadocDirectory>${basedir}/src/main/javadoc</javadocDirectory>
                     <excludePackageNames>org.infinispan.commons.jdkspecific*</excludePackageNames>
                     <excludedocfilessubdir>org/infinispan/commons/jdkspecific</excludedocfilessubdir>
                     <doclint>none</doclint>
                     <useStandardDocletOptions>false</useStandardDocletOptions>
                     <source>8</source>
                     <!--additionalJOption>-J-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8787</additionalJOption-->
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
               <skip>true</skip>
            </configuration>
         </plugin>
      </plugins>
   </build>

   <profiles>

      <profile>
         <id>nexus-staging</id>
         <activation>
            <property><name>!skipNexusStaging</name></property>
         </activation>
         <build>
            <plugins>
               <plugin>
                  <artifactId>maven-deploy-plugin</artifactId>
                  <configuration>
                     <skip>true</skip>
                  </configuration>
               </plugin>
            </plugins>
         </build>
      </profile>

   </profiles>

</project>
