Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add enunciate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Sep 9, 2013
1 parent 392c015 commit 144e7c2
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
18 changes: 18 additions & 0 deletions zanata-common-api/etc/enunciate/enunciate.xml
@@ -0,0 +1,18 @@
<enunciate xsi:noNamespaceSchemaLocation=
"http://enunciate.codehaus.org/schemas/enunciate-1.24.xsd">
<namespaces>
<namespace id="zanata" uri="http://www.zanata.org"/>
</namespaces>
<api-classes>
<include pattern="org.zanata.rest.service.*"/>
</api-classes>
<modules>
<docs docsDir="rest-api-docs" title="Zanata REST API"
copyright="Copyright 2008-2013 Red Hat, Inc and others."/>
<c disabled="true"/>
<csharp disabled="true"/>
<java-client disabled="true"/>
<gwt disabled="true"/>
<obj-c disabled="true"/>
</modules>
</enunciate>
54 changes: 54 additions & 0 deletions zanata-common-api/pom.xml
Expand Up @@ -35,6 +35,26 @@
</resources>

<plugins>

<plugin>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<configuration>
<configFile>etc/enunciate/enunciate.xml</configFile>

<!--
These two enunciate options are undocumented, but
their absence causes an error during site generation.
-->
<enunciateArtifactId>unused</enunciateArtifactId>
<moduleName>unused</moduleName>

<!-- The subdirectory of the site where the documentation will be put. -->
<!-- Note that if this isn't set, the documentation will overwrite the site. -->
<docsSubdir>wsdocs</docsSubdir>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
Expand Down Expand Up @@ -170,7 +190,41 @@
</pluginManagement>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<!-- apparently pluginManagement is ignored in reporting -->
<version>${enunciate.version}</version>
<configuration>
<configFile>etc/enunciate/enunciate.xml</configFile>

<!--
These two enunciate options are undocumented, but
their absence causes an error during site generation.
-->
<enunciateArtifactId>unused</enunciateArtifactId>
<moduleName>unused</moduleName>

<!-- The subdirectory of the site where the documentation will be put. -->
<!-- Note that if this isn't set, the documentation will overwrite the site. -->
<!-- <docsSubdir>restdocs</docsSubdir> -->
</configuration>
</plugin>
</plugins>
</reporting>

<dependencies>
<dependency>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>enunciate-core-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>enunciate-jersey-rt</artifactId>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
Expand Down

0 comments on commit 144e7c2

Please sign in to comment.