-
Notifications
You must be signed in to change notification settings - Fork 737
Snippet from operation macro not found with asciidoctor-maven-plugin v3.1.0 #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. This appears to be due to a breaking change in the Asciidoctor Maven Plugin. With 3.0.0, the working directory when the operation macro is invoked is the directory that contains the I'll investigate further to see if REST Docs can reliably tolerate the different behaviors of the Asciidoctor Maven Plugin or if that plugin will have to be changed to restore its old behavior. In the meantime, you can work around the problem by configuring the <attributes>
<snippets>${basedir}/target/generated-snippets</snippets>
</attributes> |
The breaking change is actually in AsciidoctorJ. In 3.1.0, the Asciidoctor Maven Plugin upgraded to 3.0.0 from 2.5.x. Downgrading back to 2.5.11 by adding a |
We can fix this in REST Docs. While investigating, I've discovered that when using Gradle the |
Thanks for the quick fix and the workaround. |
Uh oh!
There was an error while loading. Please reload this page.
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 contentwill result in the following warning when generating the document.
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
The text was updated successfully, but these errors were encountered: