我試圖用跑的docbook Maven的jdocbook-插件與Maven 3Maven的jdocbook-plugin的座標和相關
隨着最低配置:
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-plugin</artifactId>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>generate</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<sourceDirectory>src/main/doc/xml</sourceDirectory>
<sourceDocumentName>DocBook.xml</sourceDocumentName>
<formats>
<format>
<formatName>html</formatName>
<finalName>index.html</finalName>
</format>
</configuration>
</plugin>
我得到以下錯誤:
[ERROR] Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate (default-cli) on project <project>: Execution default-cli of goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate failed: could not locate resource [/html/chunk.xsl] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate (default-cli) on project <project>: Execution default-cli of goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate failed: could not locate resource [/html/chunk.xsl]
當我看着我的本地倉庫我看到:
$ ls ~/.m2/repository/net/sf/docbook/docbook-xsl
$ 1.76.1
$ ls ~/.m2/repository/net/sf/docbook/docbook-xsl/1.76.1
$ _maven.repositories docbook-xsl-1.76.1.pom docbook-xsl-1.76.1.pom.sha1
所以有一個聚甲醛,但沒有圖書館。
如果我給出的DocBook-XSL的顯式依賴,它的下載內容(但我仍然得到同樣的錯誤):
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xsl</artifactId>
<version>1.76.1</version>
<classifier>ns-resources</classifier>
<type>zip</type>
</dependency>
我得到它實際產生任何的唯一辦法是給它的docbook版本,XSL其中有一個罐子沒有拉鍊的:
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xsl-ns</artifactId>
<version>1.74.0</version>
我如何獲得的XSL模板的壓縮版本,這個插件的工作?