【问题标题】:sbt docbook pluginsbt 文档插件
【发布时间】:2012-10-27 17:42:26
【问题描述】:

我正在尝试将我的基于 maven 的 docbook 项目移植到 sbt...但到目前为止这是一场噩梦 :-(

给定标准项目目录:

mydoc
  + src
  |  + docbook
  |       + main.xml
  |       + chapter1.xml
  |       + chapter2.xml
  + project
  |  + plugins.sbt
  + build.sbt

... build.sbt 看起来像这样:

name := "mydoc"

version := "1.0"

scalaVersion := "2.9.2"

docBookHtmlStyleSheet in DocBook := "http://mywebside.com/docbook/xhtml/docbook.xsl

docBookXslFoStyleSheet in DocBook := "http://mywebside.com/docbook/fo/docbook.xsl

...最后 project/plugins.sbt 看起来像这样:

resolvers += ScalaToolsSnapshots

addSbtPlugin("de.undercouch" % "sbt-docbook-plugin" % "0.2-SNAPSHOT")

...我总是收到以下错误:

[warn]      ::::::::::::::::::::::::::::::::::::::::::::::
[warn]      ::          UNRESOLVED DEPENDENCIES         ::
[warn]      ::::::::::::::::::::::::::::::::::::::::::::::
[warn]      :: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found
[warn]      ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]      Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]              de.undercouch:sbt-docbook-plugin:0.2-SNAPSHOT (sbtVersion=0.11.3, scalaVersion=2.9.1)
[warn]
[error] {file:/home/j3d/Projects/home/technotes_sbt/csharp-coding-guideliens/src/project/}default-3b0f83/*:update: sbt.ResolveException: unresolved dependency: de.undercouch#sbt-docbook-plugin;0.2-SNAPSHOT: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

有什么想法吗?任何帮助将非常感激。我会再尝试一下,然后我会放弃。

谢谢, j3d

【问题讨论】:

    标签: scala maven sbt docbook typesafe-stack


    【解决方案1】:

    original project 似乎不再维护,它使用的 0.10.0 对您来说可能已经过时了。

    那里有forks,这是most recent one

    但必须自己构建并在本地发布。

    顺便说一句ScalaToolsSnapshots is depricated

    【讨论】:

    • 好的...我想我会保留 maven 并等待稳定的官方 sbt-docbook 插件。非常感谢您的支持;-)
    猜你喜欢
    • 2014-11-07
    • 2013-05-30
    • 1970-01-01
    • 2015-02-07
    • 2019-05-11
    • 2012-07-21
    • 2011-05-16
    • 2015-08-23
    • 2013-01-19
    相关资源
    最近更新 更多