pom.xml 5.3 KB

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