• maven 通用pom.xml


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <project xmlns="http://maven.apache.org/POM/4.0.0"
      3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      5     <modelVersion>4.0.0</modelVersion>
      6 
      7     <groupId>com.test</groupId>
      8     <artifactId>helloworld</artifactId>
      9     <version>1.0-SNAPSHOT</version>
     10 
     11     <properties>
     12         <spring.version>4.2.6.RELEASE</spring.version>
     13         <struts2.version>2.3.16.1</struts2.version>
     14 
     15         <lucene.version>4.0.0</lucene.version>
     16         <solr.version>4.0.0</solr.version>
     17         <httpclient.version>4.1.2</httpclient.version>
     18 
     19         <hibernate.version>4.3.4.Final</hibernate.version>
     20         <mybatis.version>3.2.6</mybatis.version>
     21         <mysql.version>5.1.29</mysql.version>
     22         <ojdbc14.version>10.2.0.4.0</ojdbc14.version>
     23 
     24         <servlet-api.version>2.5</servlet-api.version>
     25         <jsp-api.version>2.2</jsp-api.version>
     26         <jstl.version>1.2</jstl.version>
     27 
     28         <fastjson.version>1.1.39</fastjson.version>
     29 
     30         <commons-dbcp2.version>2.0</commons-dbcp2.version>
     31         <commons-pool2.version>2.2</commons-pool2.version>
     32         <commons-logging.version>1.1.3</commons-logging.version>
     33         <commons-io.version>1.3.2</commons-io.version>
     34         <commons-lang3.version>3.3.1</commons-lang3.version>
     35         <commons-fileupload.version>1.2.1</commons-fileupload.version>
     36 
     37         <log4j.version>1.2.17</log4j.version>
     38         <slf4j.version>1.7.6</slf4j.version>
     39         <dom4j.version>1.6.1</dom4j.version>
     40         <jfreechart.version>1.0.17</jfreechart.version>
     41         <shiro.version>1.2.3</shiro.version>
     42 
     43         <aspectjweaver.version>1.7.4</aspectjweaver.version>
     44         <bonecp.version>0.8.0.RELEASE</bonecp.version>
     45         <druid.version>1.0.4</druid.version>
     46         <c3p0.version>0.9.2.1</c3p0.version>
     47         <testng.version>6.8.8</testng.version>
     48         <junit.version>4.11</junit.version>
     49         <freemarker.version>2.3.20</freemarker.version>
     50         <velocity.version>1.7</velocity.version>
     51         <tapestry.version>5.3.7</tapestry.version>
     52 
     53         <asm.version>4.2</asm.version>
     54         <cglib.version>3.1</cglib.version>
     55 
     56         <!-- Plugin的属性定义 -->
     57         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     58         <jdk.version>1.7</jdk.version>
     59 
     60         <vendor.name>HaiPeng Wang</vendor.name>
     61         <verdor.domain>http://www.whp8.com</verdor.domain>
     62     </properties>
     63 
     64     <dependencies>
     65 
     66         <!--⑤ 依赖的测试类库-->
     67         <dependency>
     68             <groupId>org.springframework</groupId>
     69             <artifactId>spring-test</artifactId>
     70             <version>${spring.version}</version>
     71         </dependency>
     72 
     73         <dependency>
     74             <groupId>junit</groupId>
     75             <artifactId>junit</artifactId>
     76             <version>4.8.2</version>
     77             <scope>test</scope>
     78         </dependency>
     79 
     80         <!-- spring相关 -->
     81         <dependency>
     82             <groupId>org.springframework</groupId>
     83             <artifactId>spring-core</artifactId>
     84             <version>${spring.version}</version>
     85         </dependency>
     86         <dependency>
     87             <groupId>org.springframework</groupId>
     88             <artifactId>spring-beans</artifactId>
     89             <version>${spring.version}</version>
     90         </dependency>
     91         <dependency>
     92             <groupId>org.springframework</groupId>
     93             <artifactId>spring-context</artifactId>
     94             <version>${spring.version}</version>
     95         </dependency>
     96         <dependency>
     97             <groupId>org.springframework</groupId>
     98             <artifactId>spring-jdbc</artifactId>
     99             <version>${spring.version}</version>
    100         </dependency>
    101         <dependency>
    102             <groupId>org.springframework</groupId>
    103             <artifactId>spring-web</artifactId>
    104             <version>${spring.version}</version>
    105         </dependency>
    106         <dependency>
    107             <groupId>org.springframework</groupId>
    108             <artifactId>spring-webmvc</artifactId>
    109             <version>${spring.version}</version>
    110         </dependency>
    111         <dependency>
    112             <groupId>org.springframework</groupId>
    113             <artifactId>spring-aop</artifactId>
    114             <version>${spring.version}</version>
    115         </dependency>
    116         <dependency>
    117             <groupId>org.springframework</groupId>
    118             <artifactId>spring-tx</artifactId>
    119             <version>${spring.version}</version>
    120         </dependency>
    121         <dependency>
    122             <groupId>org.springframework</groupId>
    123             <artifactId>spring-orm</artifactId>
    124             <version>${spring.version}</version>
    125         </dependency>
    126         <dependency>
    127             <groupId>org.springframework</groupId>
    128             <artifactId>spring-context-support</artifactId>
    129             <version>${spring.version}</version>
    130         </dependency>
    131         <dependency>
    132             <groupId>org.springframework</groupId>
    133             <artifactId>spring-test</artifactId>
    134             <version>${spring.version}</version>
    135         </dependency>
    136         <dependency>
    137             <groupId>org.springframework</groupId>
    138             <artifactId>spring-jms</artifactId>
    139             <version>${spring.version}</version>
    140         </dependency>
    141 
    142         <!-- 依赖的WEB类库-->
    143         <!--<dependency>-->
    144             <!--<groupId>javax.servlet.jsp</groupId>-->
    145             <!--<artifactId>jsp-api</artifactId>-->
    146             <!--<version>${jsp-api.version}</version>-->
    147         <!--</dependency>-->
    148         <dependency>
    149             <groupId>javax.servlet</groupId>
    150             <artifactId>servlet-api</artifactId>
    151             <version>${servlet-api.version}</version>
    152         </dependency>
    153         <dependency>
    154             <groupId>javax.servlet</groupId>
    155             <artifactId>jstl</artifactId>
    156             <version>${jstl.version}</version>
    157         </dependency>
    158 
    159         <!-- Json -->
    160         <dependency>
    161             <groupId>com.alibaba</groupId>
    162             <artifactId>fastjson</artifactId>
    163             <version>${fastjson.version}</version>
    164         </dependency>
    165 
    166         <dependency>
    167             <groupId>com.google.guava</groupId>
    168             <artifactId>guava</artifactId>
    169             <version>r05</version>
    170         </dependency>
    171 
    172         <dependency>
    173             <groupId>org.apache.httpcomponents</groupId>
    174             <artifactId>httpclient</artifactId>
    175             <version>${httpclient.version}</version>
    176         </dependency>
    177 
    178         <dependency>
    179             <groupId>org.apache.httpcomponents</groupId>
    180             <artifactId>httpcore</artifactId>
    181             <version>${httpclient.version}</version>
    182         </dependency>
    183 
    184         <dependency>
    185             <groupId>org.apache.httpcomponents</groupId>
    186             <artifactId>httpclient-cache</artifactId>
    187             <version>${httpclient.version}</version>
    188         </dependency>
    189 
    190         <dependency>
    191             <groupId>org.apache.httpcomponents</groupId>
    192             <artifactId>httpmime</artifactId>
    193             <version>${httpclient.version}</version>
    194         </dependency>
    195 
    196 
    197         <dependency>
    198             <groupId>commons-logging</groupId>
    199             <artifactId>commons-logging</artifactId>
    200             <version>1.1</version>
    201             <exclusions>
    202                 <exclusion>
    203                     <groupId>logkit</groupId>
    204                     <artifactId>logkit</artifactId>
    205                 </exclusion>
    206                 <exclusion>
    207                     <groupId>avalon-framework</groupId>
    208                     <artifactId>avalon-framework</artifactId>
    209                 </exclusion>
    210             </exclusions>
    211         </dependency>
    212 
    213         <dependency>
    214             <groupId>org.slf4j</groupId>
    215             <artifactId>slf4j-api</artifactId>
    216             <version>1.6.4</version>
    217         </dependency>
    218 
    219         <dependency>
    220             <groupId>org.slf4j</groupId>
    221             <artifactId>slf4j-log4j12</artifactId>
    222             <version>1.6.4</version>
    223         </dependency>
    224 
    225         <dependency>
    226             <groupId>commons-lang</groupId>
    227             <artifactId>commons-lang</artifactId>
    228             <version>2.5</version>
    229         </dependency>
    230 
    231         <dependency>
    232             <groupId>commons-io</groupId>
    233             <artifactId>commons-io</artifactId>
    234             <version>2.1</version>
    235         </dependency>
    236 
    237         <dependency>
    238             <groupId>commons-codec</groupId>
    239             <artifactId>commons-codec</artifactId>
    240             <version>1.5</version>
    241         </dependency>
    242 
    243         <dependency>
    244             <groupId>commons-beanutils</groupId>
    245             <artifactId>commons-beanutils</artifactId>
    246             <version>1.8.0</version>
    247         </dependency>
    248 
    249         <dependency>
    250             <groupId>commons-collections</groupId>
    251             <artifactId>commons-collections</artifactId>
    252             <version>3.2</version>
    253         </dependency>
    254 
    255         <dependency>
    256             <groupId>commons-fileupload</groupId>
    257             <artifactId>commons-fileupload</artifactId>
    258             <version>1.2.1</version>
    259         </dependency>
    260 
    261 
    262         <dependency>
    263             <groupId>jstl</groupId>
    264             <artifactId>jstl</artifactId>
    265             <version>1.2</version>
    266         </dependency>
    267 
    268         <dependency>
    269             <groupId>javax.servlet</groupId>
    270             <artifactId>servlet-api</artifactId>
    271             <version>2.5</version>
    272             <scope>compile</scope>
    273         </dependency>
    274 
    275 
    276         <dependency>
    277             <groupId>javax.servlet.jsp</groupId>
    278             <artifactId>jsp-api</artifactId>
    279             <version>2.0</version>
    280             <scope>compile</scope>
    281         </dependency>
    282 
    283         <dependency>
    284             <groupId>net.sf.json-lib</groupId>
    285             <artifactId>json-lib</artifactId>
    286             <version>2.1</version>
    287             <classifier>jdk15</classifier>
    288         </dependency>
    289 
    290         <dependency>
    291             <groupId>net.sf.ezmorph</groupId>
    292             <artifactId>ezmorph</artifactId>
    293             <version>1.0.6</version>
    294         </dependency>
    295 
    296         <dependency>
    297             <groupId>log4j</groupId>
    298             <artifactId>log4j</artifactId>
    299             <version>1.2.16</version>
    300         </dependency>
    301 
    302         <dependency>
    303             <groupId>junit</groupId>
    304             <artifactId>junit</artifactId>
    305             <version>4.8.2</version>
    306             <scope>test</scope>
    307         </dependency>
    308 
    309 
    310     </dependencies>
    311 
    312 
    313     <build>
    314         <plugins>
    315 
    316             <plugin>
    317                 <groupId>org.apache.maven.plugins</groupId>
    318                 <artifactId>maven-compiler-plugin</artifactId>
    319                 <version>2.5.1</version>
    320                 <configuration>
    321                     <source>1.6</source>
    322                     <target>1.6</target>
    323                     <encoding>UTF-8</encoding>
    324                 </configuration>
    325             </plugin>
    326 
    327             <plugin>
    328                 <groupId>org.mortbay.jetty</groupId>
    329                 <artifactId>maven-jetty-plugin</artifactId>
    330                 <version>6.1.26</version>
    331                 <configuration>
    332                     <scanIntervalSeconds>10</scanIntervalSeconds>
    333                     <webApp>
    334                         <contextPath>${project.artifactId}</contextPath>
    335                     </webApp>
    336                     <connectors>
    337                         <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
    338                             <port>8080</port>
    339                         </connector>
    340                     </connectors>
    341                 </configuration>
    342             </plugin>
    343 
    344             <plugin>
    345                 <groupId>org.apache.maven.plugins</groupId>
    346                 <artifactId>maven-war-plugin</artifactId>
    347                 <configuration>
    348                     <warName>${project.artifactId}</warName>
    349 
    350                     <archive>
    351                         <compress>true</compress>
    352                         <forced>true</forced>
    353                         <index>false</index>
    354                         <manifest>
    355                             <addClasspath>true</addClasspath>
    356                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
    357                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
    358                         </manifest>
    359                         <manifestEntries>
    360                             <url>${project.url}</url>
    361                             <Implementation-Vendor>${vendor.name}</Implementation-Vendor>
    362                             <Vendor-domain>${verdor.domain}</Vendor-domain>
    363                         </manifestEntries>
    364                     </archive>
    365                 </configuration>
    366 
    367             </plugin>
    368 
    369             <plugin>
    370                 <groupId>org.apache.maven.plugins</groupId>
    371                 <artifactId>maven-javadoc-plugin</artifactId>
    372                 <version>2.5</version>
    373                 <configuration>
    374                     <author>true</author>
    375                     <locale>zh_CN</locale>
    376                     <doctitle>${project.artifactId} Javadoc</doctitle>
    377                 </configuration>
    378             </plugin>
    379 
    380         </plugins>
    381     </build>
    382 
    383 </project>
  • 相关阅读:
    一百一十五:CMS系统之实现点击更换图形验证码功能
    python用cx_Oracle连接oracle
    一百一十四:CMS系统之图形验证码生成
    一百一十三:CMS系统之前台注册界面
    一百一十二:CMS系统之前台用户模型
    一百一十一:CMS系统之后端权限验证功能
    前端开发之JavaScript HTML DOM理论篇二
    前端开发之JavaScript HTML DOM理论篇一
    前端开发之JavaScript基础篇四
    前端开发之JavaScript基础篇三
  • 原文地址:https://www.cnblogs.com/netact/p/6025175.html
Copyright © 2020-2023  润新知