首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

maven struts2 spring3 hibernate 四 pom.xml配置

2013-03-21 
maven struts2 spring3 hibernate 4 pom.xml配置??project xmlnshttp://maven.apache.org/POM/4.0.0 x

maven struts2 spring3 hibernate 4 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.rkx</groupId>    <artifactId>webtest</artifactId>    <packaging>war</packaging>    <version>0.0.1-SNAPSHOT</version>    <name>webtest Maven Webapp</name>    <url>http://maven.apache.org</url>    <properties>        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    </properties>    <repositories>        <repository>            <id>JBoss</id>            <name>JBoss Repsitory</name>            <layout>default</layout>            <url>http://repository.jboss.org/maven2</url>        </repository>        <repository>            <id>springsource-repo</id>            <name>SpringSource Repository</name>            <url>http://repo.springsource.org/release</url>        </repository>    </repositories>    <dependencies>        <dependency>            <groupId>junit</groupId>            <artifactId>junit</artifactId>            <version>4.10</version>        </dependency>        <dependency>            <groupId>org.hibernate</groupId>            <artifactId>hibernate-entitymanager</artifactId>            <version>4.1.0.Final</version>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-context</artifactId>            <version>3.1.1.RELEASE</version>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-web</artifactId>            <version>3.1.1.RELEASE</version>        </dependency>        <dependency>            <groupId>org.springframework.integration</groupId>            <artifactId>spring-integration-mail</artifactId>            <version>2.1.0.RELEASE</version>        </dependency>         <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-orm</artifactId>            <version>3.1.1.RELEASE</version>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-jdbc</artifactId>            <version>3.1.1.RELEASE</version>        </dependency>        <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-dao</artifactId>            <version>2.0.8</version>        </dependency>         <dependency>            <groupId>org.apache.struts</groupId>            <artifactId>struts2-core</artifactId>            <version>2.3.1.2</version>        </dependency>        <dependency>            <groupId>org.seleniumhq.selenium</groupId>            <artifactId>selenium-java</artifactId>            <version>2.20.0</version>        </dependency>        <dependency>            <!-- jsoup HTML parser library @ http://jsoup.org/ -->            <groupId>org.jsoup</groupId>            <artifactId>jsoup</artifactId>            <version>1.6.2</version>        </dependency>         <!-- Gson: Java to Json conversion -->        <dependency>            <groupId>com.google.code.gson</groupId>            <artifactId>gson</artifactId>            <version>2.1</version>            <scope>compile</scope>        </dependency>        <dependency>            <groupId>org.quartz-scheduler</groupId>            <artifactId>quartz</artifactId>            <version>2.1.2</version>        </dependency>        <dependency>            <groupId>org.tuckey</groupId>            <artifactId>urlrewrite</artifactId>            <version>2.5.2</version>        </dependency>        <dependency>            <groupId>commons-lang</groupId>            <artifactId>commons-lang</artifactId>            <version>2.6</version>        </dependency>         <dependency>            <groupId>commons-httpclient</groupId>            <artifactId>commons-httpclient</artifactId>            <version>3.1</version>        </dependency>        <dependency>            <groupId>javax.servlet</groupId>            <artifactId>servlet-api</artifactId>            <version>2.5</version>        </dependency>        <dependency>            <groupId>net.sf.ehcache</groupId>            <artifactId>ehcache-core</artifactId>            <version>2.5.1</version>        </dependency>        <dependency>            <groupId>net.sf.ehcache</groupId>            <artifactId>ehcache-web</artifactId>            <version>2.0.4</version>        </dependency>        <dependency>            <groupId>javax.mail</groupId>            <artifactId>mail</artifactId>            <version>1.4.5</version>        </dependency>        <dependency>            <groupId>mysql</groupId>            <artifactId>mysql-connector-java</artifactId>            <version>5.1.18</version>        </dependency>        <dependency>            <groupId>org.aspectj</groupId>            <artifactId>aspectjrt</artifactId>            <version>1.6.12</version>        </dependency>         <dependency>            <groupId>jstl</groupId>            <artifactId>jstl</artifactId>            <version>1.2</version>        </dependency>        <dependency>            <groupId>javaee</groupId>            <artifactId>javaee-api</artifactId>            <version>5</version>        </dependency>      </dependencies>    <build>        <finalName>webtest</finalName>        <plugins>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-resources-plugin</artifactId>                <configuration>                    <encoding>UTF-8</encoding>                </configuration>            </plugin>            <plugin>                <artifactId>maven-compiler-plugin</artifactId>                <configuration>                    <encoding>UTF-8</encoding>                    <compilerArguments>                        <verbose />                        <bootclasspath>${java.home}\lib\rt.jar</bootclasspath>                    </compilerArguments>                </configuration>            </plugin>         </plugins>    </build></project> 

?以上是基本配置,可能有些包不是需要的,比如quartz,ehcache,jsoup。根据需求改吧。

需要什么包可以在?? http://mvnrepository.com/?? 里search,方便
记下来,以后用下

其实还是grails好,集成maven,不用去管理jar包依赖问题。也很少会出现jar冲突问题。

热点排行