title: How to fix unrecognized tag in settings xml?
body: <p>I have setting.xml</p>
  
  <pre><code>&lt;settings
          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"&gt;
      &lt;mirrors&gt;
          &lt;mirror&gt;
              &lt;id&gt;Nexus.Codehaus Snapshots&lt;/id&gt;
              &lt;name&gt;Nexus Mirror of Codehaus Snapshots&lt;/name&gt;
              &lt;url&gt;http://build/nexus/content/repositories/codehaus-snapshots&lt;/url&gt;
              &lt;mirrorOf&gt;Codehaus Snapshots&lt;/mirrorOf&gt;
          &lt;/mirror&gt;
          &lt;mirror&gt;
              &lt;id&gt;Nexus&lt;/id&gt;
              &lt;name&gt;Nexus Public Mirror&lt;/name&gt;
              &lt;url&gt;http://nexus.other.com/content/groups/public&lt;/url&gt;
              &lt;mirrorOf&gt;Nexus&lt;/mirrorOf&gt;
          &lt;/mirror&gt;
      &lt;/mirrors&gt;
  
      &lt;server&gt;
          &lt;id&gt;TomcatServer&lt;/id&gt;
          &lt;username&gt;admin&lt;/username&gt;
          &lt;password&gt;password&lt;/password&gt;
      &lt;/server&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;quickBuild&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
              &lt;/activation&gt;
              &lt;properties&gt;
                  &lt;maven.test.skip&gt;true&lt;/maven.test.skip&gt;
                  &lt;pmd.skip&gt;true&lt;/pmd.skip&gt;
                  &lt;checkstyle.skip&gt;true&lt;/checkstyle.skip&gt;
                  &lt;findbugs.skip&gt;true&lt;/findbugs.skip&gt;
              &lt;/properties&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;${java.version}&lt;/source&gt;
                              &lt;target&gt;${java.version}&lt;/target&gt;
                              &lt;debug&gt;true&lt;/debug&gt;
                              &lt;debuglevel&gt;lines,vars,source&lt;/debuglevel&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;some&lt;/id&gt;
                                  &lt;phase&gt;none&lt;/phase&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                          &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;some2&lt;/id&gt;
                                  &lt;phase&gt;none&lt;/phase&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;some3&lt;/id&gt;
                                  &lt;phase&gt;none&lt;/phase&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;some4&lt;/id&gt;
                                  &lt;phase&gt;none&lt;/phase&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;some5&lt;/id&gt;
                                  &lt;phase&gt;none&lt;/phase&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;repository-profile&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
              &lt;/activation&gt;
              &lt;repositories&gt;
                  &lt;repository&gt;
                      &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
                      &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
                      &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
                      &lt;layout&gt;default&lt;/layout&gt;
                  &lt;/repository&gt;
              &lt;/repositories&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>At start of maven build I have a message:</p>
  
  <pre><code>[WARNING] 
  [WARNING] Some problems were encountered while building the effective settings
  [WARNING] Unrecognised tag: 'server' (position: START_TAG seen ...&lt;/mirrors&gt;\r\n\t\r\n\t&lt;server&gt;... @31:10)  @ D:\directory\.m2\settings.xml, line 31, column 10
  [WARNING]
  </code></pre>
  
  <p>I do not undestand why? As I understand server tag and mirrors are valid (I think so because plugins and dependency resolving works). How I can fix this?</p>