2012-03-02 7 views
4

Mavenを使用してEnunciate 1.25を使用して文書化したいいくつかのRESTful Webサービスがあります。カスタムenunciate.xmlなしでビルドすると、すべてのクライアントライブラリが期待どおりにビルドされます。Enunciateを使用してJavaクライアントライブラリを生成

... 
<build> 
     <plugins> 
      <plugin> 
       <groupId>org.codehaus.enunciate</groupId> 
       <artifactId>maven-enunciate-plugin</artifactId> 
       <version>${maven-enunciate-plugin.version}</version> 
       <!-- configuration> 
        <configFile>src/main/resources/enunciate.xml</configFile> 
       </configuration --> 
       <executions> 
        <execution> 
         <goals> 
          <goal>assemble</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 
... 

はできるだけ早く私は私が私のカスタムenunciate.xmlを追加する追加すると、Java用のクライアントライブラリには、私が間違っているか不足して行っている可能性は何

<?xml version="1.0"?> 
<enunciate label="service/myservice" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.25.xsd"> 

    <modules> 
     <docs splashPackage="myservice.service" 
      includeDefaultDownloads="false" disableRestMountpoint="true" 
      applyWsdlFilter="false" docsDir="api" title="My Service API" 
      copyright="ME Inc" /> 
     <basic-app disabled="false" /> 
     <java-client disabled="false" /> 
     <xml disabled="false" /> 
     <jaxws-client disabled="false" /> 
     <jboss disabled="false" /> 
     <jaxws-ri disabled="true" /> 
     <jaxws-support disabled="true" /> 
     <csharp disabled="true" /> 
     <jersey disabled="true" /> 
     <c disabled="true" /> 
     <obj-c disabled="true" /> 
    </modules> 

    <webapp disabled="false" mergeWebXML="../webapp/WEB-INF/web.xml" /> 

    <namespaces> 
     <namespace uri="http://schema.me/services/myservice" id="myservice" /> 
    </namespaces> 

    <services> 
     <rest defaultRestSubcontext="/" /> 
    </services> 

    <api-classes> 
     <include pattern="myservice.service.*" /> 
    </api-classes> 

</enunciate> 

を生成されませんか?

+2

デバッグログの出力から情報を取得していますか(「mvn -X」など)。 「java-client module is disabled ...」のようなものが表示されることがあります。 –

答えて

3

includeDefaultDownloads = "false"がtrueになる必要があります。

関連する問題