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

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