pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.hsweb</groupId>
  7. <artifactId>hsweb-framework</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0-SNAPSHOT</version>
  10. <modules>
  11. <module>hsweb-web-dao-interface</module>
  12. <module>hsweb-web-dao-impl-mybatis</module>
  13. <module>hsweb-web-service-interface</module>
  14. <module>hsweb-web-service-impl-common</module>
  15. <module>hsweb-web-controller</module>
  16. <module>hsweb-web-bean</module>
  17. <module>hsweb-web-core</module>
  18. <module>hsweb-web-websocket</module>
  19. <module>hsweb-web-test</module>
  20. </modules>
  21. <properties>
  22. <!-- base setting -->
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <project.build.locales>zh_CN</project.build.locales>
  25. <project.build.jdk>1.7</project.build.jdk>
  26. <junit.version>4.11</junit.version>
  27. <spring.boot.version>1.3.1.RELEASE</spring.boot.version>
  28. <fastjson.version>1.2.6</fastjson.version>
  29. <aspectj.version>1.6.12</aspectj.version>
  30. <hibernate.validator.version>5.1.1.Final</hibernate.validator.version>
  31. <webbuilder.version>1.0-SNAPSHOT</webbuilder.version>
  32. </properties>
  33. <build>
  34. <plugins>
  35. <!-- 要将源码放上去,需要加入这个插件 -->
  36. <plugin>
  37. <artifactId>maven-source-plugin</artifactId>
  38. <version>2.4</version>
  39. <configuration>
  40. <attach>true</attach>
  41. </configuration>
  42. <executions>
  43. <execution>
  44. <phase>compile</phase>
  45. <goals>
  46. <goal>jar</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <version>3.1</version>
  55. <configuration>
  56. <source>${project.build.jdk}</source>
  57. <target>${project.build.jdk}</target>
  58. <encoding>${project.build.sourceEncoding}</encoding>
  59. </configuration>
  60. </plugin>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-jar-plugin</artifactId>
  64. <version>2.4</version>
  65. <configuration>
  66. <excludes>
  67. <exclude>config</exclude>
  68. <exclude>config/**/*</exclude>
  69. <exclude>*.xml</exclude>
  70. <exclude>*.properties</exclude>
  71. </excludes>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <version>${spring.boot.version}</version>
  78. <executions>
  79. <execution>
  80. <goals>
  81. <goal>repackage</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. <dependencies>
  89. <!-- test-junit -->
  90. <dependency>
  91. <groupId>junit</groupId>
  92. <artifactId>junit</artifactId>
  93. <version>${junit.version}</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.webbuilder</groupId>
  98. <artifactId>sql-util</artifactId>
  99. <version>${webbuilder.version}</version>
  100. <exclusions>
  101. <exclusion>
  102. <groupId>org.slf4j</groupId>
  103. <artifactId>slf4j-api</artifactId>
  104. </exclusion>
  105. <exclusion>
  106. <groupId>org.slf4j</groupId>
  107. <artifactId>slf4j-log4j12</artifactId>
  108. </exclusion>
  109. <exclusion>
  110. <groupId>ch.qos.logback</groupId>
  111. <artifactId>logback-classic</artifactId>
  112. </exclusion>
  113. </exclusions>
  114. </dependency>
  115. <!--json-->
  116. <dependency>
  117. <groupId>com.alibaba</groupId>
  118. <artifactId>fastjson</artifactId>
  119. <version>${fastjson.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-starter-web</artifactId>
  124. <version>${spring.boot.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-logging</artifactId>
  129. <version>${spring.boot.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-aop</artifactId>
  134. <version>${spring.boot.version}</version>
  135. </dependency>
  136. <!--开发工具-->
  137. <dependency>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-devtools</artifactId>
  140. <version>${spring.boot.version}</version>
  141. </dependency>
  142. </dependencies>
  143. <repositories>
  144. <repository>
  145. <id>releases</id>
  146. <name>Nexus Release Repository</name>
  147. <url>http://121.199.3.43:8889/nexus/content/repositories/releases/</url>
  148. </repository>
  149. <repository>
  150. <id>snapshots</id>
  151. <name>Nexus Snapshot Repository</name>
  152. <url>http://121.199.3.43:8889/nexus/content/repositories/snapshots/</url>
  153. </repository>
  154. </repositories>
  155. <distributionManagement>
  156. <repository>
  157. <id>releases</id>
  158. <name>Nexus Release Repository</name>
  159. <url>http://121.199.3.43:8889/nexus/content/repositories/releases/</url>
  160. </repository>
  161. <snapshotRepository>
  162. <id>snapshots</id>
  163. <name>Nexus Snapshot Repository</name>
  164. <url>http://121.199.3.43:8889/nexus/content/repositories/snapshots/</url>
  165. </snapshotRepository>
  166. </distributionManagement>
  167. </project>