maven ssh2
来源:互联网 发布:iphone自定义铃声软件 编辑:程序博客网 时间:2024/04/27 23:24
1.cmd 转至 欲生成项目的目录执行:mvn archetype:create -DgroupId=org.jxsme.hj -DartifactId=sshinfo -DarchetypeArtifactId=maven-archetype-webapp
生成一个web项目
2.设置代理服务器地址:http://192.168.2.196:8081
3.在项目目录下pom.xml文件中添加struts2,spring,hibernate,servlet,jsp,junit包引入
<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>org.jxsme.hj</groupId> <artifactId>sshinfo</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>sshinfo Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <!-- Junit --><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>3.8.1</version><scope>test</scope></dependency><!-- Struts 2 --><dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId> <version>2.0.11.2</version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-sitemesh-plugin</artifactId> <version>2.0.11.2</version> </dependency> <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-spring-plugin</artifactId> <version>2.0.11.2</version> </dependency><!-- Servlet & Jsp --><dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId><version>2.4</version><scope>provided</scope></dependency><dependency><groupId>javax.servlet</groupId><artifactId>jsp-api</artifactId><version>2.0</version><scope>provided</scope></dependency><!-- Jakarta Commons --><dependency><groupId>commons-fileupload</groupId><artifactId>commons-fileupload</artifactId><version>1.1.1</version></dependency><dependency><groupId>commons-dbcp</groupId><artifactId>commons-dbcp</artifactId><version>1.2.2</version></dependency><!-- spring 2.5 --><dependency><groupId>org.springframework</groupId><artifactId>spring-hibernate3</artifactId><version>2.0.8</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-beans</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-test</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-context-support</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>2.5.5</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aspects</artifactId><version>2.5.5</version></dependency><!-- mysql--><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>5.1.6</version></dependency><dependency><groupId>proxool</groupId><artifactId>proxool</artifactId><version>0.8.3</version></dependency> <!-- hibernate 3.3--><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-core</artifactId><version>3.3.1.GA</version></dependency><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-annotations</artifactId><version>3.3.0.ga</version></dependency> </dependencies> <build> <finalName>sshinfo</finalName><plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <encoding>utf-8</encoding> </configuration> </plugin> </plugins> </build></project>
4,执行mvn eclipse:eclipse 生成eclipse 项目
5 打开eclipse导入工程,添加src/main/java目录,src/test/main,src/test/resources源文件目录
编写测试文件sayHello,及servlet 添加相应的测试,并生成war 文件..将该文件放至tomcat中进行测试.
6.添加struts支持action测试.
7.在applicationContent.xml中配置hibernate及事务代理.
8.连接数据库,生成hbm.xml,pojo文件
9.编写 dao.service,serviceimpl等到类文件....
10.编写junit Dao测试,
11.编写 struts2.Actioin 及测试类.
12.执行编译打包,,mvn install
13.放至tomcat中进行测试
备注:保存太久了,不知道从哪看到的了。
- maven ssh2
- SSH2+Maven整合开发
- myeclipse中maven整合ssh2
- maven ssh2+dwr+json 继承pom.xml
- maven整合ssh2框架的依赖配置
- 基于eclipse+maven 的ssh2 完整配置
- ssh2
- SSH2
- SSH2
- ssh2
- ssh2
- IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例
- 项目视频讲解_基于SSH2+Maven+EasyUI+MySQL技术实战开发易买网电子商务交易平台
- 项目视频讲解_房屋租赁系统框架搭建 (SSH2与Maven整合)
- IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例(解决卡死问题)
- IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例(二)
- IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例(一)
- IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例(二)
- 向量几何在游戏编程中的使用系列
- VB6编程创建Access数据库
- oracle 重建索引
- HTML中的上标和下标标签
- 电子化企业采购
- maven ssh2
- 网页启动客户端程序代码
- eclipse或myeclipse安装 Axis2 插件
- linux下一个线程占用多少内存
- 转载goahead webserver源码分析
- NO.1 java开发前奏
- MSDN 索引 应用程序错误hh.exe
- 多线程的同步critical section类的用法与解析
- sql 行专列 列转行 普通行列转换