mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +08:00

This commit commit adds restdocs and stub generators and initiate a reference guide for Initializr. Most of the controller tests now use MockMvc via a custom version of the MockMvcClientHttpRequestFactory (from spring-test). The snippet names are auto-generated in the form <HttpMethod>/<path>[/queries(/<name-value)*][/headers](/name-value)*] when there is a comma-separated value in a header it is abbreviated as <first-value>.MORE. Wiremock stubs are generated in the same form under snippets/stubs (with ".json" as the file extension). The controller tests that stayed as full stack use a different base class AbstractFullStackInitializrIntegrationTests. A long JSON body can be broken out into separate snippets for each field (or rather a list of fields supplied by the user). This feature was already used with hard-coded snippets in the wiki. See gh-295
219 lines
6.1 KiB
XML
219 lines
6.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
<packaging>pom</packaging>
|
|
<name>Spring Initializr</name>
|
|
<description>A web-based quickstart generator for Spring projects</description>
|
|
<url>https://github.com/spring-io/initializr</url>
|
|
<organization>
|
|
<name>Pivotal Software, Inc.</name>
|
|
<url>http://www.spring.io</url>
|
|
</organization>
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
</license>
|
|
</licenses>
|
|
<scm>
|
|
<connection>scm:git:https://github.com/spring-io/initializr</connection>
|
|
<url>https://github.com/spring-io/initializr</url>
|
|
</scm>
|
|
<developers>
|
|
<developer>
|
|
<id>snicoll</id>
|
|
<name>Stephane Nicoll</name>
|
|
<email>snicoll at pivotal.io</email>
|
|
<organization>Pivotal Software, Inc.</organization>
|
|
<organizationUrl>http://www.spring.io</organizationUrl>
|
|
<roles>
|
|
<role>Project lead</role>
|
|
</roles>
|
|
</developer>
|
|
</developers>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<spring.boot.version>1.4.4.RELEASE</spring.boot.version>
|
|
<java.version>1.8</java.version>
|
|
</properties>
|
|
|
|
<modules>
|
|
<module>initializr-actuator</module>
|
|
<module>initializr-generator</module>
|
|
<module>initializr-web</module>
|
|
<module>initializr-stubs</module>
|
|
</modules>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr-actuator</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr-generator</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr-generator</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
<type>test-jar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr-web</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.initializr</groupId>
|
|
<artifactId>initializr-web</artifactId>
|
|
<version>0.3.0.BUILD-SNAPSHOT</version>
|
|
<type>test-jar</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${spring.boot.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>xmlunit</groupId>
|
|
<artifactId>xmlunit</artifactId>
|
|
<version>1.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.gebish</groupId>
|
|
<artifactId>geb-core</artifactId>
|
|
<version>0.10.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-all</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>1.5.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-docs</id>
|
|
<phase>prepare-package</phase>
|
|
<inherited>false</inherited>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<backend>html</backend>
|
|
<doctype>book</doctype>
|
|
<attributes>
|
|
<snippets>${basedir}/initializr-web/target/snippets</snippets>
|
|
</attributes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.1</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.6</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.gmavenplus</groupId>
|
|
<artifactId>gmavenplus-plugin</artifactId>
|
|
<version>1.5</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>addSources</goal>
|
|
<goal>addTestSources</goal>
|
|
<goal>compile</goal>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>2.4</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.16</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>**/Abstract*.java</exclude>
|
|
<exclude>**/*SmokeTests.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring.boot.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>2.1.11</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>full</id>
|
|
<modules>
|
|
<module>initializr-service</module>
|
|
</modules>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|