代码之家  ›  专栏  ›  技术社区  ›  demouserabcd

如何在pom中查找错误。xml文件?

  •  -2
  • demouserabcd  · 技术社区  · 7 年前

    ============================================= =

        <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>Test_grp_allure_report</groupId>
          <artifactId>Test_allure_report</artifactId>
          <version>0.0.1-SNAPSHOT</version>
          <name>Test_allure_report_graph</name>
            <dependencies>
                <dependency>
            <groupId>org.freemarker</groupId>
            <artifactId>freemarker-gae</artifactId>
            <version>2.3.23</version>
            </dependency>
    
        <dependency>
            <groupId>.com.relevantcodes</groupId>
            <artifactId> extentreports </artifactId>
            <version>2.41.0</version>
            </dependency>
            </dependencies>
          </project>
    
    
    
    
    
      [1]: https://i.stack.imgur.com/k7L7A.png
    
    1 回复  |  直到 7 年前
        1
  •  -1
  •   jvwilge    7 年前

    这里没有问题。当我复制您的代码并格式化时,Maven没有任何问题:

    <?xml version="1.0"?>
    <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>Test_grp_allure_report</groupId>
        <artifactId>Test_allure_report</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <name>Test_allure_report_graph</name>
        <dependencies>
            <dependency>
                <groupId>org.freemarker</groupId>
                <artifactId>freemarker-gae</artifactId>
                <version>2.3.23</version>
            </dependency>
            <dependency>
                <groupId>.com.relevantcodes</groupId>
                <artifactId> extentreports </artifactId>
                <version>2.41.0</version>
            </dependency>
        </dependencies>
    </project>