简体   繁体   中英

exclude some jaxb generated classes from enunciate

I am using enunciate and want to exclude certain jaxb generated classes from the documentation. How can this be done?

Is it possible to add the org.codehaus.enunciate.XmlTransient annotation via the xsd?

Thanks in advance.

  <?xml version="1.0"?>
  <enunciate ...>

    <api-classes>
      <exclude pattern="com.mycompany.nonvisible.**"/>
    </api-classes>
    ...
  </enunciate>

Try excluding the class by annotating it with @com.webcohesion.enunciate.metadata.Ignore (see user guide ). This worked for me.

I also had no success excluding JAXB classes by listing them in enunciate.xml.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM