Skip to content

Instantly share code, notes, and snippets.

@yclian
Created February 18, 2014 06:21
Show Gist options
  • Save yclian/9065566 to your computer and use it in GitHub Desktop.
Save yclian/9065566 to your computer and use it in GitHub Desktop.
Sample configuration of Maven WADL Plugin
<plugin>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>maven-wadl-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate</goal>
</goals>
<phase>prepare-package</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
...
</dependencies>
<configuration>
<wadlFile>${restdoc.directory}/foo.wadl</wadlFile>
<formatWadlFile>true</formatWadlFile>
<baseUri>http://example.com:8080/foo/rest/</baseUri>
<packagesResourceConfig>
<param>..</param>
</packagesResourceConfig>
<wadlGenerators>
<wadlGeneratorDescription>
<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc
</className>
<properties>
<property>
<name>applicationDocsFile</name>
<value>${xsl.directory}/application-doc.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
<wadlGeneratorDescription>
<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport
</className>
<properties>
<property>
<name>grammarsFile</name>
<value>${xsl.directory}/application-grammars.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
<wadlGeneratorDescription>
<className>
com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport
</className>
<properties>
<property>
<name>resourceDocFile</name>
<value>${restdoc.directory}/resourcedoc.xml</value>
</property>
</properties>
</wadlGeneratorDescription>
</wadlGenerators>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment