XmlJavaTypeAdapter和Enounciate?

XmlJavaTypeAdapter和Enounciate?,java,jax-rs,enunciate,Java,Jax Rs,Enunciate,我很难对我的项目进行阐述。该项目是一个多模块maven项目,可从。我想要的只是API文档。没有别的了。我们曾经通过Maven和Hudson让它工作,但不久前它坏了,设置它的人不在。实际上,我更喜欢通过命令行界面来实现这一点,但是如果有人有Maven解决方案,我会接受它 我的明确命令行是: /home/novalis/otp/enunciate-1.23/bin/enunciate -v -f /home/novalis/otp/workspace/opentripplanner/opentrip

我很难对我的项目进行阐述。该项目是一个多模块maven项目,可从。我想要的只是API文档。没有别的了。我们曾经通过Maven和Hudson让它工作,但不久前它坏了,设置它的人不在。实际上,我更喜欢通过命令行界面来实现这一点,但是如果有人有Maven解决方案,我会接受它

我的明确命令行是:

/home/novalis/otp/enunciate-1.23/bin/enunciate -v -f /home/novalis/otp/workspace/opentripplanner/opentripplanner-api-webapp/enunciate.xml `find /home/novalis/otp/workspace/opentripplanner/ -name *.java -type f |grep -v /test/`
我的enounciate.xml如下所示:

<enunciate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.17.xsd"> 
  <services> 
    <rest> 
      <content-types> 
        <content-type type="text/plain" id="txt"/> 
      </content-types> 
    </rest> 
  </services> 
  <modules> 
    <c disabled="true"/> 
    <obj-c disabled="true"/> 
    <csharp disabled="true"/> 
    <jaxws-client disabled="true"/> 
    <docs title="OpenTripPlanner API"
          base="src/main/resources/docs-theme"/>
  </modules> 
</enunciate> 

AgencyAndIdAdapter不适应AgencyAndId。当我运行它时,实际的代码运行得很好。我尝试过用XmlAdapter构建一个小型测试用例,该测试用例采用随机Java类(JPanel),效果很好。所以我想不出如何进一步减少这个问题


我不认为Autowire/Component/etc的错误导致了这种情况,因为如果我排除了所有包含这些注释的文件(| xargs grep-L'Autowire | Component | Request'就在结束回勾之前),我仍然会得到剩余的错误。不过,修复这些问题也很好。

请参阅附加到以下组件的修补程序:


我在邮件列表上询问过,很明显,一个补丁正在开发中。
initializing enunciate.
invoking enunciate:generate step...
error: Could not create declaration for annotation type Autowire
error: Could not create declaration for annotation type Component
error: Could not create declaration for annotation type Autowired
error: Could not create declaration for annotation type Required
4 errors
Exception in thread "main" org.codehaus.enunciate.contract.validation.ValidationException: /home/novalis/otp/workspace/opentripplanner/opentripplanner-routing/src/main/java/org/opentripplanner/routing/patch/StopNotePatch.java:58: stop: adapter org.opentripplanner.routing.patch.AgencyAndIdAdapter does not adapt AgencyAndId
    at org.codehaus.enunciate.contract.jaxb.adapters.AdapterUtil.findAdapterType(AdapterUtil.java:134)
    at org.codehaus.enunciate.contract.jaxb.adapters.AdapterUtil.findAdapterType(AdapterUtil.java:57)
[more traceback snipped]