Using Enunciate in multi-module Maven project -


i using enunciate generate documentation resteasy services inside multi-module maven project. have problems doc generation when trying description of response object atributes.

for instance, if service defined as:

@get @path("access/account") @produces({ mediatype.application_json, mediatype.application_xml }) account getaccount(@context httpservletrequest hsr, @context uriinfo info) throws restapiexception; 

when documentation generated no atribute description generated.

name                type    description idprofile           int     (no documentation provided) idlanguage          int     (no documentation provided) idregion            int     (no documentation provided) usertype            string  (no documentation provided)  

in response objects (no documentation provided). 1 important think response classes in different maven module services are. response classes situated in util module. services situated in ejb module.

the reason problem multi-module maven project, because if define response object class in ejb module too, documentation perfect (also description generated).

the reason , solution described here: http://docs.codehaus.org/display/enunciate/multi-module+projects

despite still don't know , set inside different poms (ejb , util) solve problem.

any apreciated.

so have tried "import" account class described in multi-module projects?

<enunciate ...>   <api-import pattern="com.mycompany.account" />   <api-import pattern="com.mycompany.*" />   ... </enunciate> 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -