備份到blog中
<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"> <modelVersion>4.0.0</modelVersion> <groupId>com.test</groupId> <artifactId>MyBatis_003</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>MyBatis_003</name> <url>http://maven.apache.org</url> <!-- 設定各dependency 使用的版本 --> <properties> <final_name>MyBatis_003</final_name> <jdk.version>1.6</jdk.version> <asm.version>3.3.1</asm.version> <asm-commons.version>3.3.1</asm-commons.version> <asm-tree.version>3.3.1</asm-tree.version> <commons-lang3.version>3.3.2</commons-lang3.version> <commons-fileupload.version>1.3.1</commons-fileupload.version> <commons-logging.version>1.1.3</commons-logging.version> <commons-io.version>2.2</commons-io.version> <freemarker.version>2.3.9</freemarker.version> <junit.version>4.11</junit.version> <javassist.version>3.18.1-GA</javassist.version> <jquery.version>1.8.2</jquery.version> <log4j.version>1.2.17</log4j.version> <mysql-connector-java.version>5.1.30</mysql-connector-java.version> <mybatis.version>3.2.7</mybatis.version> <ognl.version>3.0.8</ognl.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <struts2-core.version>2.3.16.3</struts2-core.version> <struts2-dojo-plugin.version>2.3.16.3</struts2-dojo-plugin.version> <struts2-json-plugin.version>2.3.16.3</struts2-json-plugin.version> <struts2-spring-plugin.version>2.3.8</struts2-spring-plugin.version> <struts2-junit-plugin.version>2.3.16.3</struts2-junit-plugin.version> <!-- 頁面排版用 siteMesh --> <struts2-sitemesh-plugin.version>2.3.16.3</struts2-sitemesh-plugin.version> <!-- Annotation 用 --> <struts2-convention-plugin.version>2.3.16.3</struts2-convention-plugin.version> <!-- 頁面排版用 siteMesh --> <sitemesh.version>2.4.2</sitemesh.version> <slf4j-api.version>1.7.7</slf4j-api.version> <slf4j-log4j12.version>1.7.7</slf4j-log4j12.version> <spring-test.version>3.2.0.RELEASE</spring-test.version> <spring-web.version>3.2.0.RELEASE</spring-web.version> <spring-context.version>3.2.0.RELEASE</spring-context.version> <spring-core.version>3.2.0.RELEASE</spring-core.version> <spring-beans.version>3.2.0.RELEASE</spring-beans.version> <xwork-core.version>2.3.16.3</xwork-core.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId> <version>${struts2-core.version}</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>${commons-logging.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${commons-lang3.version}</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>${commons-fileupload.version}</version> </dependency> <dependency> <groupId>freemarker</groupId> <artifactId>freemarker</artifactId> <version>${freemarker.version}</version> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>${javassist.version}</version> </dependency> <dependency> <groupId>ognl</groupId> <artifactId>ognl</artifactId> <version>${ognl.version}</version> </dependency> <dependency> <groupId>org.apache.struts.xwork</groupId> <artifactId>xwork-core</artifactId> <version>${xwork-core.version}</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>${asm.version}</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-commons</artifactId> <version>${asm-commons.version}</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-tree</artifactId> <version>${asm-tree.version}</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql-connector-java.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-dojo-plugin</artifactId> <version>${struts2-dojo-plugin.version}</version> </dependency> <dependency> <groupId>com.efsavage.jquery</groupId> <artifactId>jquery-maven</artifactId> <version>${jquery.version}</version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-json-plugin</artifactId> <version>${struts2-json-plugin.version}</version> </dependency> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring-beans.version}</version> </dependency> --> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring-core.version}</version> </dependency> --> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring-context.version}</version> </dependency> --> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring-web.version}</version> </dependency> --> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring-test.version}</version> </dependency> --> <!-- <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-spring-plugin</artifactId> <version>${struts2-spring-plugin.version}</version> </dependency> --> <!-- junit --> <!-- <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-junit-plugin</artifactId> <version>${struts2-junit-plugin.version}</version> </dependency> --> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-sitemesh-plugin</artifactId> <version>${struts2-sitemesh-plugin.version}</version> </dependency> <dependency> <groupId>opensymphony</groupId> <artifactId>sitemesh</artifactId> <version>${sitemesh.version}</version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-convention-plugin</artifactId> <version>${struts2-convention-plugin.version}</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j-api.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j-log4j12.version}</version> </dependency> </dependencies> <build> <finalName>${final_name}</finalName> <plugins> <!-- 強制專案編輯使用的compiler版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>${jdk.version}</source> <target>${jdk.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <!-- 可產生java source --> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> --> <!-- 可產生javadoc 文件 --> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> --> <!-- 自動下載相關javadoc 及 source --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <configuration> <downloadSources>false</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> </plugins> </build> </project>
沒有留言 :
張貼留言