在使用eclipse创建maven项目的时候,有时候会出现这个问题: web.xml is missing and 'failOnMissingWebXml' is set to true我遇到这个问题是因为现在一般的web项目已经不需要web.xml文件了,于是我把它删掉了(eclipse自动创建了这个问题,但是我不需要所以删掉了),然后就提示了这个问题. 这个问题的原因是maven看到我们项目的类型是war 所以他说怎么可以没有web.xml了呢? 但是web.xml本来就不是必须的,我们总…
使用集成了maven的Eclipse版本新建maven项目后,配置文件pom.xml会在project以及引用的xsd文件处出现错误(第一.二行报错) 其中一个报错例子: Multiple annotations found at this line:- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (exe…
参考官方网站:http://maven.apache.org/plugins/maven-assembly-plugin/usage.html 方法一:将pom.xml引入的jar包打到zip文件夹中 1.pom.xml的配置 <!-- 打包配置 start --> <build> <plugins> <plugin> <!-- NOTE: We don't need a groupId specification because the group…
[ERROR] [ERROR] Some problems were encountered while processing the POMs:[ERROR] 'dependencies.dependency.version' for org.springframework:spring-core:jar must be a valid version but is '${spring.version}'. @ line 28, column 13[ERROR] 'dependencies.d…