pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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>io.renren</groupId>
  6. <artifactId>renren-fast</artifactId>
  7. <version>1.2.0</version>
  8. <packaging>jar</packaging>
  9. <description>renren-fast</description>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>1.5.6.RELEASE</version>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <mybatis.spring.boot.version>1.3.0</mybatis.spring.boot.version>
  20. <mysql.version>5.1.38</mysql.version>
  21. <druid.version>1.1.2</druid.version>
  22. <quartz.version>2.3.0</quartz.version>
  23. <commons.lang.version>2.6</commons.lang.version>
  24. <commons.fileupload.version>1.3.1</commons.fileupload.version>
  25. <commons.io.version>2.5</commons.io.version>
  26. <commons.codec.version>1.10</commons.codec.version>
  27. <commons.configuration.version>1.10</commons.configuration.version>
  28. <shiro.version>1.3.2</shiro.version>
  29. <qiniu.version>[7.2.0, 7.2.99]</qiniu.version>
  30. <aliyun.oss.version>2.5.0</aliyun.oss.version>
  31. <qcloud.cos.version>4.4</qcloud.cos.version>
  32. <!--wagon plugin 配置-->
  33. <service-path>/work/renren</service-path>
  34. <pack-name>${artifactId}-${version}.jar</pack-name>
  35. <remote-addr>192.168.1.10:22</remote-addr>
  36. <remote-username>root</remote-username>
  37. <remote-passwd>123456</remote-passwd>
  38. </properties>
  39. <dependencies>
  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>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-web</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-aop</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-context-support</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-data-redis</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-configuration-processor</artifactId>
  64. <optional>true</optional>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-devtools</artifactId>
  69. <optional>true</optional>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.mybatis.spring.boot</groupId>
  73. <artifactId>mybatis-spring-boot-starter</artifactId>
  74. <version>${mybatis.spring.boot.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. <version>${mysql.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.alibaba</groupId>
  83. <artifactId>druid-spring-boot-starter</artifactId>
  84. <version>${druid.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.quartz-scheduler</groupId>
  88. <artifactId>quartz</artifactId>
  89. <version>${quartz.version}</version>
  90. <exclusions>
  91. <exclusion>
  92. <groupId>com.mchange</groupId>
  93. <artifactId>c3p0</artifactId>
  94. </exclusion>
  95. </exclusions>
  96. </dependency>
  97. <dependency>
  98. <groupId>commons-lang</groupId>
  99. <artifactId>commons-lang</artifactId>
  100. <version>${commons.lang.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>commons-fileupload</groupId>
  104. <artifactId>commons-fileupload</artifactId>
  105. <version>${commons.fileupload.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>commons-io</groupId>
  109. <artifactId>commons-io</artifactId>
  110. <version>${commons.io.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-codec</groupId>
  114. <artifactId>commons-codec</artifactId>
  115. <version>${commons.codec.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-configuration</groupId>
  119. <artifactId>commons-configuration</artifactId>
  120. <version>${commons.configuration.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.shiro</groupId>
  124. <artifactId>shiro-core</artifactId>
  125. <version>${shiro.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.shiro</groupId>
  129. <artifactId>shiro-spring</artifactId>
  130. <version>${shiro.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.qiniu</groupId>
  134. <artifactId>qiniu-java-sdk</artifactId>
  135. <version>${qiniu.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.aliyun.oss</groupId>
  139. <artifactId>aliyun-sdk-oss</artifactId>
  140. <version>${aliyun.oss.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.qcloud</groupId>
  144. <artifactId>cos_api</artifactId>
  145. <version>${qcloud.cos.version}</version>
  146. <exclusions>
  147. <exclusion>
  148. <groupId>org.slf4j</groupId>
  149. <artifactId>slf4j-log4j12</artifactId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. </dependencies>
  154. <build>
  155. <extensions>
  156. <extension>
  157. <groupId>org.apache.maven.wagon</groupId>
  158. <artifactId>wagon-ssh</artifactId>
  159. <version>2.8</version>
  160. </extension>
  161. </extensions>
  162. <plugins>
  163. <plugin>
  164. <groupId>org.springframework.boot</groupId>
  165. <artifactId>spring-boot-maven-plugin</artifactId>
  166. <configuration>
  167. <fork>true</fork>
  168. </configuration>
  169. </plugin>
  170. <!-- 跳过单元测试 -->
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-surefire-plugin</artifactId>
  174. <configuration>
  175. <skipTests>true</skipTests>
  176. </configuration>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.codehaus.mojo</groupId>
  180. <artifactId>wagon-maven-plugin</artifactId>
  181. <version>1.0</version>
  182. <configuration>
  183. <fromFile>target/${pack-name}</fromFile>
  184. <url><![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
  185. <commands>
  186. <!-- Kill Old Process -->
  187. <command>pkill -f ${pack-name}</command>
  188. <command>rm -f ${service-path}/renren.log</command>
  189. <!-- Restart jar package,write result into renren.log -->
  190. <command><![CDATA[nohup java -jar ${service-path}/${pack-name} --spring.profiles.active=test > ${service-path}/renren.log 2>&1 & ]]></command>
  191. <command><![CDATA[netstat -nptl]]></command>
  192. <command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
  193. </commands>
  194. <!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec-->
  195. <displayCommandOutputs>true</displayCommandOutputs>
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </build>
  200. <repositories>
  201. <repository>
  202. <id>public</id>
  203. <name>aliyun nexus</name>
  204. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  205. <releases>
  206. <enabled>true</enabled>
  207. </releases>
  208. </repository>
  209. </repositories>
  210. <pluginRepositories>
  211. <pluginRepository>
  212. <id>public</id>
  213. <name>aliyun nexus</name>
  214. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  215. <releases>
  216. <enabled>true</enabled>
  217. </releases>
  218. <snapshots>
  219. <enabled>false</enabled>
  220. </snapshots>
  221. </pluginRepository>
  222. </pluginRepositories>
  223. </project>