Skip to content

Snippet from operation macro not found with asciidoctor-maven-plugin v3.1.0 #950

Closed
@sephiroth-j

Description

@sephiroth-j

After upgrading asciidoctor-maven-plugin from 3.0.0 to 3.1.0 (or 3.1.1) the operation macro seems to be broken. The referenced snippets cannot be found, but they are present and not empty.

example
A file src/main/asciidoc/demo.adoc with the content

= Demo

operation::foo/bar[snippets='curl-request,request-body,response-body,response-fields']

will result in the following warning when generating the document.

asciidoctor: WARN: demo.adoc: line 3: Snippet curl-request not found at ..\..\..\target\generated-snippets/foo/bar/curl-request.adoc for operation foo/bar
asciidoctor: WARN: demo.adoc: line 3: Snippet request-body not found at ..\..\..\target\generated-snippets/foo/bar/request-body.adoc for operation foo/bar
asciidoctor: WARN: demo.adoc: line 3: Snippet response-body not found at ..\..\..\target\generated-snippets/foo/bar/response-body.adoc for operation foo/bar
asciidoctor: WARN: demo.adoc: line 3: Snippet response-fields not found at ..\..\..\target\generated-snippets/foo/bar/response-fields.adoc for operation foo/bar

env
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
Windows 10 x64
Maven 3.9.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions