0

我正在尝试按照Apache的说明设置 OpenCMIS InMemory 存储库,但是在运行 maven 命令时我不断收到以下错误mvn clean install -Dmaven.test.skip=true

    [INFO] 4 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Apache Chemistry OpenCMIS ......................... SUCCESS [1.665s]
    [INFO] OpenCMIS Commons API .............................. SUCCESS [3.327s]
    [INFO] OpenCMIS Commons Implementation ................... SUCCESS [7.599s]
    [INFO] OpenCMIS Client API ............................... SUCCESS [0.714s]
    [INFO] OpenCMIS Client Bindings Implementation ........... FAILURE [2.285s]
    [INFO] OpenCMIS Client Implementation .................... SKIPPED
    [INFO] OpenCMIS Server Support ........................... SKIPPED
    [INFO] OpenCMIS Server Implementation .................... SKIPPED
    [INFO] OpenCMIS Server Implementation WAR packaging ...... SKIPPED
    [INFO] OpenCMIS Test Utilities ........................... SKIPPED
    [INFO] OpenCMIS InMemory Server WAR packaging ............ SKIPPED
    [INFO] OpenCMIS FileShare Server Implementation .......... SKIPPED
    [INFO] OpenCMIS JCR Server Implementation ................ SKIPPED
    [INFO] OpenCMIS Server Archetype ......................... SKIPPED
    [INFO] OpenCMIS Bridge WAR packaging ..................... SKIPPED
    [INFO] OpenCMIS Test Compatibility Kit ................... SKIPPED
    [INFO] OpenCMIS Full Integration Tests ................... SKIPPED
    [INFO] OpenCMIS Tools .................................... SKIPPED
    [INFO] OpenCMIS Browser .................................. SKIPPED
    [INFO] OpenCMIS Browser Application ...................... SKIPPED
    [INFO] OpenCMIS Workbench ................................ SKIPPED
    [INFO] OpenCMIS OSGi Client Wrapper ...................... SKIPPED
    [INFO] OpenCMIS Android Client ........................... SKIPPED
    [INFO] OpenCMIS Assemblies Distribution .................. SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 16.533s
    [INFO] Finished at: Thu May 08 18:42:47 CEST 2014
    [INFO] Final Memory: 33M/63M
    [INFO] ------------------------------------------------------------------------
    [WARNING] The requested profile "redhat-techpreview-all-repository" could not be
     activated because it does not exist.
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
    5.1:compile (default-compile) on project chemistry-opencmis-client-bindings: Com
    pilation failure: Compilation failure:
    [ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
    lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
    cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[41,40] cannot find
     symbol
    [ERROR] symbol  : class StreamingAttachmentFeature
    [ERROR] location: package com.sun.xml.internal.ws.developer
    [ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
    lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
    cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[65,28] cannot find
     symbol
    [ERROR] symbol  : class StreamingAttachmentFeature
    [ERROR] location: class org.apache.chemistry.opencmis.client.bindings.spi.webser
    vices.SunJREPortProvider
    [ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
    lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
    cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[115,66] cannot fin
    d symbol
    [ERROR] symbol  : variable CONNECT_TIMEOUT
    [ERROR] location: interface com.sun.xml.internal.ws.developer.JAXWSProperties
    [ERROR] C:\Users\xtdell72\Desktop\chemistry-opencmis-0.11.0\chemistry-opencmis-c
    lient\chemistry-opencmis-client-bindings\src\main\java\org\apache\chemistry\open
    cmis\client\bindings\spi\webservices\SunJREPortProvider.java:[120,66] cannot fin
    d symbol
    [ERROR] symbol  : variable REQUEST_TIMEOUT
    [ERROR] location: interface com.sun.xml.internal.ws.developer.JAXWSProperties
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [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 rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
    eption
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR]   mvn <goals> -rf :chemistry-opencmis-client-bindings

现在,我猜错误(至少其中一些为[ERROR] symbol : variable CONNECT_TIMEOUT)是因为它没有找到 JAX-WS 库,但由于我刚刚下载了代码并按照说明进行操作,所以我看不出我能做些什么来解决它或在哪里添加依赖项。

4

2 回答 2

1

你应该检查你的 Maven 版本。Apache 网站说需要 2.2.1 版本,而不是 java 1.5。

于 2014-05-08T18:52:53.540 回答
1

您正在尝试构建开发版本,该版本并不总是稳定的。

如果您只想使用 InMemory 存储库,请从https://chemistry.apache.org/java/download.html下载“OpenCMIS Server Webapps”包。

于 2014-05-09T10:53:44.477 回答