Hi

Freeman did it for a java2wadl, where JavaDocs info gets collected during the build time, but at the runtime JavaDocs are only visible from the dedicated jar. I do not know how would one load a javadocs jar without knowing the full Jar name, perhaps it can be done based on some convention...

Sergey

On 22/01/17 16:21, Vjacheslav V. Borisov wrote:
Hi!

I have configured javadoc using this config:

    <bean id="swagger2Serializers"
class="org.apache.cxf.jaxrs.swagger.DefaultSwagger2Serializers">
        <property name="javaDocPath"
value="WEB-INF/lib/bankaccounting-api-1.0-SNAPSHOT-javadoc.jar"/>
    </bean>
    <bean id="swagger2Feature"
class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
        <property name="swagger2Serializers" ref="swagger2Serializers"/>

But this jar is regular war dependency lib, is there possibility to
configure javadoc using regular classpath, not referencing actual jar
version?

2017-01-17 17:08 GMT+04:00 Francesco Chicchiriccò <[email protected]>:


The DefaultSwagger2Serializers class requires a JavadocProvider in order
to be able to extract info from Javadocs; use one the methods [1] to
configure.

HTH
Regards.

[1] https://github.com/apache/cxf/blob/3.1.x-fixes/rt/rs/
description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/
DefaultSwagger2Serializers.java#L198-L217





--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to