Skip to content

Commit

Permalink
Moving the mustache template (for the rest docs) to build tools to en…
Browse files Browse the repository at this point in the history
…able generation of docs when offline.
  • Loading branch information
jkremser authored and jshaughn committed May 22, 2015
1 parent edb00c8 commit ebd4d00
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion hawkular-alerts-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,30 @@
<build>
<!-- Document generation from the Annotations on the REST-API. -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.hawkular</groupId>
<artifactId>hawkular-build-tools</artifactId>
<version>${version.org.hawkular.hawkular-build-tools}</version>
<type>jar</type>
<includes>**/*.mustache</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
Expand All @@ -143,7 +167,7 @@
<locations>org.hawkular.alerts.rest</locations>
<apiVersion>1.0</apiVersion>
<basePath>http://localhost:8080/hawkular/alerts</basePath>
<outputTemplate>https://raw.githubusercontent.com/hawkular/hawkular.github.io/swagger/asciidoc.mustache</outputTemplate>
<outputTemplate>${project.build.directory}/dependency/hawkular-documentation/asciidoc.mustache</outputTemplate>
<swaggerDirectory>${project.build.directory}/generated/swagger-ui</swaggerDirectory>
<swaggerInternalFilter>org.hawkular.alerts.rest.swagger.filter.JaxRsFilter</swaggerInternalFilter>
<swaggerApiReader>com.wordnik.swagger.jaxrs.reader.DefaultJaxrsApiReader</swaggerApiReader>
Expand Down

0 comments on commit ebd4d00

Please sign in to comment.