今天刚接触maven,建了项目以后发现默认为jdk1.5,然后我删掉了那个,脑子一抽加了系统默认jre上去,然后报错了,代码一大堆
Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources failed:
Unable to load the mojo 'testResources' (or one of its required components) from the plugin'org.apache.maven.plugins:maven-resources-plugin:2.6' (org.apache.maven.plugins:maven-resources-plugin:
2.6:testResources:default-testResources:process-test-resources) org.apache.maven.plugin.
-----------------------------------------------------------------------------------------------
后来才想起来可能是不能用jre还是得用jdk,调成了1.8,update一下maven project就好了。
当然,可能有些人pom.xml报错是因为没有web.xml,大家在webapps里面建一个WEB-INF,然后在WEB-INF下建一个web.xml就行。