pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>jeecg-boot-parent</artifactId>
  7. <groupId>org.jeecgframework.boot</groupId>
  8. <version>2.0.2</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>xxl-job-executor</artifactId>
  12. <name>xxl-job-executor</name>
  13. <version>2.0.2</version>
  14. <properties>
  15. <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
  16. </properties>
  17. <dependencies>
  18. <!-- spring-boot-starter-web (spring-webmvc + tomcat) -->
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-test</artifactId>
  26. <scope>test</scope>
  27. </dependency>
  28. <!-- xxl-job-core -->
  29. <dependency>
  30. <groupId>cn.com.ctop</groupId>
  31. <artifactId>xxl-job-core</artifactId>
  32. <version>2.0.2</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>cn.com.ctop</groupId>
  36. <artifactId>module-common</artifactId>
  37. <version>2.0.2</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.jeecgframework.boot</groupId>
  41. <artifactId>jeecg-boot-base-common</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>cn.com.ctop</groupId>
  45. <artifactId>module-toutiao</artifactId>
  46. <version>2.0.2</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>cn.com.ctop</groupId>
  50. <artifactId>module-kuaishou</artifactId>
  51. <version>2.0.2</version>
  52. </dependency>
  53. </dependencies>
  54. <repositories>
  55. <repository>
  56. <id>aliyun</id>
  57. <name>aliyun Repository</name>
  58. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  59. <snapshots>
  60. <enabled>false</enabled>
  61. </snapshots>
  62. </repository>
  63. <repository>
  64. <id>jeecg</id>
  65. <name>jeecg Repository</name>
  66. <url>http://maven.jeecg.org/nexus/content/repositories/jeecg</url>
  67. <snapshots>
  68. <enabled>false</enabled>
  69. </snapshots>
  70. </repository>
  71. <repository>
  72. <id>com.e-iceblue</id>
  73. <name>e-iceblue</name>
  74. <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
  75. </repository>
  76. </repositories>
  77. <dependencyManagement>
  78. <dependencies>
  79. <dependency>
  80. <groupId>org.springframework.cloud</groupId>
  81. <artifactId>spring-cloud-dependencies</artifactId>
  82. <version>${spring-cloud.version}</version>
  83. <type>pom</type>
  84. <scope>import</scope>
  85. </dependency>
  86. </dependencies>
  87. </dependencyManagement>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.mybatis.generator</groupId>
  92. <artifactId>mybatis-generator-maven-plugin</artifactId>
  93. <version>1.3.6</version>
  94. <configuration>
  95. <!-- 是否覆盖,true表示会替换生成的JAVA文件,false则不覆盖 -->
  96. <overwrite>true</overwrite>
  97. </configuration>
  98. <dependencies>
  99. <!--mysql驱动包-->
  100. <dependency>
  101. <groupId>mysql</groupId>
  102. <artifactId>mysql-connector-java</artifactId>
  103. <version>5.1.45</version>
  104. </dependency>
  105. </dependencies>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. </plugin>
  111. </plugins>
  112. <resources>
  113. <!-- 解决MyBatis配置文件引入问题 -->
  114. <resource>
  115. <directory>src/main/java</directory>
  116. <includes>
  117. <include>**/*.properties</include>
  118. <include>**/*.xml</include>
  119. </includes>
  120. <!-- 是否替换资源中的属性-->
  121. <filtering>true</filtering>
  122. </resource>
  123. <resource>
  124. <directory>src/main/resources</directory>
  125. <filtering>true</filtering>
  126. </resource>
  127. </resources>
  128. </build>
  129. <profiles>
  130. <profile>
  131. <id>dev</id>
  132. <properties>
  133. <!-- 环境标识,需要与配置文件的名称相对应 -->
  134. <activatedProperties>dev</activatedProperties>
  135. </properties>
  136. <activation>
  137. <!-- 默认环境 -->
  138. <activeByDefault>true</activeByDefault>
  139. </activation>
  140. </profile>
  141. <profile>
  142. <id>test</id>
  143. <properties>
  144. <activatedProperties>test</activatedProperties>
  145. </properties>
  146. </profile>
  147. <profile>
  148. <id>prod</id>
  149. <properties>
  150. <activatedProperties>prod</activatedProperties>
  151. </properties>
  152. </profile>
  153. </profiles>
  154. </project>