pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>cn.vbdsm</groupId>
  5. <artifactId>vbdsm-explorer</artifactId>
  6. <version>2.0.0</version>
  7. <packaging>war</packaging>
  8. <distributionManagement>
  9. <repository>
  10. <id>vbpdsm-releases</id>
  11. <name>Internal Releases</name>
  12. <url>http://shvber.com:8881/repository/vbpdsm-releases</url>
  13. </repository>
  14. <snapshotRepository>
  15. <id>vbpdsm-snapshots</id>
  16. <name>Internal Snapshots</name>
  17. <url>http://shvber.com:8881/repository/vbpdsm-snapshots</url>
  18. </snapshotRepository>
  19. </distributionManagement>
  20. <repositories>
  21. <repository>
  22. <id>vbpdsm</id>
  23. <name>VbpDsm Repository</name>
  24. <url>http://shvber.com:8881/repository/vbpdsm/</url>
  25. <snapshots>
  26. <enabled>true</enabled>
  27. </snapshots>
  28. </repository>
  29. </repositories>
  30. <profiles>
  31. <profile>
  32. <id>local</id>
  33. <activation>
  34. <activeByDefault>true</activeByDefault>
  35. </activation>
  36. <properties>
  37. <package.environment>local</package.environment>
  38. </properties>
  39. </profile>
  40. <profile>
  41. <id>test</id>
  42. <activation>
  43. <activeByDefault>false</activeByDefault>
  44. </activation>
  45. <properties>
  46. <package.environment>test</package.environment>
  47. </properties>
  48. </profile>
  49. <profile>
  50. <id>product</id>
  51. <activation>
  52. <activeByDefault>false</activeByDefault>
  53. </activation>
  54. <properties>
  55. <package.environment>product</package.environment>
  56. </properties>
  57. </profile>
  58. </profiles>
  59. <properties>
  60. <spring.version>3.2.6.RELEASE</spring.version>
  61. <core.common.version>1.0</core.common.version>
  62. <servlet.api.version>2.4</servlet.api.version>
  63. <!-- <commons.fileupload.version>1.3</commons.fileupload.version> -->
  64. <!-- <commons.io.version>2.2</commons.io.version> -->
  65. <!-- <commons.httpclient.version>3.1</commons.httpclient.version> -->
  66. <commons.beanutils.version>1.7.0</commons.beanutils.version>
  67. <commons.lang.version>2.4</commons.lang.version>
  68. <junit.version>4.8.1</junit.version>
  69. <log4j.version>1.2.14</log4j.version>
  70. <jsp.api.version>2.0</jsp.api.version>
  71. <javacc.version>4.1</javacc.version>
  72. <slf4j.log4j12.version>1.6.1</slf4j.log4j12.version>
  73. <aspectjweaver.version>1.6.2</aspectjweaver.version>
  74. </properties>
  75. <dependencies>
  76. <dependency>
  77. <groupId>org.springframework</groupId>
  78. <artifactId>spring-beans</artifactId>
  79. <version>${spring.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework</groupId>
  83. <artifactId>spring-core</artifactId>
  84. <version>${spring.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-context</artifactId>
  89. <version>${spring.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework</groupId>
  93. <artifactId>spring-jdbc</artifactId>
  94. <version>${spring.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework</groupId>
  98. <artifactId>spring-webmvc</artifactId>
  99. <version>${spring.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>javacc</groupId>
  103. <artifactId>javacc</artifactId>
  104. <version>${javacc.version}</version>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>cglib</groupId>
  109. <artifactId>cglib-nodep</artifactId>
  110. <version>3.1</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.slf4j</groupId>
  114. <artifactId>slf4j-log4j12</artifactId>
  115. <version>${slf4j.log4j12.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>druid</artifactId>
  120. <version>1.0.9</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.aspectj</groupId>
  124. <artifactId>aspectjweaver</artifactId>
  125. <version>${aspectjweaver.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>bouncycastle</groupId>
  129. <artifactId>bouncycastle-jce-jdk13</artifactId>
  130. <version>112</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>mysql</groupId>
  134. <artifactId>mysql-connector-java</artifactId>
  135. <version>8.0.11</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>javax.servlet</groupId>
  139. <artifactId>servlet-api</artifactId>
  140. <version>${servlet.api.version}</version>
  141. <scope>provided</scope>
  142. </dependency>
  143. <!-- <dependency>
  144. <groupId>redis.clients</groupId>
  145. <artifactId>jedis</artifactId>
  146. <version>2.6.0</version>
  147. </dependency> -->
  148. <dependency>
  149. <groupId>com.twmacinta</groupId>
  150. <artifactId>fastmd5</artifactId>
  151. <version>1.0</version>
  152. </dependency>
  153. <!-- <dependency>
  154. <groupId>com.oreilly</groupId>
  155. <artifactId>cos</artifactId>
  156. <version>1.0</version>
  157. </dependency> -->
  158. <dependency>
  159. <groupId>org.springframework</groupId>
  160. <artifactId>spring-test</artifactId>
  161. <version>${spring.version}</version>
  162. <scope>test</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>junit</groupId>
  166. <artifactId>junit</artifactId>
  167. <version>4.8.1</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>junit</groupId>
  171. <artifactId>junit</artifactId>
  172. <version>${junit.version}</version>
  173. <scope>test</scope>
  174. </dependency>
  175. <!-- <dependency>
  176. <groupId>commons-httpclient</groupId>
  177. <artifactId>commons-httpclient</artifactId>
  178. <version>${commons.httpclient.version}</version>
  179. </dependency> -->
  180. <dependency>
  181. <groupId>commons-beanutils</groupId>
  182. <artifactId>commons-beanutils</artifactId>
  183. <version>${commons.beanutils.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>commons-lang</groupId>
  187. <artifactId>commons-lang</artifactId>
  188. <version>${commons.lang.version}</version>
  189. </dependency>
  190. <!-- <dependency>
  191. <groupId>commons-fileupload</groupId>
  192. <artifactId>commons-fileupload</artifactId>
  193. <version>${commons.fileupload.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>commons-io</groupId>
  197. <artifactId>commons-io</artifactId>
  198. <version>${commons.io.version}</version>
  199. </dependency> -->
  200. <dependency>
  201. <groupId>commons-logging</groupId>
  202. <artifactId>commons-logging</artifactId>
  203. <version>1.2</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>commons-net</groupId>
  207. <artifactId>commons-net</artifactId>
  208. <version>3.3</version>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>redis.clients</groupId>
  213. <artifactId>jedis</artifactId>
  214. <version>2.6.0</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>ch.ethz.ssh2</groupId>
  218. <artifactId>ganymed-ssh2</artifactId>
  219. <version>2.1.0</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>cn.vbdsm</groupId>
  223. <artifactId>vbdsm-base</artifactId>
  224. <version>2.0.0</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.projectlombok</groupId>
  228. <artifactId>lombok</artifactId>
  229. <version>1.18.28</version>
  230. <scope>compile</scope>
  231. </dependency>
  232. </dependencies>
  233. <build>
  234. <finalName>ROOT</finalName>
  235. <resources>
  236. <resource>
  237. <directory>${basedir}/src/main/resources</directory>
  238. <includes>
  239. <include>**/*</include>
  240. </includes>
  241. </resource>
  242. <resource>
  243. <directory>${basedir}/src/main/java</directory>
  244. <excludes>
  245. <exclude>**/*.java</exclude>
  246. <exclude>**/*.class</exclude>
  247. </excludes>
  248. </resource>
  249. </resources>
  250. <plugins>
  251. <plugin>
  252. <artifactId>maven-compiler-plugin</artifactId>
  253. <version>2.3.2</version>
  254. <configuration>
  255. <source>1.6</source>
  256. <target>1.6</target>
  257. <encoding>UTF-8</encoding>
  258. <compilerArguments>
  259. <verbose/>
  260. <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
  261. </compilerArguments>
  262. </configuration>
  263. </plugin>
  264. <plugin>
  265. <artifactId>maven-resources-plugin</artifactId>
  266. <version>2.5</version>
  267. <executions>
  268. <execution>
  269. <id>copy-resources</id>
  270. <!-- here the phase you need -->
  271. <phase>validate</phase>
  272. <goals>
  273. <goal>copy-resources</goal>
  274. </goals>
  275. <configuration>
  276. <encoding>UTF-8</encoding>
  277. <outputDirectory>${basedir}/target/classes</outputDirectory>
  278. <resources>
  279. <resource>
  280. <directory>src/main/resources/${package.environment}</directory>
  281. <includes>
  282. <include>**/*.*</include>
  283. </includes>
  284. <filtering>true</filtering>
  285. </resource>
  286. </resources>
  287. </configuration>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <plugin>
  292. <groupId>org.mortbay.jetty</groupId>
  293. <artifactId>maven-jetty-plugin</artifactId>
  294. <version>6.1.26</version>
  295. <configuration>
  296. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  297. <contextPath>/</contextPath>
  298. <connectors>
  299. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  300. <port>8086</port>
  301. </connector>
  302. </connectors>
  303. <scanIntervalSeconds>0</scanIntervalSeconds>
  304. <scanTargetPatterns>
  305. <scanTargetPattern>
  306. <directory>src/main/webapp</directory>
  307. <includes>
  308. <include>**/*.xml</include>
  309. <include>**/*.properties</include>
  310. </includes>
  311. </scanTargetPattern>
  312. </scanTargetPatterns>
  313. <systemProperties>
  314. <systemProperty>
  315. <name>
  316. javax.xml.parsers.DocumentBuilderFactory
  317. </name>
  318. <value>
  319. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  320. </value>
  321. </systemProperty>
  322. <systemProperty>
  323. <name>
  324. javax.xml.parsers.SAXParserFactory
  325. </name>
  326. <value>
  327. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  328. </value>
  329. </systemProperty>
  330. <systemProperty>
  331. <name>
  332. javax.xml.transform.TransformerFactory
  333. </name>
  334. <value>
  335. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  336. </value>
  337. </systemProperty>
  338. <systemProperty>
  339. <name>org.eclipse.jetty.util.URI.charset</name>
  340. <value>UTF-8</value>
  341. </systemProperty>
  342. </systemProperties>
  343. </configuration>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-war-plugin</artifactId>
  348. <version>2.2</version>
  349. <configuration>
  350. <archive>
  351. <addMavenDescriptor>false</addMavenDescriptor>
  352. </archive>
  353. <webResources>
  354. <resource>
  355. <!-- this is relative to the pom.xml directory -->
  356. <directory>src/main/resources/</directory>
  357. <targetPath>WEB-INF/classes</targetPath>
  358. <includes>
  359. <include>**/*.*</include>
  360. </includes>
  361. <!-- <excludes>
  362. <exclude>**/local</exclude>
  363. <exclude>**/test</exclude>
  364. <exclude>**/product</exclude>
  365. </excludes> -->
  366. <filtering>true</filtering>
  367. </resource>
  368. <resource>
  369. <!-- this is relative to the pom.xml directory -->
  370. <directory>src/main/resources/${package.environment}</directory>
  371. <targetPath>WEB-INF/classes</targetPath>
  372. <filtering>true</filtering>
  373. </resource>
  374. </webResources>
  375. </configuration>
  376. </plugin>
  377. <plugin>
  378. <groupId>org.zeroturnaround</groupId>
  379. <artifactId>javarebel-maven-plugin</artifactId>
  380. <executions>
  381. <execution>
  382. <id>generate-rebel-xml</id>
  383. <phase>process-resources</phase>
  384. <goals>
  385. <goal>generate</goal>
  386. </goals>
  387. </execution>
  388. </executions>
  389. <version>1.0.5</version>
  390. </plugin>
  391. <!-- <plugin>-->
  392. <!-- <groupId>net.sf.ehcache</groupId>-->
  393. <!-- <artifactId>ehcache-core</artifactId>-->
  394. <!-- <version>2.6.8</version>-->
  395. <!-- </plugin>-->
  396. </plugins>
  397. </build>
  398. </project>