码迷,mamicode.com
首页 > 其他好文 > 详细

maven ssh pom.xml

时间:2014-11-12 22:54:08      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   color   ar   使用   java   

  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>ssh_maven</groupId>
  4     <artifactId>ssh_maven</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         <!-- log4j -->
 14         <dependency>
 15             <groupId>log4j</groupId>
 16             <artifactId>log4j</artifactId>
 17             <version>1.2.17</version>
 18         </dependency>
 19         <!-- junit -->
 20         <dependency>
 21             <groupId>junit</groupId>
 22             <artifactId>junit</artifactId>
 23             <version>4.11-beta-1</version>
 24             <scope>test</scope>
 25         </dependency>
 26         <!-- 加入druid数据源依赖包 -->
 27         <dependency>
 28             <groupId>com.alibaba</groupId>
 29             <artifactId>druid</artifactId>
 30             <version>1.0.0</version>
 31         </dependency>
 32         <dependency>
 33             <groupId>org.aspectj</groupId>
 34             <artifactId>aspectjweaver</artifactId>
 35             <version>1.7.4</version>
 36         </dependency>
 37         <!-- mysql数据库驱动 -->
 38         <!-- oracle数据库驱动,如果没有使用oracle数据库,请把这个引用注释掉 -->
 39         <!-- oracle驱动特殊,他是商业驱动,官方maven版本库中是不存在jar包的,所以需要使用下面命令添加到你本地的maven库中 -->
 40         <!-- 在CMD中执行下面语句(前提是你配置好了JAVA和MAVEN环境变量) -->
 41         <!-- mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar -Dfile=H:\oracle\install\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar -->
 42         <!-- DartifactId的值改为artifactId的值 -->
 43         <!-- Dversion的值改为version的值 -->
 44         <!-- Dfile的值指定到你硬盘上的oracle驱动的绝对位置 -->
 45         <dependency>
 46             <groupId>com.oracle</groupId>
 47             <artifactId>ojdbc6</artifactId>
 48             <version>11.2.0.1.0</version>
 49         </dependency>
 50         <!-- servlet -->
 51         <dependency>
 52             <groupId>javax.servlet</groupId>
 53             <artifactId>servlet-api</artifactId>
 54             <version>2.5</version>
 55             <scope>provided</scope>
 56         </dependency>
 57         <!-- spring3 -->
 58         <dependency>
 59             <groupId>org.springframework</groupId>
 60             <artifactId>spring-core</artifactId>
 61             <version>3.1.2.RELEASE</version>
 62         </dependency>
 63         <dependency>
 64             <groupId>org.springframework</groupId>
 65             <artifactId>spring-context</artifactId>
 66             <version>3.1.2.RELEASE</version>
 67         </dependency>
 68         <dependency>
 69             <groupId>org.springframework</groupId>
 70             <artifactId>spring-jdbc</artifactId>
 71             <version>3.1.2.RELEASE</version>
 72         </dependency>
 73         <dependency>
 74             <groupId>org.springframework</groupId>
 75             <artifactId>spring-beans</artifactId>
 76             <version>3.1.2.RELEASE</version>
 77         </dependency>
 78         <dependency>
 79             <groupId>org.springframework</groupId>
 80             <artifactId>spring-web</artifactId>
 81             <version>3.1.2.RELEASE</version>
 82         </dependency>
 83         <dependency>
 84             <groupId>org.springframework</groupId>
 85             <artifactId>spring-expression</artifactId>
 86             <version>3.1.2.RELEASE</version>
 87         </dependency>
 88         <dependency>
 89             <groupId>org.springframework</groupId>
 90             <artifactId>spring-orm</artifactId>
 91             <version>3.1.2.RELEASE</version>
 92         </dependency>
 93         <!-- struts2 -->
 94         <dependency>
 95             <groupId>org.apache.struts</groupId>
 96             <artifactId>struts2-core</artifactId>
 97             <version>2.3.4.1</version>
 98             <exclusions>
 99                 <exclusion>
100                     <groupId>javassist</groupId>
101                     <artifactId>javassist</artifactId>
102                 </exclusion>
103             </exclusions>
104         </dependency>
105         <dependency>
106             <groupId>org.apache.struts</groupId>
107             <artifactId>struts2-spring-plugin</artifactId>
108             <version>2.3.4.1</version>
109         </dependency>
110         <dependency>
111             <groupId>org.apache.struts</groupId>
112             <artifactId>struts2-convention-plugin</artifactId>
113             <version>2.3.4.1</version>
114         </dependency>
115         <!-- 加入hibernate依赖包 -->
116         <dependency>
117             <groupId>org.hibernate</groupId>
118             <artifactId>hibernate-core</artifactId>
119             <version>4.2.7.SP1</version>
120         </dependency>
121         <!-- 导入json所需jar包 -->
122         <dependency>
123             <groupId>net.sf.json-lib</groupId>
124             <artifactId>json-lib</artifactId>
125             <version>2.4</version>
126             <classifier>jdk15</classifier>
127         </dependency>
128         <!-- 导入excel所需jar包 -->
129         <dependency>
130             <groupId>jexcelapi</groupId>
131             <artifactId>jxl</artifactId>
132             <version>2.6</version>
133         </dependency>
134         <dependency>  
135     <groupId>org.apache.poi</groupId>  
136     <artifactId>poi</artifactId>  
137     <version>3.9</version>  
138 </dependency> 
139     </dependencies>
140     <build>
141         <plugins>
142             <!-- 编译的时候使用JDK7和UTF8编码 -->
143             <plugin>
144                 <artifactId>maven-compiler-plugin</artifactId>
145                 <configuration>
146                     <source>1.7</source>
147                     <target>1.7</target>
148                     <encoding>UTF-8</encoding>
149                 </configuration>
150             </plugin>
151 
152             <!-- 编译jar包 -->
153             <plugin>
154                 <groupId>org.apache.maven.plugins</groupId>
155                 <artifactId>maven-jar-plugin</artifactId>
156                 <configuration>
157                     <archive>
158                         <addMavenDescriptor>false</addMavenDescriptor>
159                         <manifest>
160                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
161                             <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
162                         </manifest>
163                     </archive>
164                 </configuration>
165             </plugin>
166         </plugins>
167     </build>
168 </project>

 

maven ssh pom.xml

标签:des   style   blog   http   io   color   ar   使用   java   

原文地址:http://www.cnblogs.com/leorain/p/4093675.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!