<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>com.buschmais.jqassistant</groupId>
        <artifactId>parent</artifactId>
        <version>2.10.0-RC1</version>
    </parent>

    <artifactId>manual</artifactId>

    <name>jQAssistant User Manual</name>

    <description>
        The user manual of jQAssistant.
    </description>

    <properties>
        <asciidoc.directory>${project.build.directory}/asciidoc-modules-documentation</asciidoc.directory>
        <sourcedoc.directory>${project.build.directory}/asciidoc-modules-documentation</sourcedoc.directory>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.asciidoctor</groupId>
                <artifactId>asciidoctor-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>manual</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>process-asciidoc</goal>
                        </goals>
                        <configuration>
                            <attributes>
                                <toc>auto</toc>
                                <stylesheet>jqassistant.css</stylesheet>
                                <docRoot>${asciidoc.directory}</docRoot>
                            </attributes>
                            <sourceDirectory>src/main/asciidoc/</sourceDirectory>
                            <sourceDocumentName>index.adoc</sourceDocumentName>
                            <outputDirectory>${project.build.directory}/generated-docs/</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${project.basedir}/src/main/asciidoc</directory>
                                    <targetPath>${project.build.directory}/generated-docs/</targetPath>
                                    <includes>
                                        <include>images/*</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <backend>xhtml5</backend>
                    <attributes>
                        <toclevels>3</toclevels>
                        <tabsize>4</tabsize>
                        <docRoot>${asciidoc.directory}</docRoot>
                        <source-highlighter>coderay</source-highlighter>
                        <projectGroupId>${project.groupId}</projectGroupId>
                        <projectArtifactId>${project.artifactId}</projectArtifactId>
                        <projectVersion>${project.version}</projectVersion>
                    </attributes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.buschmais.jqassistant</groupId>
                <artifactId>jqassistant-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>package-manual</id>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <attach>true</attach>
                            <finalName>jqassistant-manual-${project.version}</finalName>
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptors>
                                <descriptor>${project.basedir}/src/main/assembly/manual.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-manual-source</id>
                        <goals>
                            <goal>unpack-dependencies</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <outputDirectory>${asciidoc.directory}</outputDirectory>
                            <includeTypes>zip</includeTypes>
                            <includeClassifiers>asciidoc</includeClassifiers>
                            <stripVersion>true</stripVersion>
                        </configuration>
                    </execution>
                    <execution>
                        <id>unpack-schema</id>
                        <goals>
                            <goal>unpack-dependencies</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <outputDirectory>${project.build.directory}/generated-docs</outputDirectory>
                            <includeTypes>zip</includeTypes>
                            <includeClassifiers>schema</includeClassifiers>
                            <stripVersion>true</stripVersion>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>


    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.buschmais.jqassistant.core</groupId>
                <artifactId>parent</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.core</groupId>
                <artifactId>neo4j</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>yaml2</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>json</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>junit</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>xml</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>common</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>java</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.plugin</groupId>
                <artifactId>maven3</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!--
             ! Dependency to the documentation sources of the commandline tool.
             !-->
            <dependency>
                <groupId>com.buschmais.jqassistant.cli</groupId>
                <artifactId>parent</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!--
             ! Dependency to the documentation sources of the Maven plugin.
             !-->
            <dependency>
                <groupId>com.buschmais.jqassistant</groupId>
                <artifactId>jqassistant-maven-plugin</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>asciidoc</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.core</groupId>
                <artifactId>schemata</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>schema</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant.cli</groupId>
                <artifactId>application</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>schema</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.buschmais.jqassistant</groupId>
                <artifactId>jqassistant-maven-plugin</artifactId>
                <version>${project.version}</version>
                <type>zip</type>
                <classifier>schema</classifier>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>*</artifactId>
                        <groupId>*</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>com.buschmais.jqassistant.core</groupId>
            <artifactId>parent</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.core</groupId>
            <artifactId>neo4j</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>common</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>java</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>json</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>junit</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>maven3</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>xml</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant.plugin</groupId>
            <artifactId>yaml2</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>

        <!--
         ! The documentation sources of the commandline tool
         !-->
        <dependency>
            <groupId>com.buschmais.jqassistant.cli</groupId>
            <artifactId>parent</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>

        <!--
         ! The documentation sources of the Maven plugin
         !-->
        <dependency>
            <groupId>com.buschmais.jqassistant</groupId>
            <artifactId>jqassistant-maven-plugin</artifactId>
            <type>zip</type>
            <classifier>asciidoc</classifier>
            <scope>provided</scope>
        </dependency>

        <!--
         ! The XML and JSON schemas provided by the core framework
         !-->
        <dependency>
            <groupId>com.buschmais.jqassistant.core</groupId>
            <artifactId>schemata</artifactId>
            <type>zip</type>
            <classifier>schema</classifier>
            <scope>provided</scope>
        </dependency>
        <!-- The JSON schemas for configuration files -->
        <dependency>
            <groupId>com.buschmais.jqassistant.cli</groupId>
            <artifactId>application</artifactId>
            <type>zip</type>
            <classifier>schema</classifier>
        </dependency>
        <dependency>
            <groupId>com.buschmais.jqassistant</groupId>
            <artifactId>jqassistant-maven-plugin</artifactId>
            <type>zip</type>
            <classifier>schema</classifier>
        </dependency>
    </dependencies>

</project>
