设置OpenCMIS InMemory存储库

时间:2014-05-08 17:07:56

标签: java maven cmis opencmis apache-chemistry

我正按照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库,但是因为我刚刚下载了代码并按照说明操作,我看不出是什么我可以做到解决它或在哪里添加依赖项。

2 个答案:

答案 0 :(得分:1)

你应该检查你的maven版本。 Apache网站说,对于java 1.5,需要2.2.1版本。

答案 1 :(得分:1)

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

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