title: TEXT must be immediately followed by END_TAG and not START_TAG
body: <p>I am trying to add simple property in my <code>local</code> profile.</p>
  
  <pre><code>&lt;profile&gt;
    &lt;id&gt;local&lt;/id&gt;
        &lt;properties&gt;
           &lt;property&gt;
             &lt;name&gt;localurl&lt;/name&gt;  // line 111, column 27 is "l"                        
             &lt;value&gt;http://localhost:8080&lt;/value&gt;
           &lt;/property&gt;
         &lt;/properties&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>When I clean the project, I get the following error.</p>
  
  <pre><code>TEXT must be immediately followed by END_TAG and not START_TAG
  (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;...
  @111:27)  @ line 111, column 27
  </code></pre>
  
  <p>I mentioned line number in the above <code>profile</code> snippet. I am not sure why this is happening. I am using <code>maven 3.3.3</code> and <code>Java 1.8</code>.</p>
  
  <p>I have searched few articles and <a href="https://stackoverflow.com/questions/18052589/maven-if-sentense-in-pom-xml-in-the-property-tag">this</a> question in stackoverflow but it did not help much.</p>
  
  <p>Any idea why this error is coming?</p>
  
  <p><strong>EDIT</strong> If I comment the <code>&lt;property&gt;</code> part, this error does not come.</p>
  
  <p>This is my <code>pom.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;gs-messaging-stomp-websocket&lt;/artifactId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.2.4.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-websocket&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-messaging&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectreactor&lt;/groupId&gt;
              &lt;artifactId&gt;reactor-core&lt;/artifactId&gt;
              &lt;version&gt;1.1.6.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectreactor&lt;/groupId&gt;
              &lt;artifactId&gt;reactor-tcp&lt;/artifactId&gt;
              &lt;version&gt;1.0.1.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectreactor&lt;/groupId&gt;
              &lt;artifactId&gt;reactor-net&lt;/artifactId&gt;
              &lt;version&gt;1.1.6.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.ehcache&lt;/groupId&gt;
              &lt;artifactId&gt;ehcache&lt;/artifactId&gt;
              &lt;version&gt;2.9.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spring caching framework inside this --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Support for Ehcache and others --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
              &lt;version&gt;4.1.6.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
              &lt;artifactId&gt;appengine-api-stubs&lt;/artifactId&gt;
              &lt;version&gt;1.4.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
              &lt;version&gt;4.3.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;4.3.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.json&lt;/groupId&gt;
              &lt;artifactId&gt;json&lt;/artifactId&gt;
              &lt;version&gt;20090211&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;2.3&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
  
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;local&lt;/id&gt;
              &lt;properties&gt;
                  &lt;property&gt;
                      &lt;name&gt;localurl&lt;/name&gt;
                      &lt;value&gt;http://localhost:8080&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/properties&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt; 
  </code></pre>
  
  <p>This is the stack trace  I get when I run <code>mvn clean -e</code></p>
  
  <pre><code>[INFO] Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [ERROR] [ERROR] Some problems were encountered while processing the POMs:
  [FATAL] Non-parseable POM /Users/karthik/IdeaProjects/Messages/pom.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;... @111:27)  @ line 111, column 27
   @ 
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
  [FATAL] Non-parseable POM /Users/karthik/IdeaProjects/Messages/pom.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;... @111:27)  @ line 111, column 27
  
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:422)
          at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
          at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
          at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
          at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:497)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  [ERROR]   
  [ERROR]   The project  (/Users/karthik/IdeaProjects/Messages/pom.xml) has 1 error
  [ERROR]     Non-parseable POM /Users/karthik/IdeaProjects/Messages/pom.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;... @111:27)  @ line 111, column 27 -&gt; [Help 2]
  org.apache.maven.model.io.ModelParseException: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;... @111:27) 
          at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:130)
          at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:94)
          at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:81)
          at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:529)
          at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:269)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:469)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:438)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:401)
          at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
          at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
          at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
          at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:497)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...&lt;property&gt;\n                    &lt;name&gt;... @111:27) 
          at org.codehaus.plexus.util.xml.pull.MXParser.nextText(MXParser.java:1101)
          at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parseProfile(MavenXpp3ReaderEx.java:3511)
          at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parseModel(MavenXpp3ReaderEx.java:2532)
          at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:4350)
          at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:560)
          at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:121)
          ... 25 more
  </code></pre>