Building a RESTful Web Service :: Learn how to create a RESTful web service with Spring. :: spring-boot http://spring.io/guides/gs/rest-service/

pom.xml 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.springframework</groupId>
  6. <artifactId>gs-rest-service</artifactId>
  7. <version>0.1.0</version>
  8. <profiles>
  9. <profile>
  10. <id>standard-jdk</id>
  11. <activation>
  12. <file>
  13. <exists>${java.home}/../lib/tools.jar</exists>
  14. </file>
  15. </activation>
  16. <properties>
  17. <tools-jar>${java.home}/../lib/tools.jar</tools-jar>
  18. </properties>
  19. </profile>
  20. <profile>
  21. <id>apple-jdk</id>
  22. <activation>
  23. <file>
  24. <exists>${java.home}/../Classes/classes.jar</exists>
  25. </file>
  26. </activation>
  27. <properties>
  28. <tools-jar>${java.home}/../Classes/classes.jar</tools-jar>
  29. </properties>
  30. </profile>
  31. </profiles>
  32. <parent>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-parent</artifactId>
  35. <version>1.5.3.RELEASE</version>
  36. </parent>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-web</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-test</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.jayway.jsonpath</groupId>
  49. <artifactId>json-path</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. </dependencies>
  53. <properties>
  54. <java.version>1.8</java.version>
  55. </properties>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-maven-plugin</artifactId>
  61. <dependencies>
  62. <dependency>
  63. <groupId>com.sun</groupId>
  64. <artifactId>tools</artifactId>
  65. <version>1.6</version>
  66. <scope>system</scope>
  67. <systemPath>${tools-jar}</systemPath>
  68. </dependency>
  69. </dependencies>
  70. </plugin>
  71. </plugins>
  72. </build>
  73. <repositories>
  74. <repository>
  75. <id>spring-releases</id>
  76. <url>https://repo.spring.io/libs-release</url>
  77. </repository>
  78. </repositories>
  79. <pluginRepositories>
  80. <pluginRepository>
  81. <id>spring-releases</id>
  82. <url>https://repo.spring.io/libs-release</url>
  83. </pluginRepository>
  84. </pluginRepositories>
  85. </project>