pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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>cn.rankin</groupId>
  6. <artifactId>rankin</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>pom</packaging>
  9. <name>${project.artifactId}</name>
  10. <description>Distribute Project Based On Spring Cloud</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.5.8.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. </properties>
  22. <modules>
  23. <module>rankin-eureka-service</module>
  24. <module>rankin-config-service</module>
  25. <module>rankin-product-service</module>
  26. <module>rankin-user-service</module>
  27. <module>rankin-resource-service</module>
  28. <module>rankin-trade-service</module>
  29. <module>rankin-cms-web</module>
  30. <module>rankin-api-web</module>
  31. <module>rankin-common-utils</module>
  32. <module>rankin-data-api</module>
  33. <module>rankin-task</module>
  34. </modules>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-test</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>fastjson</artifactId>
  48. <version>1.2.38</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.commons</groupId>
  52. <artifactId>commons-lang3</artifactId>
  53. <version>3.7</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.projectlombok</groupId>
  57. <artifactId>lombok</artifactId>
  58. <version>1.16.16</version>
  59. </dependency>
  60. </dependencies>
  61. <!-- 插件配置 -->
  62. <build>
  63. <plugins>
  64. <!-- compiler插件, 设定JDK版本 -->
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-compiler-plugin</artifactId>
  68. <version>3.3</version>
  69. <configuration>
  70. <source>${java.version}</source>
  71. <target>${java.version}</target>
  72. <encoding>UTF-8</encoding>
  73. <showWarnings>true</showWarnings>
  74. </configuration>
  75. </plugin>
  76. <!-- source插件, 上传源码 -->
  77. <plugin>
  78. <artifactId>maven-source-plugin</artifactId>
  79. <version>2.4</version>
  80. <configuration>
  81. <attach>true</attach>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <phase>compile</phase>
  86. <goals>
  87. <goal>jar</goal>
  88. </goals>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. </plugins>
  93. <pluginManagement>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. <version>1.5.7.RELEASE</version>
  99. <configuration>
  100. <outputDirectory>./target</outputDirectory>
  101. </configuration>
  102. <executions>
  103. <execution>
  104. <goals>
  105. <goal>repackage</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. </plugins>
  111. </pluginManagement>
  112. <finalName>${project.name}</finalName>
  113. </build>
  114. <repositories>
  115. <repository>
  116. <id>nexus</id>
  117. <url>http://192.168.1.96:8081/nexus/content/groups/public/</url>
  118. <layout>default</layout>
  119. <releases>
  120. <enabled>true</enabled>
  121. </releases>
  122. <snapshots>
  123. <enabled>true</enabled>
  124. </snapshots>
  125. </repository>
  126. </repositories>
  127. <distributionManagement>
  128. <repository>
  129. <id>nexus-releases</id>
  130. <name>Releases</name>
  131. <url>http://192.168.1.96:8081/nexus/content/repositories/releases/</url>
  132. </repository>
  133. <snapshotRepository>
  134. <id>nexus-snapshots</id>
  135. <name>Snapshots</name>
  136. <url>http://192.168.1.96:8081/nexus/content/repositories/snapshots/</url>
  137. </snapshotRepository>
  138. </distributionManagement>
  139. <profiles>
  140. <profile>
  141. <id>dev</id>
  142. <properties>
  143. <profiles.activation>dev</profiles.activation>
  144. </properties>
  145. <activation>
  146. <activeByDefault>true</activeByDefault>
  147. </activation>
  148. </profile>
  149. <profile>
  150. <id>prod</id>
  151. <properties>
  152. <profiles.activation>prod</profiles.activation>
  153. </properties>
  154. </profile>
  155. </profiles>
  156. </project>