![](/img/trans.png)
[英]maven-site-plugin: Configure which page should be the index.html
[英]Asciidoctor maven plugin is generating index.html with no read permissions
asciidoctor
內部使用JRuby
,在M1
上運行時又出現相關問題:打開/創建新文件時文件模式/權限錯誤 [Apple Silicon、arm64、aarch64]
根據Update JNR for Apple Silicon varargs support #6985你需要繼續JRuby 9.2.21.0
:
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<!-- <artifactId>jruby-complete</artifactId> -->
<version>9.2.21.0</version>
</dependency>
....
您沒有將生成的文件目錄包含到類路徑中。 嘗試添加這個,
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${project.build.directory}/classes/generated-docs/api-gateway</directory>
</resource>
</resources>
...
</build>
${basedir}/src/main/resources ==> 用正確的目錄改變它
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.