在eclipse中使用resin启动maven web项目
ide:eclipse
应用服务器:resin4.x
项目管理工具:maven
web项目
新加入了项目组,需要在eclipse中运行上述环境的项目,具体操作如下:
1、eclipse添加resin插件
2、下载resin,并解压
3、eclipse resin插件关联新下载的resin
4、maven项目build:执行package命令,执行后,target目录下,生成一个web结构的目录层级
5、在eclipse的servers下,有一个Resin的目录,下面有一些配置文件,请参照
http://running.iteye.com/blog/1739350
前四步配置(自己根据情况配吧),主要是配
<host id="127.0.0.1" root-directory=".">
<web-app id="/admin" root-directory="C:\Users\Administrator\git\******\*****\target\****-1.0-SNAPSHOT">
<error-page error-code="404" location="/errorPage/404.html"/>
</web-app>
</host>
6、启动吧,http://127.0.0.1:8080/context