pom.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.yihu.hos</groupId>
  6. <artifactId>hos-camel-parent</artifactId>
  7. <version>1.3.0</version>
  8. <relativePath>../hos-camel-parent</relativePath><!-- lookup parent from repository -->
  9. </parent>
  10. <artifactId>hos-camel2</artifactId>
  11. <name>hos-camel2</name>
  12. <dependencyManagement>
  13. <dependencies>
  14. <!-- import Spring Boot before Camel -->
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-dependencies</artifactId>
  18. <version>${spring-boot-version}</version>
  19. <type>pom</type>
  20. <scope>import</scope>
  21. </dependency>
  22. <!-- import Camel -->
  23. <dependency>
  24. <groupId>org.apache.camel</groupId>
  25. <artifactId>camel-parent</artifactId>
  26. <version>${camel-version}</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. </dependencies>
  31. </dependencyManagement>
  32. <dependencies>
  33. <!-- spring-boot -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-test</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <!-- camel -->
  44. <dependency>
  45. <groupId>org.apache.camel</groupId>
  46. <artifactId>camel-spring-boot-starter</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.yihu.hos</groupId>
  50. <artifactId>hos-core</artifactId>
  51. <version>1.3.0</version>
  52. </dependency>
  53. <!-- notice we use -starter components from Camel which are designed to use with Spring Boot -->
  54. <!--<dependency>-->
  55. <!--<groupId>org.apache.camel</groupId>-->
  56. <!--<artifactId>camel-geocoder-starter</artifactId>-->
  57. <!--</dependency>-->
  58. <dependency>
  59. <groupId>org.apache.camel</groupId>
  60. <artifactId>camel-jetty</artifactId>
  61. </dependency>
  62. </dependencies>
  63. <build>
  64. <plugins>
  65. <plugin>
  66. <!-- allows to run with mvn spring-boot:run -->
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-maven-plugin</artifactId>
  69. <version>${spring-boot-version}</version>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <!-- to build fat-jar -->
  74. <goal>repackage</goal>
  75. </goals>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>