maven在Eclipse中的使用

来源:互联网 发布:c语言将字符存入字符串 编辑:程序博客网 时间:2024/06/05 20:22

只写项目中的使用

为什么不写myeclpse,因为其在myeclipse中的问题太多了,而Eclipse对其支持则要好N多。

如myeclipse中经常报的错误:

exclusion filters have been added nesting
java - How to configure Eclipse build path to use Maven dependencies? - Stack Overflow
http://stackoverflow.com/questions/2037188/how-to-configure-eclipse-build-path-to-use-maven-dependencies


eclipse - maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e - Stack Overflow
http://stackoverflow.com/questions/8706017/maven-dependency-plugin-goals-copy-dependencies-unpack-is-not-supported-b#

Eclipse中Cannot nest src folder解决方法 - rj0801zxh - ITeye技术网站
http://rj0801zxh.iteye.com/blog/1538679

Cannot find the declaration of element 'web-app'
启动失败的主要原因
这些莫名其妙的问题,太特么DT了。

改成Eclipse,根本没这些问题了。

在Eclipse里面

配置好Maven,SVN,(这些都可以在线下载,好用多了)run jetty(Eclipse market里面)调通!并可以使用

————————————————————————————————————————————————————————————————————

进正题

从import开始,下载下来后,所要做的工作:

主要就是build path



添加src文件,一定要加到com前的目录上。因为有层级关系

然后把jre重新remove,再加一下

改下编码

然后就可以run as jetty 测试一下了。(加个index.jsp就知道正确与否了)

与myeclipse不同 的是,在myeclipse里面属性里面可以看到web的项目名。

而在eclipse里面,是在jetty run config 里面看的。一个项目一个端口号,一个项目启动一个单独的,非常容易管理



setAttribute如何声明,如何使用?
resquest.setAttribute的用法 - 无一物的个人空间 - 开源中国社区
http://my.oschina.net/wuyiwu/blog/81805

0 0
原创粉丝点击