cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5479) Create a Maven plugin for generating WADL at build time
Date Fri, 06 Jun 2014 13:46:02 GMT

    [ https://issues.apache.org/jira/browse/CXF-5479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019847#comment-14019847
] 

Francesco Chicchiriccò edited comment on CXF-5479 at 6/6/14 1:44 PM:
---------------------------------------------------------------------

Building the plugin from source, with this configuration:

{code:xml}
      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-java2wadl-plugin</artifactId>
        <version>3.0.1-SNAPSHOT</version>
        <executions>
          <execution>
            <id>parsejavadoc</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>parsejavadoc</goal>
            </goals>
          </execution>
          <execution>
            <id>process-classes</id>
            <phase>process-classes</phase>
            <goals>
              <goal>java2wadl</goal>
            </goals>
            <configuration>
              <classResourceNames>
                <classResourceName>org.apache.syncope.common.services.ConfigurationService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ConnectorService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.EntitlementService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.LoggerService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.NotificationService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.PolicyService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ReportService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ResourceService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.RoleService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.SchemaService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.TaskService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserSelfService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserWorkflowService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.WorkflowService</classResourceName>
              </classResourceNames>
              <docProvider>org.apache.cxf.maven_plugin.javatowadl.ResourceMapJavaDocProvider</docProvider>
              <attachWadl>true</attachWadl>
            </configuration>
          </execution>
        </executions>
      </plugin>
{code}

it does not attempt to instantiate interfaces any more.

Unfortunately, it only generates {{target/generated/wadl/ConfigurationService.wadl}} - e.g.
only the first service, not the full application WADL - and grammar is empty.

Other things:
 * is there any reason why {{javadoc-options-javadoc-resources.xml}} is not generated under
{{target/}}? It makes RAT fail.
 * [WARNING] Source files encoding has not been set, using platform encoding UTF-8, i.e. build
is platform dependent!
 * [ERROR] Unrecognized access level to show 'null'. Defaulting to protected.

Thanks for your support.


was (Author: ilgrosso):
Building the plugin from source, with this configuration:

{code:xml}
      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-java2wadl-plugin</artifactId>
        <version>3.0.1-SNAPSHOT</version>
        <executions>
          <execution>
            <id>parsejavadoc</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>parsejavadoc</goal>
            </goals>
          </execution>
          <execution>
            <id>process-classes</id>
            <phase>process-classes</phase>
            <goals>
              <goal>java2wadl</goal>
            </goals>
            <configuration>
              <classResourceNames>
                <classResourceName>org.apache.syncope.common.services.ConfigurationService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ConnectorService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.EntitlementService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.LoggerService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.NotificationService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.PolicyService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ReportService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.ResourceService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.RoleService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.SchemaService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.TaskService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserSelfService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.UserWorkflowService</classResourceName>
                <classResourceName>org.apache.syncope.common.services.WorkflowService</classResourceName>
              </classResourceNames>
              <docProvider>org.apache.cxf.maven_plugin.javatowadl.ResourceMapJavaDocProvider</docProvider>
              <attachWadl>true</attachWadl>
            </configuration>
          </execution>
        </executions>
      </plugin>
{code}

it does not attempt to instantiate interfaces any more.

Unfortunately, it only generates {{target/generated/wadl/ConfigurationService.wadl}} - e.g.
only the first service, not the full application WADL - and grammar is empty.

Moreover, is there any reason why {{javadoc-options-javadoc-resources.xml}} is not generated
under {{target/}}? It makes RAT fail.
Thanks for your support.

> Create a Maven plugin for generating WADL at build time
> -------------------------------------------------------
>
>                 Key: CXF-5479
>                 URL: https://issues.apache.org/jira/browse/CXF-5479
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Assignee: Freeman Fang
>             Fix For: 3.0.0
>
>         Attachments: CXF-5479-doclet.patch, CXF-5479.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message