miku-docx2md-java-maven is the separated Maven plugin adapter for
miku-docx2md-java.
The plugin exposes DOCX to Markdown conversion through Maven goals while
keeping product conversion behavior in the Java runtime artifact
jp.igapyon:miku-docx2md.
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.
Single-file conversion:
mvn jp.igapyon:miku-docx2md-maven-plugin:1.0.0:convert \
-Dmiku-docx2md.inputFile=path/to/input.docx \
-Dmiku-docx2md.outputFile=path/to/output.mdDirectory conversion:
mvn jp.igapyon:miku-docx2md-maven-plugin:1.0.0:convert-directory \
-Dmiku-docx2md.inputDirectory=path/to/docx \
-Dmiku-docx2md.outputDirectory=path/to/markdown \
-Dmiku-docx2md.recursive=falseShort-form invocation such as mvn miku-docx2md:convert 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-docx2md-java/pom.xml installThis installs the CLI/runtime jar as the Maven artifact
jp.igapyon:miku-docx2md:1.0.0 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 DOCX inputs and run the full coordinate commands shown in Usage.
The plugin depends on the runtime artifact by Maven coordinates:
jp.igapyon:miku-docx2md:1.0.0
It does not use a source-tree dependency on miku-docx2md-java.
convert:
miku-docx2md.inputFile: required DOCX input filemiku-docx2md.outputFile: Markdown output file; defaults to<input basename>.mdmiku-docx2md.summaryFile: optional summary text output filemiku-docx2md.assetsDirectory: optional image asset output directorymiku-docx2md.includeUnsupportedComments: include unsupported-structure diagnostic commentsmiku-docx2md.skip: skip plugin executionmiku-docx2md.verbose: log selected runtime progress messages
convert-directory:
miku-docx2md.inputDirectory: required directory scanned for.docxfilesmiku-docx2md.outputDirectory: Markdown output directory; defaults to writing next to each input filemiku-docx2md.assetsDirectory: optional root directory for per-document asset directoriesmiku-docx2md.recursive: scan input directory recursivelymiku-docx2md.includeUnsupportedComments: include unsupported-structure diagnostic commentsmiku-docx2md.skip: skip plugin executionmiku-docx2md.verbose: log selected runtime progress messages
For development of this plugin repository, install the compatible runtime artifact first when it is not already available from a Maven repository:
mvn -f workplace/miku-docx2md-java/pom.xml installWhen testing against a local runtime change that has not been pushed to GitHub yet, install that checkout instead:
mvn -f ../miku-docx2md-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.