# Using the Maven plugin !!! note Dokka Maven plugin does not support multi-platform projects. Minimal Maven configuration is ```xml org.jetbrains.dokka dokka-maven-plugin ${dokka.version} pre-site dokka ``` By default files will be generated in `target/dokka`. The following goals are provided by the plugin: * `dokka:dokka` - generate HTML documentation in Dokka format (showing declarations in Kotlin syntax) * `dokka:javadoc` - generate HTML documentation in Javadoc format (showing declarations in Java syntax) * `dokka:javadocJar` - generate a .jar file with Javadoc format documentation ## Configuration options The available configuration options are shown below: ```xml org.jetbrains.dokka dokka-maven-plugin ${dokka.version} pre-site dokka false data some/out/dir default false packages.md extra.md PUBLIC PRIVATE PROTECTED INTERNAL PACKAGE src/test/samples false true 6 false true true src/main/kotlin src/main/kotlin JVM ${project.basedir}/src/main/kotlin https://github.com/cy6erGn0m/vertx3-lang-kotlin/blob/master/src/main/kotlin #L false false https://example.com/docs/ kotlin($|\.).* false true false PUBLIC PRIVATE PROTECTED INTERNAL PACKAGE org.jetbrains.dokka gfm-plugin ${dokka.version} ``` ## Applying plugins You can add plugins inside the `dokkaPlugins` block: ```xml org.jetbrains.dokka dokka-maven-plugin ${dokka.version} pre-site dokka org.jetbrains.dokka kotlin-as-java-plugin ${dokka.version} ``` Some plugins can be configured separately using plugin's fully qualified name. For example: ```xml ``` ## Example project Please see the [Dokka Maven example project](https://github.com/Kotlin/dokka/tree/master/examples/maven) for an example.