MyEclipse使用总结——将原有的MyEclipse中的项目转成maven项目[转]

前面一篇文章中我们了解了

在myeclipse中新建Maven框架的web项目

那么如果我们原来有一些项目现在想转成maven项目应该怎么做呢

我收集到了三种思路:

一、新建一个maven项目,把原项目按照新项目的框架移植过去

二、在原项目的框架上进行修改,把项目目录结构修改成maven框架一样 (详见:为已有的web project项目加入maven支持,并使用myeclipse的插件)

三、不改动原项目目录结构,通过pom.xml文件来配置目录

个人意见,在原项目上做目录结构容易出问题,特别是已经有svn信息时,所以我推荐方案一和三。

本篇先尝试方案一。

我原有一个ipFilter项目,现在已经新建好了maven框架的web项目ipFilterM (x详见:在myeclipse中新建Maven框架的web项目)

ipFilter的目录结构如图:

ipFilterM的目录结构如图:

在pom.xml中添加依赖包的配置

在ipFilter项目中依赖了很多包,如图:

我们要把这些依赖包配置到pom.xml文件中

未配置前pom.xml的内容如下:

[java] view plaincopy

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>ipFilterM</groupId>
  4. <artifactId>ipFilterM</artifactId>
  5. <version>0.0.1-SNAPSHOT</version>
  6. <packaging>war</packaging>
  7. <name/>
  8. <description/>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. </properties>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.glassfish</groupId>
  15. <artifactId>bean-validator</artifactId>
  16. <version>3.0-JBoss-4.0.2</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.glassfish</groupId>
  20. <artifactId>javax.annotation</artifactId>
  21. <version>3.0.1</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.glassfish</groupId>
  25. <artifactId>javax.ejb</artifactId>
  26. <version>3.0.1</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.glassfish</groupId>
  30. <artifactId>javax.enterprise.deploy</artifactId>
  31. <version>3.0.1</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.glassfish</groupId>
  35. <artifactId>javax.jms</artifactId>
  36. <version>3.0.1</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.glassfish</groupId>
  40. <artifactId>javax.management.j2ee</artifactId>
  41. <version>3.0.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.eclipse.persistence</groupId>
  45. <artifactId>javax.persistence</artifactId>
  46. <version>2.0.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.glassfish</groupId>
  50. <artifactId>javax.resource</artifactId>
  51. <version>3.0.1</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.glassfish</groupId>
  55. <artifactId>javax.security.auth.message</artifactId>
  56. <version>3.0.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.glassfish</groupId>
  60. <artifactId>javax.security.jacc</artifactId>
  61. <version>3.0.1</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.glassfish</groupId>
  65. <artifactId>javax.servlet</artifactId>
  66. <version>3.0.1</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.glassfish</groupId>
  70. <artifactId>javax.servlet.jsp</artifactId>
  71. <version>3.0.1</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.glassfish</groupId>
  75. <artifactId>javax.servlet.jsp.jstl</artifactId>
  76. <version>3.0.1</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.glassfish</groupId>
  80. <artifactId>javax.transaction</artifactId>
  81. <version>3.0.1</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>javax.xml.bind</groupId>
  85. <artifactId>jaxb-api-osgi</artifactId>
  86. <version>2.2.1</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>javax.ws.rs</groupId>
  90. <artifactId>jsr311-api</artifactId>
  91. <version>1.1.1</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.glassfish.web</groupId>
  95. <artifactId>jstl-impl</artifactId>
  96. <version>1.2</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>javax.mail</groupId>
  100. <artifactId>mail</artifactId>
  101. <version>1.4.3</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>javax.xml</groupId>
  105. <artifactId>webservices-api-osgi</artifactId>
  106. <version>2.0.1</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.jboss.weld</groupId>
  110. <artifactId>weld-osgi-bundle</artifactId>
  111. <version>1.0.1-SP3</version>
  112. </dependency>
  113. </dependencies>
  114. <build>
  115. <plugins>
  116. <plugin>
  117. <artifactId>maven-war-plugin</artifactId>
  118. </plugin>
  119. <plugin>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <configuration>
  122. <source>1.6</source>
  123. <target>1.6</target>
  124. </configuration>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. </project>

配置方法详见:

myeclipse中运用maven自动下载包

添加一个我们自己的包后,发现ipFilterM项目中自动生成了maven的依赖library,里面就有我们新添加的包

在添加过程中,每点击一次保存,都会自动从中央库下载依赖包,如果项目出现了红色感叹号,则说明 某个包的依赖与已有的依赖冲突或者重复了,删除该依赖保存即可回复正常

有X号但是没有报错信息,则说明 某个包在中央库下载不到,坐标不对,这时候尝试换换版本号可回复正常

依次把ipFilter的依赖包添加完,pom.xml如下:

[java] view plaincopy

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>ipFilterM</groupId>
  5. <artifactId>ipFilterM</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name />
  9. <description />
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.glassfish</groupId>
  16. <artifactId>bean-validator</artifactId>
  17. <version>3.0-JBoss-4.0.2</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.glassfish</groupId>
  21. <artifactId>javax.annotation</artifactId>
  22. <version>3.0.1</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.glassfish</groupId>
  26. <artifactId>javax.ejb</artifactId>
  27. <version>3.0.1</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.glassfish</groupId>
  31. <artifactId>javax.enterprise.deploy</artifactId>
  32. <version>3.0.1</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.glassfish</groupId>
  36. <artifactId>javax.jms</artifactId>
  37. <version>3.0.1</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.glassfish</groupId>
  41. <artifactId>javax.management.j2ee</artifactId>
  42. <version>3.0.1</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.eclipse.persistence</groupId>
  46. <artifactId>javax.persistence</artifactId>
  47. <version>2.0.0</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.glassfish</groupId>
  51. <artifactId>javax.resource</artifactId>
  52. <version>3.0.1</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.glassfish</groupId>
  56. <artifactId>javax.security.auth.message</artifactId>
  57. <version>3.0.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.glassfish</groupId>
  61. <artifactId>javax.security.jacc</artifactId>
  62. <version>3.0.1</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.glassfish</groupId>
  66. <artifactId>javax.servlet</artifactId>
  67. <version>3.0.1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.glassfish</groupId>
  71. <artifactId>javax.servlet.jsp</artifactId>
  72. <version>3.0.1</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.glassfish</groupId>
  76. <artifactId>javax.servlet.jsp.jstl</artifactId>
  77. <version>3.0.1</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.glassfish</groupId>
  81. <artifactId>javax.transaction</artifactId>
  82. <version>3.0.1</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>javax.xml.bind</groupId>
  86. <artifactId>jaxb-api-osgi</artifactId>
  87. <version>2.2.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>javax.ws.rs</groupId>
  91. <artifactId>jsr311-api</artifactId>
  92. <version>1.1.1</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.glassfish.web</groupId>
  96. <artifactId>jstl-impl</artifactId>
  97. <version>1.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>javax.mail</groupId>
  101. <artifactId>mail</artifactId>
  102. <version>1.4.3</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>javax.xml</groupId>
  106. <artifactId>webservices-api-osgi</artifactId>
  107. <version>2.0.1</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.jboss.weld</groupId>
  111. <artifactId>weld-osgi-bundle</artifactId>
  112. <version>1.0.1-SP3</version>
  113. </dependency>
  114. <!--我添加的包如下 -->
  115. <dependency>
  116. <groupId>javax.activation</groupId>
  117. <artifactId>activation</artifactId>
  118. <version>1.1</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.james</groupId>
  122. <artifactId>apache-mime4j-core</artifactId>
  123. <version>0.7.2</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.ws.commons.axiom</groupId>
  127. <artifactId>axiom-api</artifactId>
  128. <version>1.2.13</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.ws.commons.axiom</groupId>
  132. <artifactId>axiom-impl</artifactId>
  133. <version>1.2.13</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.ws.commons.axiom</groupId>
  137. <artifactId>axiom-dom</artifactId>
  138. <version>1.2.13</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.axis2</groupId>
  142. <artifactId>axis2-adb</artifactId>
  143. <version>1.6.2</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.axis2</groupId>
  147. <artifactId>axis2-adb-codegen</artifactId>
  148. <version>1.6.2</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>ant</groupId>
  152. <artifactId>ant</artifactId>
  153. <version>1.6.2</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.axis2</groupId>
  157. <artifactId>axis2-codegen</artifactId>
  158. <version>1.6.2</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.apache.axis2</groupId>
  162. <artifactId>axis2-fastinfoset</artifactId>
  163. <version>1.6.2</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.axis2</groupId>
  167. <artifactId>axis2-java2wsdl</artifactId>
  168. <version>1.6.2</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.apache.axis2</groupId>
  172. <artifactId>axis2-ant-plugin</artifactId>
  173. <version>1.6.2</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.axis2</groupId>
  177. <artifactId>axis2-clustering</artifactId>
  178. <version>1.6.2</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.axis2</groupId>
  182. <artifactId>axis2-jibx</artifactId>
  183. <version>1.6.2</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.axis2</groupId>
  187. <artifactId>axis2-json</artifactId>
  188. <version>1.6.2</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.axis2</groupId>
  192. <artifactId>axis2-kernel</artifactId>
  193. <version>1.6.2</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.axis2</groupId>
  197. <artifactId>axis2-mtompolicy</artifactId>
  198. <version>1.6.2</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.apache.axis2</groupId>
  202. <artifactId>axis2-saaj</artifactId>
  203. <version>1.6.2</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.apache.axis2</groupId>
  207. <artifactId>axis2-soapmonitor-servlet</artifactId>
  208. <version>1.6.2</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.axis2</groupId>
  212. <artifactId>axis2-spring</artifactId>
  213. <version>1.6.2</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.axis2</groupId>
  217. <artifactId>axis2-transport-http</artifactId>
  218. <version>1.6.2</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.axis2</groupId>
  222. <artifactId>axis2-transport-local</artifactId>
  223. <version>1.6.2</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.apache.axis2</groupId>
  227. <artifactId>axis2-xmlbeans</artifactId>
  228. <version>1.6.2</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>bcel</groupId>
  232. <artifactId>bcel</artifactId>
  233. <version>5.1</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>net.sf.jmatchparser</groupId>
  237. <artifactId>jMatchParser-icu4j-chardet</artifactId>
  238. <version>0.1</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.github.sebhoss</groupId>
  242. <artifactId>common-annotations</artifactId>
  243. <version>1.0.0</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>commons-beanutils</groupId>
  247. <artifactId>commons-beanutils</artifactId>
  248. <version>1.8.3</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>commons-codec</groupId>
  252. <artifactId>commons-codec</artifactId>
  253. <version>1.6</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>commons-collections</groupId>
  257. <artifactId>commons-collections</artifactId>
  258. <version>3.2.1</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>commons-discovery</groupId>
  262. <artifactId>commons-discovery</artifactId>
  263. <version>0.4</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>commons-fileupload</groupId>
  267. <artifactId>commons-fileupload</artifactId>
  268. <version>1.3</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>commons-httpclient</groupId>
  272. <artifactId>commons-httpclient</artifactId>
  273. <version>3.1</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>commons-io</groupId>
  277. <artifactId>commons-io</artifactId>
  278. <version>2.4</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>commons-lang</groupId>
  282. <artifactId>commons-lang</artifactId>
  283. <version>2.6</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.commons</groupId>
  287. <artifactId>commons-lang3</artifactId>
  288. <version>3.1</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>commons-logging</groupId>
  292. <artifactId>commons-logging</artifactId>
  293. <version>1.1.1</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>dom4j</groupId>
  297. <artifactId>dom4j</artifactId>
  298. <version>1.6.1</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>net.sf.ezmorph</groupId>
  302. <artifactId>ezmorph</artifactId>
  303. <version>1.0.6</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>net.sourceforge.htmlcleaner</groupId>
  307. <artifactId>htmlcleaner</artifactId>
  308. <version>2.2</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.freemarker</groupId>
  312. <artifactId>freemarker</artifactId>
  313. <version>2.3.19</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.apache.httpcomponents</groupId>
  317. <artifactId>httpclient</artifactId>
  318. <version>4.2.5</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.apache.httpcomponents</groupId>
  322. <artifactId>httpclient-cache</artifactId>
  323. <version>4.2.5</version>
  324. </dependency>
  325. <dependency>
  326. <groupId>org.apache.httpcomponents</groupId>
  327. <artifactId>httpcore</artifactId>
  328. <version>4.2.4</version>
  329. </dependency>
  330. <dependency>
  331. <groupId>gov.nist.math</groupId>
  332. <artifactId>jama</artifactId>
  333. <version>1.0.3</version>
  334. </dependency>
  335. <dependency>
  336. <groupId>javassist</groupId>
  337. <artifactId>javassist</artifactId>
  338. <version>3.11.0.GA</version>
  339. </dependency>
  340. <dependency>
  341. <groupId>net.sf.json-lib</groupId>
  342. <artifactId>json-lib</artifactId>
  343. <version>2.3</version>
  344. <classifier>jdk15</classifier>
  345. </dependency>
  346. <dependency>
  347. <groupId>org.jsoup</groupId>
  348. <artifactId>jsoup</artifactId>
  349. <version>1.7.2</version>
  350. </dependency>
  351. <dependency>
  352. <groupId>junit</groupId>
  353. <artifactId>junit</artifactId>
  354. <version>4.11</version>
  355. </dependency>
  356. <dependency>
  357. <groupId>log4j</groupId>
  358. <artifactId>log4j</artifactId>
  359. <version>1.2.17</version>
  360. </dependency>
  361. <dependency>
  362. <groupId>org.apache.lucene</groupId>
  363. <artifactId>lucene-core</artifactId>
  364. <version>4.3.1</version>
  365. </dependency>
  366. <dependency>
  367. <groupId>org.mongodb</groupId>
  368. <artifactId>mongo-java-driver</artifactId>
  369. <version>2.10.1</version>
  370. </dependency>
  371. <dependency>
  372. <groupId>org.apache.neethi</groupId>
  373. <artifactId>neethi</artifactId>
  374. <version>3.0.2</version>
  375. </dependency>
  376. <dependency>
  377. <groupId>ognl</groupId>
  378. <artifactId>ognl</artifactId>
  379. <version>3.0.6</version>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.apache.poi</groupId>
  383. <artifactId>poi</artifactId>
  384. <version>3.9</version>
  385. </dependency>
  386. <dependency>
  387. <groupId>org.quartz-scheduler</groupId>
  388. <artifactId>quartz</artifactId>
  389. <version>2.2.1</version>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.quartz-scheduler</groupId>
  393. <artifactId>quartz-jobs</artifactId>
  394. <version>2.2.1</version>
  395. </dependency>
  396. <dependency>
  397. <groupId>org.slf4j</groupId>
  398. <artifactId>slf4j-api</artifactId>
  399. <version>1.6.6</version>
  400. </dependency>
  401. <dependency>
  402. <groupId>org.slf4j</groupId>
  403. <artifactId>slf4j-simple</artifactId>
  404. <version>1.7.5</version>
  405. </dependency>
  406. <dependency>
  407. <groupId>org.springframework</groupId>
  408. <artifactId>spring-beans</artifactId>
  409. <version>4.0.0.RELEASE</version>
  410. </dependency>
  411. <dependency>
  412. <groupId>org.springframework</groupId>
  413. <artifactId>spring-aspects</artifactId>
  414. <version>4.0.0.RELEASE</version>
  415. </dependency>
  416. <dependency>
  417. <groupId>org.springframework</groupId>
  418. <artifactId>spring-aop</artifactId>
  419. <version>4.0.0.RELEASE</version>
  420. </dependency>
  421. <dependency>
  422. <groupId>org.springframework</groupId>
  423. <artifactId>spring-context</artifactId>
  424. <version>4.0.0.RELEASE</version>
  425. </dependency>
  426. <dependency>
  427. <groupId>org.springframework</groupId>
  428. <artifactId>spring-context-support</artifactId>
  429. <version>4.0.0.RELEASE</version>
  430. </dependency>
  431. <dependency>
  432. <groupId>org.springframework</groupId>
  433. <artifactId>spring-core</artifactId>
  434. <version>4.0.0.RELEASE</version>
  435. </dependency>
  436. <dependency>
  437. <groupId>org.springframework.data</groupId>
  438. <artifactId>spring-data-commons</artifactId>
  439. <version>1.5.0.RELEASE</version>
  440. </dependency>
  441. <dependency>
  442. <groupId>org.springframework.data</groupId>
  443. <artifactId>spring-data-mongodb</artifactId>
  444. <version>1.2.0.RELEASE</version>
  445. </dependency>
  446. <dependency>
  447. <groupId>org.springframework.data</groupId>
  448. <artifactId>spring-data-mongodb-cross-store</artifactId>
  449. <version>1.2.0.RELEASE</version>
  450. </dependency>
  451. <dependency>
  452. <groupId>org.springframework.data</groupId>
  453. <artifactId>spring-data-mongodb-log4j</artifactId>
  454. <version>1.2.0.RELEASE</version>
  455. </dependency>
  456. <dependency>
  457. <groupId>org.aspectj</groupId>
  458. <artifactId>aspectjweaver</artifactId>
  459. <version>1.8.0</version>
  460. </dependency>
  461. <dependency>
  462. <groupId>org.apache.tomcat</groupId>
  463. <artifactId>tomcat-coyote</artifactId>
  464. <version>8.0.15</version>
  465. </dependency>
  466. <dependency>
  467. <groupId>org.springframework</groupId>
  468. <artifactId>spring-expression</artifactId>
  469. <version>4.0.0.RELEASE</version>
  470. </dependency>
  471. <dependency>
  472. <groupId>org.springframework</groupId>
  473. <artifactId>spring-orm</artifactId>
  474. <version>4.0.0.RELEASE</version>
  475. </dependency>
  476. <dependency>
  477. <groupId>org.springframework</groupId>
  478. <artifactId>spring-tx</artifactId>
  479. <version>4.0.0.RELEASE</version>
  480. </dependency>
  481. <dependency>
  482. <groupId>org.springframework</groupId>
  483. <artifactId>spring-web</artifactId>
  484. <version>4.0.0.RELEASE</version>
  485. </dependency>
  486. <dependency>
  487. <groupId>org.apache.struts</groupId>
  488. <artifactId>struts2-core</artifactId>
  489. <version>2.3.15.1</version>
  490. </dependency>
  491. <dependency>
  492. <groupId>org.apache.struts</groupId>
  493. <artifactId>struts2-json-plugin</artifactId>
  494. <version>2.3.15.1</version>
  495. </dependency>
  496. <dependency>
  497. <groupId>org.apache.struts</groupId>
  498. <artifactId>struts2-spring-plugin</artifactId>
  499. <version>2.3.15.1</version>
  500. </dependency>
  501. <dependency>
  502. <groupId>org.apache.woden</groupId>
  503. <artifactId>woden-api</artifactId>
  504. <version>1.0M9</version>
  505. </dependency>
  506. <dependency>
  507. <groupId>org.apache.woden</groupId>
  508. <artifactId>woden-impl-commons</artifactId>
  509. <version>1.0M9</version>
  510. </dependency>
  511. <dependency>
  512. <groupId>org.apache.woden</groupId>
  513. <artifactId>woden-impl-dom</artifactId>
  514. <version>1.0M9</version>
  515. </dependency>
  516. <dependency>
  517. <groupId>wsdl4j</groupId>
  518. <artifactId>wsdl4j</artifactId>
  519. <version>1.6.2</version>
  520. </dependency>
  521. <dependency>
  522. <groupId>xalan</groupId>
  523. <artifactId>xalan</artifactId>
  524. <version>2.7.0</version>
  525. </dependency>
  526. <dependency>
  527. <groupId>xml-resolver</groupId>
  528. <artifactId>xml-resolver</artifactId>
  529. <version>1.2</version>
  530. </dependency>
  531. <dependency>
  532. <groupId>org.apache.ws.commons.schema</groupId>
  533. <artifactId>XmlSchema</artifactId>
  534. <version>1.4.7</version>
  535. </dependency>
  536. <dependency>
  537. <groupId>org.apache.struts.xwork</groupId>
  538. <artifactId>xwork-core</artifactId>
  539. <version>2.3.15.1</version>
  540. </dependency>
  541. </dependencies>
  542. <build>
  543. <plugins>
  544. <plugin>
  545. <artifactId>maven-war-plugin</artifactId>
  546. </plugin>
  547. <plugin>
  548. <artifactId>maven-compiler-plugin</artifactId>
  549. <configuration>
  550. <source>1.6</source>
  551. <target>1.6</target>
  552. </configuration>
  553. </plugin>
  554. </plugins>
  555. </build>
  556. </project>

将java类移植

接着,我将几个要用的java类新建在ipFilterM的src/main/java中,下面的图片分别是两个项目对应文件夹的目录图。

直接把相关文件夹复制过去即可:

移植完后,maven install 一下,则会在target路径下生成war包

至此,我们的项目就移植完了。

解决包的冲突

但此时的war包直接复制到tomcat的webapp路径下 启动并不可用

Maven对于新手来说,最痛苦的一件事莫过于包之间的冲突,由于Maven的依赖传递性,当你引入一个依赖类时,其身后的依赖类也一起如过江之鲫纷至沓来了。

举例来说

A依赖于B及C,而B又依赖于X、Y,而C依赖于X、M,则A除引B及C的依赖包下,还会引入X,Y,M的依赖包(一般情况下了,Maven可通过<scope>等若干种方式控制传递依赖)。

这里有一个需要特别注意的,即B和C同时依赖于X,假设B依赖于X的1.0版本,而C依赖于X的2.0版本,A究竟依赖于X的1.0还是2.0版本呢?

这就看Classloader的加载顺序了,假设Classloader先加载X_1.0,而它就不会再加载X_2.0了,如果A恰恰希望使用X_2.0呢,血案就这样不期而遇了。

要想项目成功运行,我们还要解决包的冲突问题。

我们在myeclipse的pom视图可以看到冲突的情况

解决的方法是只保留一个最高级的包,其他的低级包找到它的上级包 添加<exclusions>把低级包排除出去

[java] view plaincopy

  1. <!--如果你的工程是用maven管理的话,可以在commons-logging的依赖里把servlet-api-2.3去除掉,再加入你所需要的版本的servlet-api依赖。大概的例子如下:  -->
  2. <dependency>
  3. <groupId>commons-logging</groupId>
  4. <artifactId>commons-logging</artifactId>
  5. <version>1.1.1</version>
  6. <exclusions>
  7. <exclusion>
  8. <groupId>javax.servlet</groupId>
  9. <artifactId>servlet-api</artifactId>
  10. </exclusion>
  11. </exclusions>
  12. </dependency>
  13. <dependency>
  14. <groupId>org.mortbay.jetty</groupId>
  15. <artifactId>servlet-api-2.5</artifactId>
  16. <version>6.1.14</version>
  17. <scope>provided</scope>
  18. </dependency>
  19. <!-- 指定scope为provided可以避免在发布的时候把servlet-api包拷到lib目录下。 -->

详情可参考:

maven项目生成的war包在tomcat下运行报错

后续请看:

maven项目如何启动运行---发布到tomcat中

在myeclipse中启动maven项目

对比新旧工程的lib包

处理完冲突后,我们就可以maven install生成war包了。

但,放在tomcat中往往还是会报很多错,这显然是缺少包的现象。

我们这时候就要对比解压出来的新工程和旧工程中lib的包的情况

多了的,要设置成provideed

少来的,要补上

当包数量和个数一模一样时,我们离成功又进了一步。

检查生成的工程中class

检查生成的工程是否包含了 我们的spring.xml和struts.xml文件

如果包的数量已经一模一样了,但是启动还是很多错误。

只有一个原因

就是打war包是 spring.xml等文件没加载进class中

我们可以比较一下生成的maven工程和旧工程之间的区别

这时候我们要对xml文件夹设置一下路径

对着项目右键

Properties--->MyEclipse--->Deployment Assembly 把resource的文件夹输出路径设置成跟 src/main/java一样即可

刷新项目,这时候打war包,运行。

终于改版完成!

启动不报错,而且页面访问也可以用了。

最终的pom.xml如下:

[java] view plaincopy

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>ipFilterM</groupId>
  5. <artifactId>ipFilterM</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name />
  9. <description />
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.apache.axis2</groupId>
  16. <artifactId>axis2-corba</artifactId>
  17. <version>1.6.2</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.apache.geronimo.specs</groupId>
  21. <artifactId>geronimo-activation_1.1_spec</artifactId>
  22. <version>1.1</version>
  23. <scope>provided</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.apache.geronimo.specs</groupId>
  27. <artifactId>geronimo-javamail_1.4_spec</artifactId>
  28. <version>1.7.1</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.glassfish</groupId>
  33. <artifactId>bean-validator</artifactId>
  34. <version>3.0-JBoss-4.0.2</version>
  35. <scope>provided</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.glassfish</groupId>
  39. <artifactId>javax.annotation</artifactId>
  40. <version>3.0.1</version>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.glassfish</groupId>
  45. <artifactId>javax.ejb</artifactId>
  46. <version>3.0.1</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.glassfish</groupId>
  51. <artifactId>javax.enterprise.deploy</artifactId>
  52. <version>3.0.1</version>
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.glassfish</groupId>
  57. <artifactId>javax.jms</artifactId>
  58. <version>3.0.1</version>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.glassfish</groupId>
  63. <artifactId>javax.management.j2ee</artifactId>
  64. <version>3.0.1</version>
  65. <scope>provided</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.eclipse.persistence</groupId>
  69. <artifactId>javax.persistence</artifactId>
  70. <version>2.0.0</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.glassfish</groupId>
  75. <artifactId>javax.resource</artifactId>
  76. <version>3.0.1</version>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.glassfish</groupId>
  81. <artifactId>javax.security.auth.message</artifactId>
  82. <version>3.0.1</version>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.glassfish</groupId>
  87. <artifactId>javax.security.jacc</artifactId>
  88. <version>3.0.1</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.glassfish</groupId>
  93. <artifactId>javax.transaction</artifactId>
  94. <version>3.0.1</version>
  95. <scope>provided</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>javax.xml.bind</groupId>
  99. <artifactId>jaxb-api-osgi</artifactId>
  100. <version>2.2.1</version>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>javax.servlet</groupId>
  105. <artifactId>servlet-api</artifactId>
  106. <version>2.3</version>
  107. <scope>provided</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.tomcat</groupId>
  111. <artifactId>tomcat-servlet-api</artifactId>
  112. <version>8.0.15</version>
  113. <scope>provided</scope>
  114. </dependency>
  115. <!--     <dependency>
  116. <groupId>javax.servlet.jsp</groupId>
  117. <artifactId>jsp-api</artifactId>
  118. <version>2.1</version>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.mortbay.jetty</groupId>
  123. <artifactId>servlet-api-2.5</artifactId>
  124. <version>6.1.14</version>
  125. <scope>provided</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.glassfish</groupId>
  129. <artifactId>javax.servlet</artifactId>
  130. <version>3.0.1</version>
  131. <scope>provided</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.glassfish</groupId>
  135. <artifactId>javax.servlet.jsp</artifactId>
  136. <version>3.0.1</version>
  137. <scope>provided</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.glassfish</groupId>
  141. <artifactId>javax.servlet.jsp.jstl</artifactId>
  142. <version>3.0.1</version>
  143. <scope>provided</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>javax.xml</groupId>
  147. <artifactId>webservices-api-osgi</artifactId>
  148. <version>2.0.1</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.jboss.weld</groupId>
  152. <artifactId>weld-osgi-bundle</artifactId>
  153. <version>1.0.1-SP3</version>
  154. </dependency> -->
  155. <!--我添加的包如下 -->
  156. <dependency>
  157. <groupId>org.codehaus.jettison</groupId>
  158. <artifactId>jettison</artifactId>
  159. <version>1.0-RC2</version>
  160. <scope>provided</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>com.google.code.findbugs</groupId>
  164. <artifactId>jsr305</artifactId>
  165. <version>2.0.1</version>
  166. <scope>provided</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>aopalliance</groupId>
  170. <artifactId>aopalliance</artifactId>
  171. <version>1.0</version>
  172. <scope>provided</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>asm</groupId>
  176. <artifactId>asm-commons</artifactId>
  177. <version>3.3</version>
  178. <scope>provided</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>asm</groupId>
  182. <artifactId>asm-tree</artifactId>
  183. <version>3.3</version>
  184. <scope>provided</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>asm</groupId>
  188. <artifactId>asm</artifactId>
  189. <version>3.3</version>
  190. <scope>provided</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.apache.ant</groupId>
  194. <artifactId>ant</artifactId>
  195. <version>1.7.0</version>
  196. <scope>provided</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.ant</groupId>
  200. <artifactId>ant-launcher</artifactId>
  201. <version>1.7.0</version>
  202. <scope>provided</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>javax.activation</groupId>
  206. <artifactId>activation</artifactId>
  207. <version>1.1</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.apache.james</groupId>
  211. <artifactId>apache-mime4j-core</artifactId>
  212. <version>0.7.2</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.apache.ws.commons.axiom</groupId>
  216. <artifactId>axiom-api</artifactId>
  217. <version>1.2.13</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.apache.ws.commons.axiom</groupId>
  221. <artifactId>axiom-impl</artifactId>
  222. <version>1.2.13</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.ws.commons.axiom</groupId>
  226. <artifactId>axiom-dom</artifactId>
  227. <version>1.2.13</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.apache.axis2</groupId>
  231. <artifactId>axis2-adb</artifactId>
  232. <version>1.6.2</version>
  233. <exclusions>
  234. <exclusion>
  235. <groupId>org.apache.geronimo.specs</groupId>
  236. <artifactId>geronimo-activation_1.1_spec</artifactId>
  237. </exclusion>
  238. </exclusions>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.apache.axis2</groupId>
  242. <artifactId>axis2-adb-codegen</artifactId>
  243. <version>1.6.2</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>ant</groupId>
  247. <artifactId>ant</artifactId>
  248. <version>1.6.2</version>
  249. <scope>provided</scope>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.axis2</groupId>
  253. <artifactId>axis2-codegen</artifactId>
  254. <version>1.6.2</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.axis2</groupId>
  258. <artifactId>axis2-fastinfoset</artifactId>
  259. <version>1.6.2</version>
  260. <exclusions>
  261. <exclusion>
  262. <groupId>commons-fileupload</groupId>
  263. <artifactId>commons-fileupload</artifactId>
  264. </exclusion>
  265. <exclusion>
  266. <groupId>org.apache.httpcomponents</groupId>
  267. <artifactId>httpcore</artifactId>
  268. </exclusion>
  269. <exclusion>
  270. <groupId>commons-codec</groupId>
  271. <artifactId>commons-codec</artifactId>
  272. </exclusion>
  273. </exclusions>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.axis2</groupId>
  277. <artifactId>axis2-java2wsdl</artifactId>
  278. <version>1.6.2</version>
  279. <exclusions>
  280. <exclusion>
  281. <groupId>org.apache.geronimo.specs</groupId>
  282. <artifactId>geronimo-javamail_1.4_spec</artifactId>
  283. </exclusion>
  284. </exclusions>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.apache.axis2</groupId>
  288. <artifactId>axis2-ant-plugin</artifactId>
  289. <version>1.6.2</version>
  290. <exclusions>
  291. <exclusion>
  292. <groupId>org.apache.geronimo.specs</groupId>
  293. <artifactId>geronimo-javamail_1.4_spec</artifactId>
  294. </exclusion>
  295. <exclusion>
  296. <groupId>org.apache.geronimo.specs</groupId>
  297. <artifactId>geronimo-activation_1.1_spec</artifactId>
  298. </exclusion>
  299. </exclusions>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.apache.axis2</groupId>
  303. <artifactId>axis2-clustering</artifactId>
  304. <version>1.6.2</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.apache.axis2</groupId>
  308. <artifactId>axis2-jibx</artifactId>
  309. <version>1.6.2</version>
  310. <exclusions>
  311. <exclusion>
  312. <groupId>org.codehaus.woodstox</groupId>
  313. <artifactId>wstx-asl</artifactId>
  314. </exclusion>
  315. </exclusions>
  316. </dependency>
  317. <dependency>
  318. <groupId>org.apache.axis2</groupId>
  319. <artifactId>axis2-json</artifactId>
  320. <version>1.6.2</version>
  321. </dependency>
  322. <dependency>
  323. <groupId>org.apache.axis2</groupId>
  324. <artifactId>axis2-kernel</artifactId>
  325. <version>1.6.2</version>
  326. <exclusions>
  327. <exclusion>
  328. <groupId>commons-fileupload</groupId>
  329. <artifactId>commons-fileupload</artifactId>
  330. </exclusion>
  331. <exclusion>
  332. <groupId>javax.ws.rs</groupId>
  333. <artifactId>jsr311-api</artifactId>
  334. </exclusion>
  335. </exclusions>
  336. </dependency>
  337. <dependency>
  338. <groupId>org.apache.axis2</groupId>
  339. <artifactId>axis2-mtompolicy</artifactId>
  340. <version>1.6.2</version>
  341. </dependency>
  342. <dependency>
  343. <groupId>org.apache.axis2</groupId>
  344. <artifactId>axis2-saaj</artifactId>
  345. <version>1.6.2</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>org.apache.axis2</groupId>
  349. <artifactId>axis2-soapmonitor-servlet</artifactId>
  350. <version>1.6.2</version>
  351. </dependency>
  352. <dependency>
  353. <groupId>org.apache.axis2</groupId>
  354. <artifactId>axis2-spring</artifactId>
  355. <version>1.6.2</version>
  356. <exclusions>
  357. <exclusion>
  358. <groupId>org.springframework</groupId>
  359. <artifactId>spring-beans</artifactId>
  360. </exclusion>
  361. <exclusion>
  362. <groupId>org.springframework</groupId>
  363. <artifactId>spring-web</artifactId>
  364. </exclusion>
  365. <exclusion>
  366. <groupId>org.springframework</groupId>
  367. <artifactId>spring-core</artifactId>
  368. </exclusion>
  369. <exclusion>
  370. <groupId>org.springframework</groupId>
  371. <artifactId>spring-context</artifactId>
  372. </exclusion>
  373. </exclusions>
  374. </dependency>
  375. <dependency>
  376. <groupId>org.apache.axis2</groupId>
  377. <artifactId>axis2-transport-http</artifactId>
  378. <version>1.6.2</version>
  379. <exclusions>
  380. <exclusion>
  381. <groupId>org.apache.httpcomponents</groupId>
  382. <artifactId>httpcore</artifactId>
  383. </exclusion>
  384. </exclusions>
  385. </dependency>
  386. <dependency>
  387. <groupId>org.apache.axis2</groupId>
  388. <artifactId>axis2-transport-local</artifactId>
  389. <version>1.6.2</version>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.apache.axis2</groupId>
  393. <artifactId>axis2-xmlbeans</artifactId>
  394. <version>1.6.2</version>
  395. </dependency>
  396. <dependency>
  397. <groupId>bcel</groupId>
  398. <artifactId>bcel</artifactId>
  399. <version>5.1</version>
  400. </dependency>
  401. <dependency>
  402. <groupId>net.sf.jmatchparser</groupId>
  403. <artifactId>jMatchParser-icu4j-chardet</artifactId>
  404. <version>0.1</version>
  405. <scope>provided</scope>
  406. </dependency>
  407. <dependency>
  408. <groupId>com.github.sebhoss</groupId>
  409. <artifactId>common-annotations</artifactId>
  410. <version>1.0.0</version>
  411. </dependency>
  412. <dependency>
  413. <groupId>commons-beanutils</groupId>
  414. <artifactId>commons-beanutils</artifactId>
  415. <version>1.8.3</version>
  416. </dependency>
  417. <dependency>
  418. <groupId>commons-codec</groupId>
  419. <artifactId>commons-codec</artifactId>
  420. <version>1.6</version>
  421. </dependency>
  422. <dependency>
  423. <groupId>commons-collections</groupId>
  424. <artifactId>commons-collections</artifactId>
  425. <version>3.2.1</version>
  426. </dependency>
  427. <dependency>
  428. <groupId>commons-discovery</groupId>
  429. <artifactId>commons-discovery</artifactId>
  430. <version>0.4</version>
  431. <exclusions>
  432. <exclusion>
  433. <groupId>commons-logging</groupId>
  434. <artifactId>commons-logging</artifactId>
  435. </exclusion>
  436. </exclusions>
  437. </dependency>
  438. <dependency>
  439. <groupId>commons-fileupload</groupId>
  440. <artifactId>commons-fileupload</artifactId>
  441. <version>1.3</version>
  442. <exclusions>
  443. <exclusion>
  444. <groupId>commons-io</groupId>
  445. <artifactId>commons-io</artifactId>
  446. </exclusion>
  447. </exclusions>
  448. </dependency>
  449. <dependency>
  450. <groupId>commons-httpclient</groupId>
  451. <artifactId>commons-httpclient</artifactId>
  452. <version>3.1</version>
  453. <exclusions>
  454. <exclusion>
  455. <groupId>commons-logging</groupId>
  456. <artifactId>commons-logging</artifactId>
  457. </exclusion>
  458. <exclusion>
  459. <groupId>commons-codec</groupId>
  460. <artifactId>commons-codec</artifactId>
  461. </exclusion>
  462. </exclusions>
  463. </dependency>
  464. <dependency>
  465. <groupId>commons-io</groupId>
  466. <artifactId>commons-io</artifactId>
  467. <version>2.4</version>
  468. </dependency>
  469. <dependency>
  470. <groupId>commons-lang</groupId>
  471. <artifactId>commons-lang</artifactId>
  472. <version>2.6</version>
  473. </dependency>
  474. <dependency>
  475. <groupId>org.apache.commons</groupId>
  476. <artifactId>commons-lang3</artifactId>
  477. <version>3.1</version>
  478. </dependency>
  479. <dependency>
  480. <groupId>commons-logging</groupId>
  481. <artifactId>commons-logging</artifactId>
  482. <version>1.1.1</version>
  483. </dependency>
  484. <dependency>
  485. <groupId>dom4j</groupId>
  486. <artifactId>dom4j</artifactId>
  487. <version>1.6.1</version>
  488. <exclusions>
  489. <exclusion>
  490. <groupId>xml-apis</groupId>
  491. <artifactId>xml-apis</artifactId>
  492. </exclusion>
  493. </exclusions>
  494. </dependency>
  495. <dependency>
  496. <groupId>net.sf.ezmorph</groupId>
  497. <artifactId>ezmorph</artifactId>
  498. <version>1.0.6</version>
  499. <exclusions>
  500. <exclusion>
  501. <groupId>commons-lang</groupId>
  502. <artifactId>commons-lang</artifactId>
  503. </exclusion>
  504. </exclusions>
  505. </dependency>
  506. <dependency>
  507. <groupId>net.sourceforge.htmlcleaner</groupId>
  508. <artifactId>htmlcleaner</artifactId>
  509. <version>2.2</version>
  510. </dependency>
  511. <dependency>
  512. <groupId>org.freemarker</groupId>
  513. <artifactId>freemarker</artifactId>
  514. <version>2.3.19</version>
  515. </dependency>
  516. <dependency>
  517. <groupId>org.apache.httpcomponents</groupId>
  518. <artifactId>httpclient</artifactId>
  519. <version>4.2.5</version>
  520. </dependency>
  521. <dependency>
  522. <groupId>org.apache.httpcomponents</groupId>
  523. <artifactId>httpclient-cache</artifactId>
  524. <version>4.2.5</version>
  525. </dependency>
  526. <dependency>
  527. <groupId>org.apache.httpcomponents</groupId>
  528. <artifactId>httpcore</artifactId>
  529. <version>4.2.4</version>
  530. </dependency>
  531. <dependency>
  532. <groupId>gov.nist.math</groupId>
  533. <artifactId>jama</artifactId>
  534. <version>1.0.3</version>
  535. </dependency>
  536. <dependency>
  537. <groupId>javassist</groupId>
  538. <artifactId>javassist</artifactId>
  539. <version>3.11.0.GA</version>
  540. </dependency>
  541. <dependency>
  542. <groupId>net.sf.json-lib</groupId>
  543. <artifactId>json-lib</artifactId>
  544. <version>2.3</version>
  545. <classifier>jdk15</classifier>
  546. <exclusions>
  547. <exclusion>
  548. <groupId>commons-beanutils</groupId>
  549. <artifactId>commons-beanutils</artifactId>
  550. </exclusion>
  551. <exclusion>
  552. <groupId>commons-lang</groupId>
  553. <artifactId>commons-lang</artifactId>
  554. </exclusion>
  555. </exclusions>
  556. </dependency>
  557. <dependency>
  558. <groupId>org.jsoup</groupId>
  559. <artifactId>jsoup</artifactId>
  560. <version>1.7.2</version>
  561. </dependency>
  562. <dependency>
  563. <groupId>junit</groupId>
  564. <artifactId>junit</artifactId>
  565. <version>4.11</version>
  566. </dependency>
  567. <dependency>
  568. <groupId>log4j</groupId>
  569. <artifactId>log4j</artifactId>
  570. <version>1.2.17</version>
  571. </dependency>
  572. <dependency>
  573. <groupId>org.apache.lucene</groupId>
  574. <artifactId>lucene-core</artifactId>
  575. <version>4.3.1</version>
  576. </dependency>
  577. <dependency>
  578. <groupId>org.mongodb</groupId>
  579. <artifactId>mongo-java-driver</artifactId>
  580. <version>2.10.1</version>
  581. </dependency>
  582. <dependency>
  583. <groupId>org.apache.neethi</groupId>
  584. <artifactId>neethi</artifactId>
  585. <version>3.0.2</version>
  586. </dependency>
  587. <dependency>
  588. <groupId>ognl</groupId>
  589. <artifactId>ognl</artifactId>
  590. <version>3.0.6</version>
  591. </dependency>
  592. <dependency>
  593. <groupId>org.apache.poi</groupId>
  594. <artifactId>poi</artifactId>
  595. <version>3.9</version>
  596. <exclusions>
  597. <exclusion>
  598. <groupId>commons-codec</groupId>
  599. <artifactId>commons-codec</artifactId>
  600. </exclusion>
  601. </exclusions>
  602. </dependency>
  603. <dependency>
  604. <groupId>org.quartz-scheduler</groupId>
  605. <artifactId>quartz</artifactId>
  606. <version>2.2.1</version>
  607. <exclusions>
  608. <exclusion>
  609. <groupId>org.slf4j</groupId>
  610. <artifactId>slf4j-api</artifactId>
  611. </exclusion>
  612. </exclusions>
  613. </dependency>
  614. <dependency>
  615. <groupId>org.quartz-scheduler</groupId>
  616. <artifactId>quartz-jobs</artifactId>
  617. <version>2.2.1</version>
  618. </dependency>
  619. <dependency>
  620. <groupId>org.springframework</groupId>
  621. <artifactId>spring-beans</artifactId>
  622. <version>4.0.0.RELEASE</version>
  623. </dependency>
  624. <dependency>
  625. <groupId>org.springframework</groupId>
  626. <artifactId>spring-aspects</artifactId>
  627. <version>4.0.0.RELEASE</version>
  628. <exclusions>
  629. <exclusion>
  630. <groupId>org.aspectj</groupId>
  631. <artifactId>aspectjweaver</artifactId>
  632. </exclusion>
  633. </exclusions>
  634. </dependency>
  635. <dependency>
  636. <groupId>org.springframework</groupId>
  637. <artifactId>spring-aop</artifactId>
  638. <version>4.0.0.RELEASE</version>
  639. </dependency>
  640. <dependency>
  641. <groupId>org.springframework</groupId>
  642. <artifactId>spring-context</artifactId>
  643. <version>4.0.0.RELEASE</version>
  644. </dependency>
  645. <dependency>
  646. <groupId>org.springframework</groupId>
  647. <artifactId>spring-context-support</artifactId>
  648. <version>4.0.0.RELEASE</version>
  649. </dependency>
  650. <dependency>
  651. <groupId>org.springframework</groupId>
  652. <artifactId>spring-core</artifactId>
  653. <version>4.0.0.RELEASE</version>
  654. </dependency>
  655. <dependency>
  656. <groupId>org.springframework.data</groupId>
  657. <artifactId>spring-data-commons</artifactId>
  658. <version>1.5.0.RELEASE</version>
  659. <exclusions>
  660. <exclusion>
  661. <groupId>org.springframework</groupId>
  662. <artifactId>spring-beans</artifactId>
  663. </exclusion>
  664. <exclusion>
  665. <groupId>org.springframework</groupId>
  666. <artifactId>spring-core</artifactId>
  667. </exclusion>
  668. <exclusion>
  669. <groupId>org.springframework</groupId>
  670. <artifactId>spring-context</artifactId>
  671. </exclusion>
  672. </exclusions>
  673. </dependency>
  674. <dependency>
  675. <groupId>org.springframework.data</groupId>
  676. <artifactId>spring-data-mongodb</artifactId>
  677. <version>1.2.0.RELEASE</version>
  678. <exclusions>
  679. <exclusion>
  680. <groupId>org.springframework</groupId>
  681. <artifactId>spring-beans</artifactId>
  682. </exclusion>
  683. <exclusion>
  684. <groupId>org.springframework</groupId>
  685. <artifactId>spring-web</artifactId>
  686. </exclusion>
  687. <exclusion>
  688. <groupId>org.springframework</groupId>
  689. <artifactId>spring-core</artifactId>
  690. </exclusion>
  691. <exclusion>
  692. <groupId>org.springframework</groupId>
  693. <artifactId>spring-context</artifactId>
  694. </exclusion>
  695. <exclusion>
  696. <groupId>org.springframework</groupId>
  697. <artifactId>spring-tx</artifactId>
  698. </exclusion>
  699. <exclusion>
  700. <groupId>org.springframework</groupId>
  701. <artifactId>spring-expression</artifactId>
  702. </exclusion>
  703. </exclusions>
  704. </dependency>
  705. <dependency>
  706. <groupId>org.springframework.data</groupId>
  707. <artifactId>spring-data-mongodb-cross-store</artifactId>
  708. <version>1.2.0.RELEASE</version>
  709. <exclusions>
  710. <exclusion>
  711. <groupId>org.springframework</groupId>
  712. <artifactId>spring-beans</artifactId>
  713. </exclusion>
  714. <exclusion>
  715. <groupId>org.springframework</groupId>
  716. <artifactId>spring-aspects</artifactId>
  717. </exclusion>
  718. <exclusion>
  719. <groupId>org.springframework</groupId>
  720. <artifactId>spring-orm</artifactId>
  721. </exclusion>
  722. <exclusion>
  723. <groupId>org.springframework</groupId>
  724. <artifactId>spring-tx</artifactId>
  725. </exclusion>
  726. </exclusions>
  727. </dependency>
  728. <dependency>
  729. <groupId>org.springframework.data</groupId>
  730. <artifactId>spring-data-mongodb-log4j</artifactId>
  731. <version>1.2.0.RELEASE</version>
  732. <exclusions>
  733. <exclusion>
  734. <groupId>log4j</groupId>
  735. <artifactId>log4j</artifactId>
  736. </exclusion>
  737. </exclusions>
  738. </dependency>
  739. <dependency>
  740. <groupId>org.aspectj</groupId>
  741. <artifactId>aspectjweaver</artifactId>
  742. <version>1.8.0</version>
  743. <scope>provided</scope>
  744. </dependency>
  745. <dependency>
  746. <groupId>org.apache.tomcat</groupId>
  747. <artifactId>tomcat-coyote</artifactId>
  748. <version>8.0.15</version>
  749. </dependency>
  750. <dependency>
  751. <groupId>org.springframework</groupId>
  752. <artifactId>spring-expression</artifactId>
  753. <version>4.0.0.RELEASE</version>
  754. </dependency>
  755. <dependency>
  756. <groupId>org.springframework</groupId>
  757. <artifactId>spring-orm</artifactId>
  758. <version>4.0.0.RELEASE</version>
  759. </dependency>
  760. <dependency>
  761. <groupId>org.springframework</groupId>
  762. <artifactId>spring-tx</artifactId>
  763. <version>4.0.0.RELEASE</version>
  764. </dependency>
  765. <dependency>
  766. <groupId>org.springframework</groupId>
  767. <artifactId>spring-web</artifactId>
  768. <version>4.0.0.RELEASE</version>
  769. </dependency>
  770. <dependency>
  771. <groupId>org.apache.struts</groupId>
  772. <artifactId>struts2-core</artifactId>
  773. <version>2.3.15.1</version>
  774. <exclusions>
  775. <exclusion>
  776. <groupId>commons-io</groupId>
  777. <artifactId>commons-io</artifactId>
  778. </exclusion>
  779. </exclusions>
  780. </dependency>
  781. <dependency>
  782. <groupId>org.apache.struts</groupId>
  783. <artifactId>struts2-json-plugin</artifactId>
  784. <version>2.3.15.1</version>
  785. </dependency>
  786. <dependency>
  787. <groupId>org.apache.struts</groupId>
  788. <artifactId>struts2-spring-plugin</artifactId>
  789. <version>2.3.15.1</version>
  790. <exclusions>
  791. <exclusion>
  792. <groupId>org.springframework</groupId>
  793. <artifactId>spring-beans</artifactId>
  794. </exclusion>
  795. <exclusion>
  796. <groupId>org.springframework</groupId>
  797. <artifactId>spring-web</artifactId>
  798. </exclusion>
  799. <exclusion>
  800. <groupId>org.springframework</groupId>
  801. <artifactId>spring-core</artifactId>
  802. </exclusion>
  803. <exclusion>
  804. <groupId>org.springframework</groupId>
  805. <artifactId>spring-context</artifactId>
  806. </exclusion>
  807. </exclusions>
  808. </dependency>
  809. <dependency>
  810. <groupId>org.apache.woden</groupId>
  811. <artifactId>woden-api</artifactId>
  812. <version>1.0M9</version>
  813. </dependency>
  814. <dependency>
  815. <groupId>org.apache.woden</groupId>
  816. <artifactId>woden-impl-commons</artifactId>
  817. <version>1.0M9</version>
  818. </dependency>
  819. <dependency>
  820. <groupId>org.apache.woden</groupId>
  821. <artifactId>woden-impl-dom</artifactId>
  822. <version>1.0M9</version>
  823. </dependency>
  824. <dependency>
  825. <groupId>wsdl4j</groupId>
  826. <artifactId>wsdl4j</artifactId>
  827. <version>1.6.2</version>
  828. </dependency>
  829. <dependency>
  830. <groupId>xalan</groupId>
  831. <artifactId>xalan</artifactId>
  832. <version>2.7.0</version>
  833. <exclusions>
  834. <exclusion>
  835. <groupId>xml-apis</groupId>
  836. <artifactId>xml-apis</artifactId>
  837. </exclusion>
  838. </exclusions>
  839. </dependency>
  840. <dependency>
  841. <groupId>xml-resolver</groupId>
  842. <artifactId>xml-resolver</artifactId>
  843. <version>1.2</version>
  844. </dependency>
  845. <dependency>
  846. <groupId>org.apache.ws.commons.schema</groupId>
  847. <artifactId>XmlSchema</artifactId>
  848. <version>1.4.7</version>
  849. </dependency>
  850. <dependency>
  851. <groupId>org.apache.struts.xwork</groupId>
  852. <artifactId>xwork-core</artifactId>
  853. <version>2.3.15.1</version>
  854. </dependency>
  855. <dependency>
  856. <groupId>org.slf4j</groupId>
  857. <artifactId>slf4j-ext</artifactId>
  858. <version>1.5.10</version>
  859. <scope>provided</scope>
  860. <exclusions>
  861. <exclusion>
  862. <groupId>org.slf4j</groupId>
  863. <artifactId>slf4j-api</artifactId>
  864. </exclusion>
  865. </exclusions>
  866. </dependency>
  867. <dependency>
  868. <groupId>org.slf4j</groupId>
  869. <artifactId>jcl-over-slf4j</artifactId>
  870. <version>1.7.1</version>
  871. <scope>provided</scope>
  872. </dependency>
  873. <dependency>
  874. <groupId>org.aspectj</groupId>
  875. <artifactId>aspectjrt</artifactId>
  876. <version>1.7.1</version>
  877. <scope>provided</scope>
  878. </dependency>
  879. <dependency>
  880. <groupId>c3p0</groupId>
  881. <artifactId>c3p0</artifactId>
  882. <version>0.9.1.1</version>
  883. <scope>provided</scope>
  884. </dependency>
  885. <dependency>
  886. <groupId>javax.enterprise</groupId>
  887. <artifactId>cdi-api</artifactId>
  888. <version>1.0-SP1</version>
  889. <scope>provided</scope>
  890. </dependency>
  891. <dependency>
  892. <groupId>cglib</groupId>
  893. <artifactId>cglib</artifactId>
  894. <version>2.2</version>
  895. <scope>provided</scope>
  896. <exclusions>
  897. <exclusion>
  898. <groupId>asm</groupId>
  899. <artifactId>asm</artifactId>
  900. </exclusion>
  901. </exclusions>
  902. </dependency>
  903. <dependency>
  904. <groupId>commons-cli</groupId>
  905. <artifactId>commons-cli</artifactId>
  906. <version>1.2</version>
  907. <scope>provided</scope>
  908. </dependency>
  909. <dependency>
  910. <groupId>com.sun.xml.fastinfoset</groupId>
  911. <artifactId>FastInfoset</artifactId>
  912. <version>1.2.7</version>
  913. <scope>provided</scope>
  914. </dependency>
  915. <dependency>
  916. <groupId>org.apache.geronimo.specs</groupId>
  917. <artifactId>geronimo-jta_1.1_spec</artifactId>
  918. <version>1.1</version>
  919. <scope>provided</scope>
  920. </dependency>
  921. <dependency>
  922. <groupId>org.apache.geronimo.specs</groupId>
  923. <artifactId>geronimo-saaj_1.3_spec</artifactId>
  924. <version>1.0.1</version>
  925. <scope>provided</scope>
  926. </dependency>
  927. <dependency>
  928. <groupId>org.apache.geronimo.specs</groupId>
  929. <artifactId>geronimo-stax-api_1.0_spec</artifactId>
  930. <version>1.0.1</version>
  931. <scope>provided</scope>
  932. </dependency>
  933. <dependency>
  934. <groupId>org.apache.geronimo.specs</groupId>
  935. <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
  936. <version>1.1.2</version>
  937. <scope>provided</scope>
  938. </dependency>
  939. <dependency>
  940. <groupId>com.google.collections</groupId>
  941. <artifactId>google-collections</artifactId>
  942. <version>1.0</version>
  943. <scope>provided</scope>
  944. </dependency>
  945. <dependency>
  946. <groupId>org.hamcrest</groupId>
  947. <artifactId>hamcrest-core</artifactId>
  948. <version>1.3</version>
  949. <scope>provided</scope>
  950. </dependency>
  951. <dependency>
  952. <groupId>org.hibernate.javax.persistence</groupId>
  953. <artifactId>hibernate-jpa-2.0-api</artifactId>
  954. <version>1.0.0.Final</version>
  955. <scope>provided</scope>
  956. </dependency>
  957. <dependency>
  958. <groupId>com.ibm.icu</groupId>
  959. <artifactId>icu4j</artifactId>
  960. <version>4.8.1.1</version>
  961. <scope>provided</scope>
  962. </dependency>
  963. <dependency>
  964. <groupId>javax.inject</groupId>
  965. <artifactId>javax.inject</artifactId>
  966. <version>1</version>
  967. <scope>provided</scope>
  968. </dependency>
  969. <dependency>
  970. <groupId>jaxen</groupId>
  971. <artifactId>jaxen</artifactId>
  972. <version>1.1.3</version>
  973. <scope>provided</scope>
  974. <exclusions>
  975. <exclusion>
  976. <groupId>maven-plugins</groupId>
  977. <artifactId>maven-findbugs-plugin</artifactId>
  978. </exclusion>
  979. <exclusion>
  980. <groupId>maven-plugins</groupId>
  981. <artifactId>maven-cobertura-plugin</artifactId>
  982. </exclusion>
  983. <exclusion>
  984. <groupId>xalan</groupId>
  985. <artifactId>xalan</artifactId>
  986. </exclusion>
  987. <exclusion>
  988. <groupId>com.ibm.icu</groupId>
  989. <artifactId>icu4j</artifactId>
  990. </exclusion>
  991. </exclusions>
  992. </dependency>
  993. <dependency>
  994. <groupId>org.jboss.interceptor</groupId>
  995. <artifactId>jboss-interceptor</artifactId>
  996. <version>1.0.0-CR11</version>
  997. <scope>provided</scope>
  998. <exclusions>
  999. <exclusion>
  1000. <groupId>org.slf4j</groupId>
  1001. <artifactId>slf4j-api</artifactId>
  1002. </exclusion>
  1003. </exclusions>
  1004. </dependency>
  1005. <dependency>
  1006. <groupId>org.jboss.interceptor</groupId>
  1007. <artifactId>jboss-interceptor-api</artifactId>
  1008. <version>1.1</version>
  1009. <scope>provided</scope>
  1010. </dependency>
  1011. <dependency>
  1012. <groupId>org.jdom</groupId>
  1013. <artifactId>jdom</artifactId>
  1014. <version>1.1</version>
  1015. <scope>provided</scope>
  1016. </dependency>
  1017. <dependency>
  1018. <groupId>org.jibx</groupId>
  1019. <artifactId>jibx-bind</artifactId>
  1020. <version>1.2</version>
  1021. <scope>provided</scope>
  1022. <exclusions>
  1023. <exclusion>
  1024. <groupId>org.jibx</groupId>
  1025. <artifactId>jibx-run</artifactId>
  1026. </exclusion>
  1027. </exclusions>
  1028. </dependency>
  1029. <dependency>
  1030. <groupId>org.jibx</groupId>
  1031. <artifactId>jibx-run</artifactId>
  1032. <version>1.2</version>
  1033. <scope>provided</scope>
  1034. <exclusions>
  1035. <exclusion>
  1036. <groupId>org.codehaus.woodstox</groupId>
  1037. <artifactId>wstx-asl</artifactId>
  1038. </exclusion>
  1039. </exclusions>
  1040. </dependency>
  1041. <dependency>
  1042. <groupId>javax.annotation</groupId>
  1043. <artifactId>jsr250-api</artifactId>
  1044. <version>1.0</version>
  1045. <scope>provided</scope>
  1046. </dependency>
  1047. <dependency>
  1048. <groupId>javax.ws.rs</groupId>
  1049. <artifactId>jsr311-api</artifactId>
  1050. <version>1.1.1</version>
  1051. <scope>provided</scope>
  1052. </dependency>
  1053. <dependency>
  1054. <groupId>org.apache.tomcat</groupId>
  1055. <artifactId>juli</artifactId>
  1056. <version>6.0.16</version>
  1057. <scope>provided</scope>
  1058. </dependency>
  1059. <dependency>
  1060. <groupId>javax.mail</groupId>
  1061. <artifactId>mail</artifactId>
  1062. <version>1.4.3</version>
  1063. </dependency>
  1064. <dependency>
  1065. <groupId>javax.servlet</groupId>
  1066. <artifactId>jstl</artifactId>
  1067. <version>1.2</version>
  1068. </dependency>
  1069. <dependency>
  1070. <groupId>regexp</groupId>
  1071. <artifactId>regexp</artifactId>
  1072. <version>1.2</version>
  1073. <scope>provided</scope>
  1074. </dependency>
  1075. <dependency>
  1076. <groupId>org.codehaus.woodstox</groupId>
  1077. <artifactId>stax2-api</artifactId>
  1078. <version>3.0.2</version>
  1079. <scope>provided</scope>
  1080. </dependency>
  1081. <dependency>
  1082. <groupId>javax.xml.stream</groupId>
  1083. <artifactId>stax-api</artifactId>
  1084. <version>1.0-2</version>
  1085. <scope>provided</scope>
  1086. </dependency>
  1087. <dependency>
  1088. <groupId>org.apache.tomcat</groupId>
  1089. <artifactId>tomcat-jni</artifactId>
  1090. <version>8.0.15</version>
  1091. <scope>provided</scope>
  1092. </dependency>
  1093. <dependency>
  1094. <groupId>org.apache.tomcat</groupId>
  1095. <artifactId>tomcat-juli</artifactId>
  1096. <version>8.0.15</version>
  1097. <scope>provided</scope>
  1098. </dependency>
  1099. <dependency>
  1100. <groupId>org.apache.tomcat</groupId>
  1101. <artifactId>tomcat-util</artifactId>
  1102. <version>8.0.15</version>
  1103. <scope>provided</scope>
  1104. </dependency>
  1105. <dependency>
  1106. <groupId>org.apache.tomcat</groupId>
  1107. <artifactId>tribes</artifactId>
  1108. <version>6.0.16</version>
  1109. <scope>provided</scope>
  1110. </dependency>
  1111. <dependency>
  1112. <groupId>javax.xml</groupId>
  1113. <artifactId>webservices-api-osgi</artifactId>
  1114. <version>2.0.1</version>
  1115. <scope>provided</scope>
  1116. </dependency>
  1117. <dependency>
  1118. <groupId>org.jboss.weld</groupId>
  1119. <artifactId>weld-api</artifactId>
  1120. <version>1.0-SP1</version>
  1121. <scope>provided</scope>
  1122. </dependency>
  1123. <dependency>
  1124. <groupId>org.jboss.weld</groupId>
  1125. <artifactId>weld-core</artifactId>
  1126. <version>1.0.1-SP3</version>
  1127. <scope>provided</scope>
  1128. <exclusions>
  1129. <exclusion>
  1130. <groupId>org.slf4j</groupId>
  1131. <artifactId>slf4j-api</artifactId>
  1132. </exclusion>
  1133. </exclusions>
  1134. </dependency>
  1135. <dependency>
  1136. <groupId>org.jboss.weld</groupId>
  1137. <artifactId>weld-osgi-bundle</artifactId>
  1138. <version>1.0.1-SP3</version>
  1139. <scope>provided</scope>
  1140. </dependency>
  1141. <dependency>
  1142. <groupId>org.jboss.weld</groupId>
  1143. <artifactId>weld-spi</artifactId>
  1144. <version>1.0-SP1</version>
  1145. <scope>provided</scope>
  1146. </dependency>
  1147. <dependency>
  1148. <groupId>org.codehaus.woodstox</groupId>
  1149. <artifactId>woodstox-core-asl</artifactId>
  1150. <version>4.0.8</version>
  1151. <scope>provided</scope>
  1152. </dependency>
  1153. <dependency>
  1154. <groupId>org.apache.axis2</groupId>
  1155. <artifactId>axis2-jaxbri</artifactId>
  1156. <version>1.6.2</version>
  1157. </dependency>
  1158. <dependency>
  1159. <groupId>org.apache.axis2</groupId>
  1160. <artifactId>axis2-jaxws</artifactId>
  1161. <version>1.6.2</version>
  1162. <exclusions>
  1163. <exclusion>
  1164. <groupId>commons-io</groupId>
  1165. <artifactId>commons-io</artifactId>
  1166. </exclusion>
  1167. </exclusions>
  1168. </dependency>
  1169. <dependency>
  1170. <groupId>org.apache.axis2</groupId>
  1171. <artifactId>axis2-metadata</artifactId>
  1172. <version>1.6.2</version>
  1173. </dependency>
  1174. <dependency>
  1175. <groupId>javax.xml</groupId>
  1176. <artifactId>jaxrpc</artifactId>
  1177. <version>1.1</version>
  1178. </dependency>
  1179. <dependency>
  1180. <groupId>javax.faces</groupId>
  1181. <artifactId>jsf-impl</artifactId>
  1182. <version>1.2_04</version>
  1183. </dependency>
  1184. <dependency>
  1185. <groupId>javax.faces</groupId>
  1186. <artifactId>jsf-api</artifactId>
  1187. <version>1.2_04</version>
  1188. </dependency>
  1189. </dependencies>
  1190. <build>
  1191. <plugins>
  1192. <plugin>
  1193. <artifactId>maven-war-plugin</artifactId>
  1194. </plugin>
  1195. <plugin>
  1196. <artifactId>maven-compiler-plugin</artifactId>
  1197. <configuration>
  1198. <source>1.6</source>
  1199. <target>1.6</target>
  1200. </configuration>
  1201. </plugin>
  1202. </plugins>
  1203. </build>
  1204. </project>
时间: 2024-08-03 23:47:04

MyEclipse使用总结——将原有的MyEclipse中的项目转成maven项目[转]的相关文章

Myeclipse Java项目转换成Maven项目

1.在Eclipse中Java项目转换成Maven项目可以在项目右键-->configure-->Convert Plug-in projects..  就可以.而在myeclipse中项目右键时configure标签不是默认的  需要手动开启. 2.开启configure过程为...   Window-->perferences. 3. 4. 5.然后项目右键-->configure-->Convert Plug-in projects..  就转换成maven项目了. 6

eclipse中java项目转成Web项目

在eclipse导入一个myeclipse建的web项目后,在Eclipse中显示的还是java项目,按下面的步骤可以将其转换成web项目. 1.找到项目目录下的.project文件 2.编辑.project文件,找到<natures>...</natures> 3.2中找到的结点中加下面的的代码 <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>o

Eclipse中普通java项目转成Web项目

在eclipse导入一个myeclipse建的web项目后,在Eclipse中显示的还是java项目,按下面的步骤可以将其转换成web项目. 1.找到项目目录下的.project文件 2.编辑.project文件,找到<natures>...</natures> 3.2中找到的结点中加下面的的代码 <nature>org.eclipse.wst.common.project.facet.core.nature</nature><nature>or

Eclipse中普通java项目转成Web项目(此为参考其他大神的)

在eclipse导入一个myeclipse建的web项目后,在Eclipse中显示的还是java项目,按下面的步骤可以将其转换成web项目. 1.找到项目目录下的.project文件 2.编辑.project文件,找到<natures>...</natures> 3.2中找到的结点中加下面的的代码 <nature>org.eclipse.wst.common.project.facet.core.nature</nature><nature>or

将Eclipse项目转换成AndroidStudio项目过程中遇到的问题以及解决方法

将Eclipse项目转换成AndroidStudio项目也不是第一次了,昨天转的时候遇到几个问题: 首先将项目导入androidstudio,导完后报错: 问题一: Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error:Execution failed for task ':app:mergeDebugResources'.> Error: jav

Eclipse中从svn中检出maven项目

相信很多初学者都遇到过Eclipse中从SVN检出Maven项目之后看到的目录结构并不是Maven目录结构:或者只能先用SVN将Maven项目签入到本地,然后再用Eclipse导入Maven项目,但是每次提交或更新代码都要去项目目录去操作,非常不方便. 那么到底怎样才能在Eclipse中成功导入SVN检出的Maven项目呢?具体步骤如下: 1.使用Eclipse从svn检出项目.打开Eclipse,在project explorer空白区域右键鼠标移至import选择import.2.之后选择s

Myeclipse中java项目转成Web项目

在eclipse导入一个myeclipse建的web项目后,在Eclipse中显示的还是java项目,按下面的步骤可以将其转换成web项目. 1.找到项目目录下的.project文件 2.编辑.project文件,找到<natures>...</natures> 3.2中找到的结点中加下面的的代码(如果没有) <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <natur

Jenkins 中创建项目时没有Maven项目怎么办

如果在创建项目时候,没有"创建一个Maven 项目"的选项. 你需要安装Maven项目插件:Maven Integration plugin . 点击"可选插件"  然后在右边的过滤输入框中输入搜索关键字: Maven Integration Plugin  或者 Pipeline Maven Integration Plugin ,搜索到了以后,点击直接安装, 安装完成后重启就好了. 原文地址:https://www.cnblogs.com/zhizhao/p/9

将Myeclipse项目改成Eclipse项目

由于项目需求,需要将原来Myeclipse项目转移到Eclipse中去.搞了半天才搞出来,分享给大家,希望对大家有用. 首先导入一个从Myeclipse导出的项目 然后无法进行tomcat发布. 但是Myeclipse项目和Eclipse项目结构有些不同,所以这里我们可以通过Eclipse插件来进行修改. 选中项目,点击鼠标右键.选择Properties – > Project Facets 这里选择Dynamic Web Module,版本选择2.4.然后点击OK 这时你对发现多了一个WebC