Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

miku-indexgen-java-maven

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.

Usage

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=true

Generate 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=true

Short-form invocation such as mvn miku-indexgen:index requires Maven plugin group configuration for jp.igapyon. Use full coordinates for reliable local verification.

Local Unreleased Setup

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 install

This 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 install

Then 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.

Parameters

index:

  • miku-indexgen.inputDirectory: directory to scan; defaults to the Maven project base directory
  • miku-indexgen.outputDirectory: output directory for index.json and optional index.md
  • miku-indexgen.title: optional root-level title
  • miku-indexgen.markdown: also generate index.md
  • miku-indexgen.includeGeneratorMetadata: include root-level generator metadata
  • jsonSummaryPaths: JSON Pointer list configured in plugin XML
  • miku-indexgen.recursive: recurse into nested subdirectories
  • miku-indexgen.overwrite: overwrite existing output files
  • miku-indexgen.verbose: emit verbose progress logs through the Maven logger
  • includeExtensions: file extensions configured in plugin XML
  • excludeGlobs: input-relative glob patterns configured in plugin XML
  • miku-indexgen.inputEncoding: input text encoding, such as utf8 or shift_jis
  • miku-indexgen.outputEncoding: output text encoding, such as utf8 or shift_jis
  • miku-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

Development

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 install

Then build and test this plugin:

mvn test
mvn package
sh scripts/smoke-maven-plugin.sh

Repository Operation

workplace/ 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.

License

Apache License 2.0. See LICENSE.

About

Maven plugin adapter for miku-indexgen-java, exposing miku-indexgen index generation as Maven goals.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages