java - XmlJavaTypeAdapter and enunciate? -


i'm having hard time running enunciate on project. project multi-module maven project, available https://svn.opentripplanner.org/trunk . want out of enunciate api docs. nothing else. used have working via maven , hudson, broke while ago, , person set isn't available. really, prefer via command-line interface, if has maven solution, i'll take it.

my enunciate command-line is:

/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/` 

my enunciate.xml looks this:

<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>  

and enunciate output is:

initializing enunciate. invoking enunciate:generate step... error: not create declaration annotation type autowire error: not create declaration annotation type component error: not create declaration annotation type autowired error: not create declaration 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 not adapt agencyandid     @ org.codehaus.enunciate.contract.jaxb.adapters.adapterutil.findadaptertype(adapterutil.java:134)     @ org.codehaus.enunciate.contract.jaxb.adapters.adapterutil.findadaptertype(adapterutil.java:57) [more traceback snipped] 

agencyandidadapter does adapt agencyandid. actual code works fine when run it. i've tried building tiny test case xmladapter adapting random java class (jpanel), , works fine. can't figure out how reduce problem further.

i don't think errors autowire/component/etc causing this, because if exclude files contain annotations (|xargs grep -l 'autowire|component|request' before closing backtick), still remainder of error. still, fix those, too.

see patch attached to:

http://codehaus.markmail.org/thread/xuyzbe7aigitj5vj


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -