java - TEXT must be immediately followed by END_TAG and not START_TAG -


i trying add simple property in local profile.

<profile>   <id>local</id>       <properties>          <property>            <name>localurl</name>  // line 111, column 27 "l"                                    <value>http://localhost:8080</value>          </property>        </properties> </profile> 

when clean project, following error.

text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)  @ line 111, column 27 

i mentioned line number in above profile snippet. not sure why happening. using maven 3.3.3 , java 1.8.

i have searched few articles , this question in stackoverflow did not much.

any idea why error coming?

edit if comment <property> part, error not come.

this pom.xml

<?xml version="1.0" encoding="utf-8"?> <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">     <modelversion>4.0.0</modelversion>      <groupid>org.springframework</groupid>     <artifactid>gs-messaging-stomp-websocket</artifactid>     <version>0.1.0</version>      <parent>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-parent</artifactid>         <version>1.2.4.release</version>     </parent>      <dependencies>         <dependency>             <groupid>org.springframework.boot</groupid>             <artifactid>spring-boot-starter-websocket</artifactid>         </dependency>         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-messaging</artifactid>         </dependency>         <dependency>             <groupid>org.projectreactor</groupid>             <artifactid>reactor-core</artifactid>             <version>1.1.6.release</version>         </dependency>         <dependency>             <groupid>org.projectreactor</groupid>             <artifactid>reactor-tcp</artifactid>             <version>1.0.1.release</version>         </dependency>         <dependency>             <groupid>org.projectreactor</groupid>             <artifactid>reactor-net</artifactid>             <version>1.1.6.release</version>         </dependency>          <dependency>             <groupid>net.sf.ehcache</groupid>             <artifactid>ehcache</artifactid>             <version>2.9.0</version>         </dependency>          <!-- spring caching framework inside -->         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-context</artifactid>             <version>4.1.6.release</version>         </dependency>          <!-- support ehcache , others -->         <dependency>             <groupid>org.springframework</groupid>             <artifactid>spring-context-support</artifactid>             <version>4.1.6.release</version>         </dependency>         <dependency>             <groupid>com.google.appengine</groupid>             <artifactid>appengine-api-stubs</artifactid>             <version>1.4.2</version>         </dependency>         <dependency>             <groupid>org.apache.httpcomponents</groupid>             <artifactid>httpcore</artifactid>             <version>4.3.3</version>         </dependency>         <dependency>             <groupid>org.apache.httpcomponents</groupid>             <artifactid>httpclient</artifactid>             <version>4.3.6</version>         </dependency>         <dependency>             <groupid>org.json</groupid>             <artifactid>json</artifactid>             <version>20090211</version>         </dependency>         <dependency>             <groupid>com.google.code.gson</groupid>             <artifactid>gson</artifactid>             <version>2.3</version>         </dependency>         <dependency>             <groupid>com.google.code.gson</groupid>             <artifactid>gson</artifactid>             <version>2.3</version>         </dependency>     </dependencies>      <properties>         <java.version>1.8</java.version>     </properties>      <build>         <plugins>             <plugin>                 <groupid>org.springframework.boot</groupid>                 <artifactid>spring-boot-maven-plugin</artifactid>              </plugin>         </plugins>     </build>      <profiles>         <profile>             <id>local</id>             <properties>                 <property>                     <name>localurl</name>                     <value>http://localhost:8080</value>                 </property>             </properties>         </profile>     </profiles> </project>  

this stack trace when run mvn clean -e

[info] error stacktraces turned on. [info] scanning projects... [error] [error] problems encountered while processing poms: [fatal] non-parseable pom /users/karthik/ideaprojects/messages/pom.xml: text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)  @ line 111, column 27  @  [error] build not read 1 project -> [help 1] org.apache.maven.project.projectbuildingexception: problems encountered while processing poms: [fatal] non-parseable pom /users/karthik/ideaprojects/messages/pom.xml: text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)  @ line 111, column 27          @ org.apache.maven.project.defaultprojectbuilder.build(defaultprojectbuilder.java:422)         @ org.apache.maven.graph.defaultgraphbuilder.collectprojects(defaultgraphbuilder.java:419)         @ org.apache.maven.graph.defaultgraphbuilder.getprojectsformavenreactor(defaultgraphbuilder.java:410)         @ org.apache.maven.graph.defaultgraphbuilder.build(defaultgraphbuilder.java:83)         @ org.apache.maven.defaultmaven.buildgraph(defaultmaven.java:491)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:219)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:193)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:106)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:862)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:286)         @ org.apache.maven.cli.mavencli.main(mavencli.java:197)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:497)         @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) [error]    [error]   project  (/users/karthik/ideaprojects/messages/pom.xml) has 1 error [error]     non-parseable pom /users/karthik/ideaprojects/messages/pom.xml: text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)  @ line 111, column 27 -> [help 2] org.apache.maven.model.io.modelparseexception: text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)          @ org.apache.maven.model.io.defaultmodelreader.read(defaultmodelreader.java:130)         @ org.apache.maven.model.io.defaultmodelreader.read(defaultmodelreader.java:94)         @ org.apache.maven.model.building.defaultmodelprocessor.read(defaultmodelprocessor.java:81)         @ org.apache.maven.model.building.defaultmodelbuilder.readmodel(defaultmodelbuilder.java:529)         @ org.apache.maven.model.building.defaultmodelbuilder.build(defaultmodelbuilder.java:269)         @ org.apache.maven.project.defaultprojectbuilder.build(defaultprojectbuilder.java:469)         @ org.apache.maven.project.defaultprojectbuilder.build(defaultprojectbuilder.java:438)         @ org.apache.maven.project.defaultprojectbuilder.build(defaultprojectbuilder.java:401)         @ org.apache.maven.graph.defaultgraphbuilder.collectprojects(defaultgraphbuilder.java:419)         @ org.apache.maven.graph.defaultgraphbuilder.getprojectsformavenreactor(defaultgraphbuilder.java:410)         @ org.apache.maven.graph.defaultgraphbuilder.build(defaultgraphbuilder.java:83)         @ org.apache.maven.defaultmaven.buildgraph(defaultmaven.java:491)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:219)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:193)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:106)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:862)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:286)         @ org.apache.maven.cli.mavencli.main(mavencli.java:197)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:497)         @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:289)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:415)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) caused by: org.codehaus.plexus.util.xml.pull.xmlpullparserexception: text must followed end_tag , not start_tag (position: start_tag seen ...<property>\n                    <name>... @111:27)          @ org.codehaus.plexus.util.xml.pull.mxparser.nexttext(mxparser.java:1101)         @ org.apache.maven.model.io.xpp3.mavenxpp3readerex.parseprofile(mavenxpp3readerex.java:3511)         @ org.apache.maven.model.io.xpp3.mavenxpp3readerex.parsemodel(mavenxpp3readerex.java:2532)         @ org.apache.maven.model.io.xpp3.mavenxpp3readerex.read(mavenxpp3readerex.java:4350)         @ org.apache.maven.model.io.xpp3.mavenxpp3readerex.read(mavenxpp3readerex.java:560)         @ org.apache.maven.model.io.defaultmodelreader.read(defaultmodelreader.java:121)         ... 25 more 

if

<properties>     <localurl>http://localhost:8080</localurl> </properties> 

or

<profiles>     <profile>         <id>local</id>         <properties>             <localurl>http://localhost:8080</localurl>         </properties>     </profile> </profiles> 

these work fine.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -