用eclipse创建maven web一个maven管理的项目,创建完成后pom.xml报错!!急求怎么解决!!

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
没有感性者的柔弱性情,没有感性者的凄美情怀,拥有一份理性者存在的慈悲心怀。
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(2063)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'Maven 和 Eclipse 基础报错与解决方案',
blogAbstract:'1、警告:The tag handler class for \"s:form\"\n(org.apache.struts2.views.jsp.ui.FormTag) was not found on the Java Build Path',
blogTag:'maven,eclipse',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:2,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:true,
hostIntro:'没有感性者的柔弱性情,没有感性者的凄美情怀,拥有一份理性者存在的慈悲心怀。',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}拒绝访问 |
| 百度云加速
请打开cookies.
此网站 () 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(390ef82db51a4364-ua98).
重新安装浏览器,或使用别的浏览器& eclipse新建maven工程pom文件报错解决
eclipse新建maven工程pom文件报错解决
最近在使用新建了一个工程,pom.xml文件报了个错误:web.xml is missing and && is set to true
仔细探索了一下,原因是工程没有生成web.xml文件,这个跟和Ecipse版本较新有关系,默认是生成工程机制。
一般情况下,会选择copy一份 web.xml,然后修改成自己工程的。其实还有如下更简单的方法:
&groupId&org.apache.maven.plugins&/groupId&
&artifactId&maven-war-plugin&/artifactId&
&configuration&
&&false&/&
&/configuration&
&/plugins&
加上这些代码就可以不需要web.xml文件了。
ok,问题解除 !failOnMissingWebXml 设为false,顾名思义是对丢失web.xml这个检测机制进行忽略,值得一提的是:
工程时代不需要web.xml文件注册相关内容的,所以工程默认不生成web.xml。
Categories:
推荐阅读:
Recent Posts
Random PostEclipse安装Maven插件后,新建Maven项目报错pom.xml文件总是报错。各位大虾麻烦帮我看一下,网上也很少看到有遇到这个问题。 - ITeye问答
报错提示:
Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testResources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:testResources: org/codehaus/plexus/util/StringUtils
你是否能ping通网络上的资源库。repo1.maven.org& 相应的插件没有下载到本地。
建议还是使用命令吧。。。
maven2打包前会运行junit,但是,有时我们希望即使出现了错误,也要打包。maven2的设计者已经考虑到这种情况了。pom.xml文件配置内容如下:
&project&
&build&
&&& &plugins&
&&&&& &plugin&
&&&&&&& &groupId&org.apache.maven.plugins&/groupId&
&&&&&&& &artifactId&maven-surefire-plugin&/artifactId&
&&&&&&& &configuration&
&&&&&&&&& &testFailureIgnore&true&/testFailureIgnore&
&&&&&&& &/configuration&
&&&&& &/plugin&
&&& &/plugins&
[...]
&/project&
对于你的问题:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin: 2.3 . 2 :compile ( default -compile) on project oecp: Compilation failure&
解决方法:
建议使用
1.使用myeclipse 6.5 及以上版本 自带maven2
2.手动创建 pom.xml 命令在doc里面敲
已解决问题
未解决问题}

我要回帖

更多关于 eclipse创建maven 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信