About packaging package in Lifecycle using maven projects in IJ reported expected START_TAG or END_TAG not TEXT

The error report is assigned to a line in settings.xml under the maven local repository, such as the following JDK configuration:

<profiles>
<profile>
    <id>jdk-1.8</id>
   <activation>
     <activeByDefault>true</activeByDefault>
     <jdk>1.8</jdk>
  </activation>
  <properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>

After repeated inspection, it was found that there was no coding error. After many tests before and after, it still reported an error. Later, I guessed whether it was a format problem that prevented the scanning of the label, so I cut it directly and put it in line by line.

Then delete all the spaces between the lines, and found that there is no error, the specific reason is unknown

 

Conclusion: In order to avoid unnecessary errors, try to keep the coding standard, and copy the code to pay attention to the format

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324721685&siteId=291194637