全面解决IDEA配置遇到的错误的问题(MAVEN+TOMCAT篇章)

一、IDEA配置MAVEN和TOMCAT时存在问题

1.404问题

源服务器未能找到目标资源的表示或者是一个不愿公开一个已经存在的资源表示。

有可能的原因与解决办法
1.问题是跟artifact不匹配,重新来就好,先删后加
在这里插入图片描述
在这里插入图片描述
2.可能配置不对劲project structure——>faces——>删除重加
在这里插入图片描述
在这里插入图片描述
3.网页配置输入问题
复制好tomcat给你的网址,然后加上自己需要的页面
tomcat给我的是:http://localhost:8080/web_Web_exploded/ 我无法打开,404问题。
然后加入自己的页面就好了:http://localhost:8080/web_Web_exploded/hello.jsp

2.maven build failure

1. No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
在这里插入图片描述
解决方法:
pom.xml文件添加代码

<build><defaultGoal>compile</defaultGoal></build>

在这里插入图片描述
2.Failed to parse plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:3.1
解决方法:
从settings更改配置目录
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值