miku-indexgen-java-maven is the separated Maven plugin adapter for
miku-indexgen-java.
The plugin exposes index generation through Maven goals while keeping product
processing behavior in the Java runtime artifact jp.igapyon:miku-indexgen.
Run the plugin from a Maven project directory. Use full plugin coordinates so the execution does not depend on local Maven plugin group configuration.
If both artifacts are available from a Maven repository, no project POM change is required for direct invocation.
Generate an index for one directory:
mvn jp.igapyon:miku-indexgen-maven-plugin:1.6.2:index \
-Dmiku-indexgen.inputDirectory=docs \
-Dmiku-indexgen.outputDirectory=target/generated-index \
-Dmiku-indexgen.markdown=trueGenerate indexes for each direct child directory:
mvn jp.igapyon:miku-indexgen-maven-plugin:1.6.2:index-child-directories \
-Dmiku-indexgen.inputParentDirectory=docs-parent \
-Dmiku-indexgen.outputDirectory=target/generated-index \
-Dmiku-indexgen.markdown=trueShort-form invocation such as mvn miku-indexgen:index requires Maven plugin
group configuration for jp.igapyon. Use full coordinates for reliable local
verification.
When the runtime or plugin has not been published yet, install both artifacts into the local Maven repository before using the plugin from another project.
Install the compatible runtime artifact:
mvn -f ../miku-indexgen-java/pom.xml installThis installs the CLI/runtime jar as the Maven artifact
jp.igapyon:miku-indexgen:1.6.2 in the local Maven repository. The plugin uses
that jar as a library dependency while the same jar can also be run with
java -jar as the CLI runtime.
Install this Maven plugin artifact:
mvn installThen move to the Maven project that contains the source files and run the full coordinate commands shown in Usage.
The plugin depends on the runtime artifact by Maven coordinates:
jp.igapyon:miku-indexgen:1.6.2
It does not use a source-tree dependency on miku-indexgen-java.
Note that this Maven dependency is resolved from a Maven repository or the local Maven repository. It is not downloaded directly from GitHub Releases. The executable runtime jar published as a GitHub Release asset is for manual CLI use. To test an unpublished runtime with this plugin, install the runtime artifact locally with the command above.
index:
miku-indexgen.inputDirectory: directory to scan; defaults to the Maven project base directorymiku-indexgen.outputDirectory: output directory forindex.jsonand optionalindex.mdmiku-indexgen.title: optional root-level titlemiku-indexgen.markdown: also generateindex.mdmiku-indexgen.includeGeneratorMetadata: include root-level generator metadatajsonSummaryPaths: JSON Pointer list configured in plugin XMLmiku-indexgen.recursive: recurse into nested subdirectoriesmiku-indexgen.overwrite: overwrite existing output filesmiku-indexgen.verbose: emit verbose progress logs through the Maven loggerincludeExtensions: file extensions configured in plugin XMLexcludeGlobs: input-relative glob patterns configured in plugin XMLmiku-indexgen.inputEncoding: input text encoding, such asutf8orshift_jismiku-indexgen.outputEncoding: output text encoding, such asutf8orshift_jismiku-indexgen.skip: skip plugin execution
Generated index.json includes runtime generation metadata from
miku-indexgen 1.6.2. The Maven log reports runtime output status lines
such as add, update, and none. This plugin does not expose a refresh
goal; use the runtime CLI --refresh-index when an existing generated index
should be refreshed from its stored generation metadata.
index-child-directories:
miku-indexgen.inputParentDirectory: required parent directory whose direct child directories are processed independently- all other parameters match
index
For development of this plugin repository, install the compatible runtime artifact first when it is not already available from a Maven repository:
mvn -f ../miku-indexgen-java/pom.xml installThen build and test this plugin:
mvn test
mvn package
sh scripts/smoke-maven-plugin.shworkplace/ is a local scratch area for reference checkouts, generated smoke
outputs, and temporary verification artifacts. Only workplace/.gitkeep is
tracked.
.mvn/jvm.config is tracked for repository-local Maven JVM settings.
Apache License 2.0. See LICENSE.