JAMES-2205 Add a profile for generating swagger json files
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/466d91a4 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/466d91a4 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/466d91a4 Branch: refs/heads/master Commit: 466d91a4fbbd09d7a0c63fd5e00f08d4218f1221 Parents: fa0bcd5 Author: Antoine Duprat <adup...@linagora.com> Authored: Fri Oct 27 15:51:33 2017 +0200 Committer: benwa <btell...@linagora.com> Committed: Wed Nov 1 17:56:43 2017 +0700 ---------------------------------------------------------------------- pom.xml | 5 +++ server/protocols/webadmin/webadmin-data/pom.xml | 33 ++++++++++++++++++++ .../protocols/webadmin/webadmin-mailbox/pom.xml | 33 ++++++++++++++++++++ .../protocols/webadmin/webadmin-swagger/pom.xml | 33 ++++++++++++++++++++ 4 files changed, 104 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/466d91a4/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index d1cdfb1..5e8f82f 100644 --- a/pom.xml +++ b/pom.xml @@ -1434,6 +1434,11 @@ <version>0.5.0</version> </dependency> <dependency> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <version>3.1.5</version> + </dependency> + <dependency> <groupId>com.github.steveash.guavate</groupId> <artifactId>guavate</artifactId> <version>${guavate.version}</version> http://git-wip-us.apache.org/repos/asf/james-project/blob/466d91a4/server/protocols/webadmin/webadmin-data/pom.xml ---------------------------------------------------------------------- diff --git a/server/protocols/webadmin/webadmin-data/pom.xml b/server/protocols/webadmin/webadmin-data/pom.xml index 8fbe4f9..e40e6ae 100644 --- a/server/protocols/webadmin/webadmin-data/pom.xml +++ b/server/protocols/webadmin/webadmin-data/pom.xml @@ -136,5 +136,38 @@ </plugins> </build> </profile> + <profile> + <id>swagger-json</id> + <build> + <plugins> + <plugin> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <configuration> + <apiSources> + <apiSource> + <springmvc>false</springmvc> + <locations>org.apache.james.webadmin</locations> + <info> + <title>Swagger Maven Plugin</title> + <version>v1</version> + </info> + <swaggerDirectory>${project.build.directory}</swaggerDirectory> + <swaggerFileName>webadmin-data</swaggerFileName> + </apiSource> + </apiSources> + </configuration> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> http://git-wip-us.apache.org/repos/asf/james-project/blob/466d91a4/server/protocols/webadmin/webadmin-mailbox/pom.xml ---------------------------------------------------------------------- diff --git a/server/protocols/webadmin/webadmin-mailbox/pom.xml b/server/protocols/webadmin/webadmin-mailbox/pom.xml index 6c543f8..fd9e501 100644 --- a/server/protocols/webadmin/webadmin-mailbox/pom.xml +++ b/server/protocols/webadmin/webadmin-mailbox/pom.xml @@ -156,5 +156,38 @@ </plugins> </build> </profile> + <profile> + <id>swagger-json</id> + <build> + <plugins> + <plugin> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <configuration> + <apiSources> + <apiSource> + <springmvc>false</springmvc> + <locations>org.apache.james.webadmin</locations> + <info> + <title>Swagger Maven Plugin</title> + <version>v1</version> + </info> + <swaggerDirectory>${project.build.directory}</swaggerDirectory> + <swaggerFileName>webadmin-mailbox</swaggerFileName> + </apiSource> + </apiSources> + </configuration> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> http://git-wip-us.apache.org/repos/asf/james-project/blob/466d91a4/server/protocols/webadmin/webadmin-swagger/pom.xml ---------------------------------------------------------------------- diff --git a/server/protocols/webadmin/webadmin-swagger/pom.xml b/server/protocols/webadmin/webadmin-swagger/pom.xml index 9d5d97b..739289d 100644 --- a/server/protocols/webadmin/webadmin-swagger/pom.xml +++ b/server/protocols/webadmin/webadmin-swagger/pom.xml @@ -59,5 +59,38 @@ </plugins> </build> </profile> + <profile> + <id>swagger-json</id> + <build> + <plugins> + <plugin> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <configuration> + <apiSources> + <apiSource> + <springmvc>false</springmvc> + <locations>org.apache.james.webadmin</locations> + <info> + <title>Swagger Maven Plugin</title> + <version>v1</version> + </info> + <swaggerDirectory>${project.build.directory}</swaggerDirectory> + <swaggerFileName>webadmin-swagger</swaggerFileName> + </apiSource> + </apiSources> + </configuration> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org