Note that there are some explanatory texts on larger screens.

plurals
  1. POmaven-jdocbook-plugin coordinates and dependencies
    text
    copied!<p>I am attempting to run docbook using maven-jdocbook-plugin with maven 3.</p> <p>With a minimal configuration:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.jboss.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-jdocbook-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;default-cli&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;generate&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;sourceDirectory&gt;src/main/doc/xml&lt;/sourceDirectory&gt; &lt;sourceDocumentName&gt;DocBook.xml&lt;/sourceDocumentName&gt; &lt;formats&gt; &lt;format&gt; &lt;formatName&gt;html&lt;/formatName&gt; &lt;finalName&gt;index.html&lt;/finalName&gt; &lt;/format&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>I get the following error:</p> <pre><code> [ERROR] Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate (default-cli) on project &lt;project&gt;: Execution default-cli of goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate failed: could not locate resource [/html/chunk.xsl] -&gt; [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 &lt;project&gt;: Execution default-cli of goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.3.8:generate failed: could not locate resource [/html/chunk.xsl] </code></pre> <p>When I look in my local maven repository I see:</p> <pre><code>$ 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 </code></pre> <p>So there is a POM but no library.</p> <p>If a I give an explicit dependency for docbook-xsl, it does download content (but I still get the same error):</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;net.sf.docbook&lt;/groupId&gt; &lt;artifactId&gt;docbook-xsl&lt;/artifactId&gt; &lt;version&gt;1.76.1&lt;/version&gt; &lt;classifier&gt;ns-resources&lt;/classifier&gt; &lt;type&gt;zip&lt;/type&gt; &lt;/dependency&gt; </code></pre> <p>The only way I get it to actually generate anything is to give it a version of docbook-xsl which has a jar not a zip:</p> <pre><code>&lt;groupId&gt;net.sf.docbook&lt;/groupId&gt; &lt;artifactId&gt;docbook-xsl-ns&lt;/artifactId&gt; &lt;version&gt;1.74.0&lt;/version&gt; </code></pre> <p>How do I get the zip version of the XSL templates to work with this plugin?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload