Browse Source

Use explicit test dependencies in samples

pull/234/merge
Dave Syer 12 years ago
parent
commit
559f907b54
  1. 16
      spring-boot-samples/pom.xml
  2. 11
      spring-boot-samples/spring-boot-sample-actuator-log4j/pom.xml
  3. 5
      spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml
  4. 5
      spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml
  5. 5
      spring-boot-samples/spring-boot-sample-actuator/pom.xml
  6. 5
      spring-boot-samples/spring-boot-sample-amqp/pom.xml
  7. 5
      spring-boot-samples/spring-boot-sample-aop/pom.xml
  8. 5
      spring-boot-samples/spring-boot-sample-batch/pom.xml
  9. 11
      spring-boot-samples/spring-boot-sample-data-jpa/pom.xml
  10. 5
      spring-boot-samples/spring-boot-sample-data-mongodb/pom.xml
  11. 5
      spring-boot-samples/spring-boot-sample-data-redis/pom.xml
  12. 5
      spring-boot-samples/spring-boot-sample-integration/pom.xml
  13. 5
      spring-boot-samples/spring-boot-sample-jetty/pom.xml
  14. 5
      spring-boot-samples/spring-boot-sample-profile/pom.xml
  15. 5
      spring-boot-samples/spring-boot-sample-secure/pom.xml
  16. 5
      spring-boot-samples/spring-boot-sample-servlet/pom.xml
  17. 5
      spring-boot-samples/spring-boot-sample-simple/pom.xml
  18. 5
      spring-boot-samples/spring-boot-sample-tomcat/pom.xml
  19. 5
      spring-boot-samples/spring-boot-sample-traditional/pom.xml
  20. 5
      spring-boot-samples/spring-boot-sample-web-jsp/pom.xml
  21. 5
      spring-boot-samples/spring-boot-sample-web-secure/pom.xml
  22. 5
      spring-boot-samples/spring-boot-sample-web-static/pom.xml
  23. 5
      spring-boot-samples/spring-boot-sample-web-ui/pom.xml
  24. 5
      spring-boot-samples/spring-boot-sample-websocket/pom.xml
  25. 5
      spring-boot-samples/spring-boot-sample-xml/pom.xml

16
spring-boot-samples/pom.xml

@ -39,21 +39,7 @@
<module>spring-boot-sample-websocket</module> <module>spring-boot-sample-websocket</module>
<module>spring-boot-sample-xml</module> <module>spring-boot-sample-xml</module>
</modules> </modules>
<dependencies> <!-- No dependencies - otherwise the samples won't work if you change the parent -->
<!-- Test -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

11
spring-boot-samples/spring-boot-sample-actuator-log4j/pom.xml

@ -32,6 +32,17 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-log4j</artifactId> <artifactId>spring-boot-starter-log4j</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml

@ -22,6 +22,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-shell-remote</artifactId> <artifactId>spring-boot-starter-shell-remote</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml

@ -40,6 +40,11 @@
<groupId>org.jolokia</groupId> <groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId> <artifactId>jolokia-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-actuator/pom.xml

@ -42,6 +42,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-shell-remote</artifactId> <artifactId>spring-boot-starter-shell-remote</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--<dependency> <!--<dependency>
<groupId>org.crashub</groupId> <groupId>org.crashub</groupId>
<artifactId>crash.connectors.telnet</artifactId> <artifactId>crash.connectors.telnet</artifactId>

5
spring-boot-samples/spring-boot-sample-amqp/pom.xml

@ -19,6 +19,11 @@
<artifactId>spring-boot-starter-amqp</artifactId> <artifactId>spring-boot-starter-amqp</artifactId>
<version>${spring-boot.version}</version> <version>${spring-boot.version}</version>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-aop/pom.xml

@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-aop</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-batch/pom.xml

@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-batch</artifactId> <artifactId>spring-boot-starter-batch</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

11
spring-boot-samples/spring-boot-sample-data-jpa/pom.xml

@ -22,17 +22,16 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot</artifactId>
<classifier>tests</classifier>
<version>${spring-boot.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.hsqldb</groupId> <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-data-mongodb/pom.xml

@ -22,6 +22,11 @@
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId> <artifactId>spring-data-mongodb</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-data-redis/pom.xml

@ -26,6 +26,11 @@
<groupId>com.lambdaworks</groupId> <groupId>com.lambdaworks</groupId>
<artifactId>lettuce</artifactId> <artifactId>lettuce</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<profiles> <profiles>
<profile> <profile>

5
spring-boot-samples/spring-boot-sample-integration/pom.xml

@ -18,6 +18,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId> <artifactId>spring-boot-starter-integration</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-jetty/pom.xml

@ -26,6 +26,11 @@
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId> <artifactId>spring-webmvc</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-profile/pom.xml

@ -23,6 +23,11 @@
<artifactId>snakeyaml</artifactId> <artifactId>snakeyaml</artifactId>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-secure/pom.xml

@ -19,6 +19,11 @@
<artifactId>spring-boot-starter-security</artifactId> <artifactId>spring-boot-starter-security</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-servlet/pom.xml

@ -29,6 +29,11 @@
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-simple/pom.xml

@ -23,6 +23,11 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-tomcat/pom.xml

@ -26,6 +26,11 @@
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId> <artifactId>spring-webmvc</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-traditional/pom.xml

@ -34,6 +34,11 @@
<artifactId>tomcat-embed-jasper</artifactId> <artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-web-jsp/pom.xml

@ -33,6 +33,11 @@
<groupId>javax.servlet</groupId> <groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId> <artifactId>jstl</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-web-secure/pom.xml

@ -28,6 +28,11 @@
<groupId>org.thymeleaf</groupId> <groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring4</artifactId> <artifactId>thymeleaf-spring4</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-web-static/pom.xml

@ -28,6 +28,11 @@
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-web-ui/pom.xml

@ -30,6 +30,11 @@
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId> <artifactId>hibernate-validator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-websocket/pom.xml

@ -22,6 +22,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

5
spring-boot-samples/spring-boot-sample-xml/pom.xml

@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter</artifactId> <artifactId>spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

Loading…
Cancel
Save