方枪枪的java世界

不要因为风雨飘落就停止了你的脚步,真正的得失就在你的心中。 做喜欢做的事,不轻言放弃!

01 整合spring3和mybatis进行web开发之pom_xml

<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/maven-v4_0_0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>com.tianhe</groupId>
 <artifactId>com.tianhe.jxc</artifactId>
 <version>0.0.1-SNAPSHOT</version>
 <packaging>war</packaging>
 <name>com.tianhe.jxc Maven Webapp</name>
 <url>http://maven.apache.org</url>

 <!-- Shared version number properties -->
 <properties>
  <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <org.springframework.version>3.0.5.RELEASE</org.springframework.version>
 </properties>

 <build>
  <sourceDirectory>src/main/java</sourceDirectory>
  <testSourceDirectory>src/test/java</testSourceDirectory>
  <outputDirectory>target/classes</outputDirectory>
  <testOutputDirectory>target/test-classes</testOutputDirectory>
  <resources>
   <resource>
    <directory>src/main/java</directory>
   </resource>
   <resource>
    <directory>src/main/resources</directory>
    <excludes>
     <exclude>**/*.java</exclude>
    </excludes>
   </resource>
   <resource>
    <targetPath>lib</targetPath>
    <directory>lib</directory>
   </resource>
  </resources>
  <testResources>
   <testResource>
    <directory>src/test/java</directory>
   </testResource>
   <testResource>
    <directory>src/test/resources</directory>
    <excludes>
     <exclude>**/*.java</exclude>
    </excludes>
   </testResource>
  </testResources>
  <scriptSourceDirectory></scriptSourceDirectory>
  <filters></filters>
  <finalName>jxc</finalName>
 </build>

 <dependencies>
  <dependency>
   <groupId>commons-lang</groupId>
   <artifactId>commons-lang</artifactId>
   <version>2.6</version>
  </dependency>

  <dependency>
   <groupId>commons-beanutils</groupId>
   <artifactId>commons-beanutils</artifactId>
   <version>1.8.3</version>
  </dependency>

  <dependency>
   <groupId>commons-collections</groupId>
   <artifactId>commons-collections</artifactId>
   <version>3.1</version>
  </dependency>

  <dependency>
   <groupId>commons-dbcp</groupId>
   <artifactId>commons-dbcp</artifactId>
   <version>1.4</version>
  </dependency>

  <dependency>
   <groupId>commons-digester</groupId>
   <artifactId>commons-digester</artifactId>
   <version>1.8</version>
  </dependency>

  <dependency>
   <groupId>commons-fileupload</groupId>
   <artifactId>commons-fileupload</artifactId>
   <version>1.2.2</version>
  </dependency>
  <dependency>
   <groupId>commons-io</groupId>
   <artifactId>commons-io</artifactId>
   <version>1.4</version>
  </dependency>

  <dependency>
   <groupId>commons-logging</groupId>
   <artifactId>commons-logging</artifactId>
   <version>1.1.1</version>
  </dependency>

  <dependency>
   <groupId>commons-pool</groupId>
   <artifactId>commons-pool</artifactId>
   <version>1.5.4</version>
   <exclusions>
    <exclusion>
     <artifactId>commons-logging</artifactId>
     <groupId>commons-logging</groupId>
    </exclusion>
   </exclusions>
  </dependency>

  <!--
   Aspect Oriented Programming (AOP) Framework (depends on spring-core,
   spring-beans) Define this if you use Spring AOP APIs
   (org.springframework.aop.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aop</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-aspects</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Bean Factory and JavaBeans utilities (depends on spring-core) Define
   this if you use Spring Bean APIs (org.springframework.beans.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Application Context (depends on spring-core, spring-expression,
   spring-aop, spring-beans) This is the central artifact for Spring's
   Dependency Injection Container and is generally always defined
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Various Application Context utilities, including EhCache, JavaMail,
   Quartz, and Freemarker integration Define this if you need any of
   these integrations
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context-support</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Core utilities used by other modules. Define this if you use Spring
   Utility APIs (org.springframework.core.*/org.springframework.util.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Expression Language (depends on spring-core) Define this if you use
   Spring Expression APIs (org.springframework.expression.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-expression</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   JDBC Data Access Library (depends on spring-core, spring-beans,
   spring-context, spring-tx) Define this if you use Spring's
   JdbcTemplate API (org.springframework.jdbc.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-jdbc</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, and
   iBatis. (depends on spring-core, spring-beans, spring-context,
   spring-tx) Define this if you need ORM (org.springframework.orm.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-orm</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Object-to-XML Mapping (OXM) abstraction and integration with JAXB,
   JiBX, Castor, XStream, and XML Beans. (depends on spring-core,
   spring-beans, spring-context) Define this if you need OXM
   (org.springframework.oxm.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-oxm</artifactId>
   <version>${org.springframework.version}</version>

  </dependency>

  <!--
   Transaction Management Abstraction (depends on spring-core,
   spring-beans, spring-aop, spring-context) Define this if you use
   Spring Transactions or DAO Exception Hierarchy
   (org.springframework.transaction.*/org.springframework.dao.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-tx</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Web application development utilities applicable to both Servlet and
   Portlet Environments (depends on spring-core, spring-beans,
   spring-context) Define this if you use Spring MVC, or wish to use
   Struts, JSF, or another web framework with Spring
   (org.springframework.web.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Spring MVC for Servlet Environments (depends on spring-core,
   spring-beans, spring-context, spring-web) Define this if you use
   Spring MVC with a Servlet Container such as Apache Tomcat
   (org.springframework.web.servlet.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Spring MVC for Portlet Environments (depends on spring-core,
   spring-beans, spring-context, spring-web) Define this if you use
   Spring MVC with a Portlet Container
   (org.springframework.web.portlet.*)
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc-portlet</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-acl</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-config</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-core</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-taglibs</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>
  <dependency>
   <groupId>org.springframework.security</groupId>
   <artifactId>spring-security-web</artifactId>
   <version>${org.springframework.version}</version>
  </dependency>

  <!--
   Support for testing Spring applications with tools such as JUnit and
   TestNG This artifact is generally always defined with a 'test' scope
   for the integration testing framework and unit testing stubs
  -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <version>${org.springframework.version}</version>
   <scope>test</scope>
  </dependency>

  <dependency>
   <groupId>net.sourceforge.stripes</groupId>
   <artifactId>stripes</artifactId>
   <version>1.5.4</version>
  </dependency>

  <dependency>
   <groupId>org.aspectj</groupId>
   <artifactId>aspectjrt</artifactId>
   <version>1.6.8</version>
  </dependency>

  <dependency>
   <groupId>org.aspectj</groupId>
   <artifactId>aspectjweaver</artifactId>
   <version>1.6.8</version>
  </dependency>

  <!--
   <dependency> <groupId>com.caucho</groupId>
   <artifactId>burlap</artifactId> <version>2.1.12</version>
   <scope>runtime</scope> </dependency> <dependency>
   <groupId>commons-httpclient</groupId>
   <artifactId>commons-httpclient</artifactId> <version>3.0.1</version>
   </dependency> <dependency> <groupId>com.caucho</groupId>
   <artifactId>hessian</artifactId> <version>3.1.3</version>
   </dependency> <dependency> <groupId>com.caucho</groupId>
   <artifactId>hessian</artifactId> <version>2.1.12</version>
   <scope>runtime</scope> </dependency> <dependency>
   <groupId>commons-httpclient</groupId>
   <artifactId>commons-httpclient</artifactId> <version>3.1</version>
   </dependency> <dependency> <groupId>net.sf.json-lib</groupId>
   <artifactId>json-lib</artifactId> <version>2.1</version>
   <classifier>jdk15</classifier> </dependency>
  -->

  <!-- spring mybatis -->
  <dependency>
   <groupId>cglib</groupId>
   <artifactId>cglib-nodep</artifactId>
   <version>2.2</version>
  </dependency>

  <dependency>
   <groupId>org.mybatis</groupId>
   <artifactId>mybatis</artifactId>
   <version>3.0.5</version>
  </dependency>

  <dependency>
   <groupId>org.mybatis</groupId>
   <artifactId>mybatis-spring</artifactId>
   <version>1.0.0</version>
  </dependency>


  <!-- mysql-jdbc -->
  <dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
   <version>5.1.18</version>
  </dependency>

  <!-- java mail -->
  <dependency>
   <groupId>javax.mail</groupId>
   <artifactId>mail</artifactId>
   <version>1.4</version>
  </dependency>

  <!-- start web工程依赖包 -->
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5</version>
   <scope>provided</scope>
  </dependency>

  <dependency>
   <groupId>javax.servlet.jsp</groupId>
   <artifactId>jsp-api</artifactId>
   <version>2.1</version>
   <scope>provided</scope>
  </dependency>

  <!--
   <dependency> <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId> <version>1.2</version>
   <scope>provided</scope> </dependency>
  -->

  <dependency>
   <groupId>jstl</groupId>
   <artifactId>jstl</artifactId>
   <version>1.1.2</version>
  </dependency>
  <dependency>
   <groupId>taglibs</groupId>
   <artifactId>standard</artifactId>
   <version>1.1.2</version>
  </dependency>

  <!-- end web工程依赖包 -->

  <dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-api</artifactId>
   <version>1.6.6</version>
  </dependency>

  <dependency>
   <groupId>org.slf4j</groupId>
   <artifactId>slf4j-log4j12</artifactId>
   <version>1.6.6</version>
  </dependency>

  <dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.16</version>
  </dependency>

  <dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>4.0</version>
   <scope>test</scope>
  </dependency>

 </dependencies>

</project>

posted on 2012-07-07 14:54 做强大的自己 阅读(636) 评论(0)  编辑  收藏 所属分类: Spring


只有注册用户登录后才能发表评论。


网站导航: