我使用 Enunciate 作为 API 文档生成的 Maven 插件。我希望压缩生成的文档,但到目前为止还没有找到方法。文档已生成,但在目录中而不是在 zip 文件中。这是我的pom的摘录:
<plugin>
<!-- auto-generate docs for REST API -->
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<configuration>
<configFile>enunciate.xml</configFile>
<!-- the directory where to put the docs -->
<docsDir>${project.parent.basedir}/VrmMisc/Docs/SMA_API</docsDir>
<!-- <docsSubdir>${project.parent.basedir}/VrmMisc/Docs/SMA_API</docsSubdir> -->
</configuration>
<executions>
<execution>
<goals>
<goal>docs</goal>
</goals>
</execution>
</executions>
</plugin>
依赖:
<dependency>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>enunciate-rt</artifactId>
<version>${enunciate.plugin.version}</version>
<exclusions>
<exclusion>
<artifactId>activation</artifactId>
<groupId>javax.activation</groupId>
</exclusion>
<exclusion>
<artifactId>enunciate-jaxws-ri-rt</artifactId>
<groupId>org.codehaus.enunciate</groupId>
</exclusion>
<exclusion>
<artifactId>enunciate-jersey-rt</artifactId>
<groupId>org.codehaus.enunciate</groupId>
</exclusion>
<exclusion>
<artifactId>jersey-server</artifactId>
<groupId>com.sun.jersey</groupId>
</exclusion>
</exclusions>
</dependency>
我正在使用 Enunciate 版本 1.26.2。