我有setting.xml
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
Nexus.Codehaus Snapshots
Nexus Mirror of Codehaus Snapshots
http://build/nexus/content/repositories/codehaus-snapshots
Codehaus Snapshots
Nexus
Nexus Public Mirror
http://nexus.other.com/content/groups/public
Nexus
TomcatServer
admin
password
quickBuild
false
true
true
true
true
org.apache.maven.plugins
maven-compiler-plugin
${java.version}
${java.version}
true
lines,vars,source
org.apache.maven.plugins
maven-javadoc-plugin
some
none
org.codehaus.mojo
findbugs-maven-plugin
some2
none
org.apache.maven.plugins
maven-pmd-plugin
some3
none
org.apache.maven.plugins
maven-checkstyle-plugin
some4
none
org.codehaus.mojo
jaxws-maven-plugin
some5
none
repository-profile
false
maven2-repository.dev.java.net
Java.net Repository for Maven
http://download.java.net/maven/2/
default
在maven构建开始时,我有一条消息:
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'server' (position: START_TAG seen ...\r\n\t\r\n\t... @31:10) @ D:\directory\.m2\settings.xml,line 31,column 10
[WARNING]
我不明白为什么?据我所知,服务器标签和镜像是有效的(我认为是因为插件和依赖解析工作).我怎么解决这个问题?