1

我正在尝试在 Ubuntu 14.04 上安装 DSpace 4.1,但在尝试使用 Maven(使用mvn package)构建安装包时出现持续错误,即:

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.dspace:dspace:4.1
          (/home/dspace/dspace-4.1-release/dspace/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.dspace:dspace-parent:4.1:
            Failure to find org.sonatype.oss:oss-parent:pom:7 in
            http://oss.sonatype.org/content/repositories/releases/ was cached in
            the local repository, resolution will not be reattempted until the
            update interval of sonatype-releases has elapsed or updates are
            forced and 'parent.relativePath' points at no local POM @
            org.dspace:dspace-parent:4.1, /home/dspace/dspace-4.1-release/pom.xml,
            line 20, column 13 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read
        the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

我试过为 Maven 定义一个代理,我试过没有 Maven 的代理。我尝试使用 DSpace 4.2 和 4.1。运行mvn clean得到同样的错误。我检查了 sonatype 存储库,似乎 pom.xml 提到的版本不存在(我没有对 pom.xml 文件进行任何更改)。

软件信息:

  • 操作系统:Ubuntu 14.04 (Trusty Tahr)。
  • DSpace 4.1,二进制版本(我也尝试过 4.2,二进制版本,但仍然出现相同的错误)。
  • 阿帕奇 Maven 3.0.5。
4

1 回答 1

1

尝试mvn package在根文件夹中运行,/home/dspace/dspace-4.1-release/而不是在/home/dspace/dspace-4.1-release/dspace

于 2014-11-02T09:06:59.877 回答